2013-07-16 19:02:30 +00:00
|
|
|
/*
|
|
|
|
|
* synergy -- mouse and keyboard sharing utility
|
2024-07-17 08:22:46 +00:00
|
|
|
* Copyright (C) 2024 Symless Ltd.
|
2024-07-02 19:07:06 +00:00
|
|
|
*
|
2013-07-16 19:02:30 +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.
|
2024-07-02 19:07:06 +00:00
|
|
|
*
|
2013-07-16 19:02:30 +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
|
|
|
|
|
|
2024-08-03 00:17:29 +00:00
|
|
|
#include "gui/messages.h"
|
|
|
|
|
|
2024-07-26 22:53:52 +00:00
|
|
|
#include <QCoreApplication>
|
2024-07-17 08:22:46 +00:00
|
|
|
#include <gtest/gtest.h>
|
2013-07-16 19:02:30 +00:00
|
|
|
|
2024-07-17 08:22:46 +00:00
|
|
|
class QtCoreTest : public ::testing::Test {
|
2013-07-16 19:02:30 +00:00
|
|
|
public:
|
2024-07-17 08:22:46 +00:00
|
|
|
static void SetUpTestSuite() {
|
|
|
|
|
char **argv = nullptr;
|
|
|
|
|
int argc = 0;
|
|
|
|
|
s_app = std::make_unique<QCoreApplication>(argc, argv);
|
2024-08-03 00:17:29 +00:00
|
|
|
qInstallMessageHandler(synergy::gui::messages::messageHandler);
|
2024-07-17 08:22:46 +00:00
|
|
|
}
|
2013-07-16 19:02:30 +00:00
|
|
|
|
2024-08-01 00:13:01 +00:00
|
|
|
static void TearDownTestSuite() { s_app.reset(); }
|
2013-07-16 19:02:30 +00:00
|
|
|
|
2024-07-17 08:22:46 +00:00
|
|
|
static std::unique_ptr<QCoreApplication> s_app;
|
2013-07-16 19:02:30 +00:00
|
|
|
};
|