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-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() {
|
|
|
|
|
GTEST_LOG_(INFO) << "Qt core app setup";
|
|
|
|
|
char **argv = nullptr;
|
|
|
|
|
int argc = 0;
|
|
|
|
|
s_app = std::make_unique<QCoreApplication>(argc, argv);
|
|
|
|
|
}
|
2013-07-16 19:02:30 +00:00
|
|
|
|
2024-07-17 08:22:46 +00:00
|
|
|
static void TearDownTestSuite() {
|
|
|
|
|
s_app.reset();
|
|
|
|
|
GTEST_LOG_(INFO) << "Qt core app teardown";
|
|
|
|
|
}
|
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
|
|
|
};
|