2014-10-22 15:52:08 +00:00
|
|
|
/*
|
|
|
|
|
* synergy -- mouse and keyboard sharing utility
|
2016-09-07 14:24:00 +00:00
|
|
|
* Copyright (C) 2014-2016 Symless Ltd.
|
2014-10-22 15:52:08 +00:00
|
|
|
*
|
|
|
|
|
* This package is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU General Public License
|
2015-05-03 02:33:52 +00:00
|
|
|
* found in the file LICENSE that should have accompanied this file.
|
2014-10-22 15:52:08 +00:00
|
|
|
*
|
|
|
|
|
* This package is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#define TEST_ENV
|
|
|
|
|
|
|
|
|
|
#include "synergy/App.h"
|
|
|
|
|
|
|
|
|
|
#include "test/global/gmock.h"
|
|
|
|
|
|
2014-11-11 13:51:47 +00:00
|
|
|
class MockApp : public App
|
2014-10-22 15:52:08 +00:00
|
|
|
{
|
|
|
|
|
public:
|
2016-12-28 11:50:32 +00:00
|
|
|
MockApp() : App(NULL, NULL, NULL) { }
|
2014-10-22 15:52:08 +00:00
|
|
|
|
2020-12-17 17:02:12 +00:00
|
|
|
MOCK_METHOD(void, help, (), (override));
|
|
|
|
|
MOCK_METHOD(void, loadConfig, (), (override));
|
|
|
|
|
MOCK_METHOD(bool, loadConfig, (const String&), (override));
|
|
|
|
|
MOCK_METHOD(const char*, daemonInfo, (), (const, override));
|
|
|
|
|
MOCK_METHOD(const char*, daemonName, (), (const, override));
|
|
|
|
|
MOCK_METHOD(void, parseArgs, (int, const char* const*), (override));
|
|
|
|
|
MOCK_METHOD(void, version, (), (override));
|
|
|
|
|
MOCK_METHOD(int, standardStartup, (int, char**), (override));
|
|
|
|
|
MOCK_METHOD(int, runInner, (int, char**, ILogOutputter*, StartupFunc), (override));
|
|
|
|
|
MOCK_METHOD(void, startNode, (), (override));
|
|
|
|
|
MOCK_METHOD(int, mainLoop, (), (override));
|
|
|
|
|
MOCK_METHOD(int, foregroundStartup, (int, char**), (override));
|
|
|
|
|
MOCK_METHOD(synergy::Screen*, createScreen, (), (override));
|
2014-10-22 15:52:08 +00:00
|
|
|
};
|