[Libreoffice-commits] online.git: kit/TestStubs.cpp wsd/TestStubs.cpp

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue May 28 07:13:35 UTC 2019


 kit/TestStubs.cpp |    3 +++
 wsd/TestStubs.cpp |   16 ++++++++++++++++
 2 files changed, 19 insertions(+)

New commits:
commit 106b7fbd8ea4745ac5919345566e24fbc157bb2c
Author:     Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Tue May 28 09:10:24 2019 +0200
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Tue May 28 09:10:45 2019 +0200

    TestStubs: add more stubs for sanitizers
    
    This is needed to compile the tests without undefined references when
    using sanitizers. Previously it was possible to run loolwsd, but
    building the tests failed.
    
    Change-Id: I6babd1c43816cb2387c82316cc1bf9ff14d7a068

diff --git a/kit/TestStubs.cpp b/kit/TestStubs.cpp
index 0cb32a091..f1e2c5c95 100644
--- a/kit/TestStubs.cpp
+++ b/kit/TestStubs.cpp
@@ -17,5 +17,8 @@
 #include "ChildSession.hpp"
 
 void ChildSession::loKitCallback(const int /* type */, const std::string& /* payload */) {}
+void ChildSession::disconnect() {}
+bool ChildSession::_handleInput(const char* /*buffer*/, int /*length*/) { return false; }
+ChildSession::~ChildSession() {}
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/wsd/TestStubs.cpp b/wsd/TestStubs.cpp
index 68b6f8d95..0331f7ef6 100644
--- a/wsd/TestStubs.cpp
+++ b/wsd/TestStubs.cpp
@@ -23,4 +23,20 @@ void ClientSession::traceTileBySend(const TileDesc& /*tile*/, bool /*deduplicate
 
 void ClientSession::enqueueSendMessage(const std::shared_ptr<Message>& /*data*/) {};
 
+ClientSession::~ClientSession() {}
+
+void ClientSession::performWrites() {}
+
+void ClientSession::onDisconnect() {}
+
+void ClientSession::dumpState(std::ostream& /*os*/) {}
+
+void ClientSession::setReadOnly() {}
+
+void ClientSession::handleIncomingMessage(SocketDisposition &) {}
+
+bool ClientSession::_handleInput(const char* /*buffer*/, int /*length*/) { return false; }
+
+int ClientSession::getPollEvents(std::chrono::steady_clock::time_point /* now */, int & /* timeoutMaxMs */) { return 0; }
+
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list