chore: remove unused test files not longer needed from old hellotests
This commit is contained in:
parent
fdf6a5b8f3
commit
adbaef7dfb
2 changed files with 0 additions and 69 deletions
|
|
@ -1,40 +0,0 @@
|
|||
/*
|
||||
* Deskflow -- mouse and keyboard sharing utility
|
||||
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
|
||||
* SPDX-FileCopyrightText: (C) 2011 Nick Bolton
|
||||
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "base/EventTypes.h"
|
||||
#include "io/IStream.h"
|
||||
|
||||
#include <gmock/gmock.h>
|
||||
|
||||
class IEventQueue;
|
||||
|
||||
namespace {
|
||||
|
||||
class MockStream : public deskflow::IStream
|
||||
{
|
||||
public:
|
||||
MockStream()
|
||||
{
|
||||
}
|
||||
MOCK_METHOD(void, close, (), (override));
|
||||
MOCK_METHOD(uint32_t, read, (void *, uint32_t), (override));
|
||||
MOCK_METHOD(void, write, (const void *, uint32_t), (override));
|
||||
MOCK_METHOD(void, flush, (), (override));
|
||||
MOCK_METHOD(void, shutdownInput, (), (override));
|
||||
MOCK_METHOD(void, shutdownOutput, (), (override));
|
||||
MOCK_METHOD(deskflow::EventTypes, getInputReadyEvent, ());
|
||||
MOCK_METHOD(deskflow::EventTypes, getOutputErrorEvent, ());
|
||||
MOCK_METHOD(deskflow::EventTypes, getInputShutdownEvent, ());
|
||||
MOCK_METHOD(deskflow::EventTypes, getOutputShutdownEvent, ());
|
||||
MOCK_METHOD(void *, getEventTarget, (), (const, override));
|
||||
MOCK_METHOD(bool, isReady, (), (const, override));
|
||||
MOCK_METHOD(uint32_t, getSize, (), (const, override));
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
/*
|
||||
* Deskflow -- mouse and keyboard sharing utility
|
||||
* SPDX-FileCopyrightText: (C) 2024 Symless Ltd.
|
||||
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "gui/config/IServerConfig.h"
|
||||
|
||||
#include <gmock/gmock.h>
|
||||
|
||||
class ServerConfigMock : public deskflow::gui::IServerConfig
|
||||
{
|
||||
public:
|
||||
ServerConfigMock()
|
||||
{
|
||||
ON_CALL(*this, screens()).WillByDefault(testing::ReturnRef(m_screensStub));
|
||||
}
|
||||
|
||||
MOCK_METHOD(bool, isFull, (), (const, override));
|
||||
MOCK_METHOD(bool, screenExists, (const QString &screenName), (const, override));
|
||||
MOCK_METHOD(bool, save, (const QString &fileName), (const, override));
|
||||
MOCK_METHOD(void, save, (QFile & file), (const, override));
|
||||
MOCK_METHOD(const ScreenList &, screens, (), (const, override));
|
||||
|
||||
private:
|
||||
ScreenList m_screensStub;
|
||||
};
|
||||
Loading…
Reference in a new issue