libreoffice-online/wsd/TestStubs.cpp
Mike Kaganski e9c4c0286a Handle failed locking as (temporarily) read-only session
E.g., opening a checked-out document in SharePoint

Change-Id: Ifd5225d8450d7f2f5ba9661f158551c5c16f9b09
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97596
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-07-20 15:47:33 +02:00

40 lines
1.1 KiB
C++

/* -*- 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"
#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() {}
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: */