summaryrefslogtreecommitdiff
path: root/wsd/TestStubs.cpp
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2017-03-15 12:07:17 +0000
committerMichael Meeks <michael.meeks@collabora.com>2017-03-15 12:07:34 +0000
commit6d6dc458500c17d4ee30d125289dd3352cfada75 (patch)
tree4b098274a54e65c7afaadeaa19a3938795c9e4cb /wsd/TestStubs.cpp
parent44ec90343ec1edfe09ee254993674523a5d5cfcd (diff)
Remove un-necesssary and inefficient wakeupWorld.
While message emplacement happens in the DocumentBroker poll, we can be sure that the next iteration of the poll will call hasQueuedWrites before polling.
Diffstat (limited to 'wsd/TestStubs.cpp')
-rw-r--r--wsd/TestStubs.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/wsd/TestStubs.cpp b/wsd/TestStubs.cpp
new file mode 100644
index 000000000..7972aec5c
--- /dev/null
+++ b/wsd/TestStubs.cpp
@@ -0,0 +1,20 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+/*
+ * Stub missing symbols required for unit tests ...
+ */
+
+#include "config.h"
+
+#include "DocumentBroker.hpp"
+
+bool DocumentBroker::isCorrectThread() { return true; }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */