forked from CollaboraOnline/online
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TestStubs.cpp
38 lines (23 loc) · 1.11 KB
/
TestStubs.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
* 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"
#include "ClientSession.hpp"
void DocumentBroker::assertCorrectThread() const {}
void ClientSession::traceTileBySend(const TileDesc& /*tile*/, bool /*deduplicated = false*/) {}
void ClientSession::enqueueSendMessage(const std::shared_ptr<Message>& /*data*/) {};
ClientSession::~ClientSession() = default;
void ClientSession::onDisconnect() {}
bool ClientSession::hasQueuedMessages() const { return false; }
void ClientSession::writeQueuedMessages(std::size_t) {}
void ClientSession::dumpState(std::ostream& /*os*/) {}
void ClientSession::setReadOnly(bool) {}
bool ClientSession::_handleInput(const char* /*buffer*/, int /*length*/) { return false; }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */