* WIP: Show dev thanks message * Improve error messages and guard license code * Print core command * Allow license tests when licensing disabled by default * Don't check invalid serial key * Fixed typo * Add error checking * Use shared ptr instead of static deps * Actually save and load the setting * Add dev thanks vars to CI * Show thanks message after connected * Refactor hack-job of local/global save/load to remove coupling and use Qt events system * Simplify config loading * Overloads for optionals * Fixed global config scope not loaded * Save message state before showing to avoid multiple messages * Update ChangeLog * Fixed lint warnings * Make function const * Reduce verbosity * Remove dead code, show version on start, tidy up lint warnings * Make product name code safer * Connect on enter press * Only show server specific wording when on server * Add emit commands * Log info and error * Remove deaad code * Remove test member * Disable start context menu action unless usable * Show more relvant connect message * Fixed close to tray not applied, and simplified restart core logic * Remove redundant include
37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
/*
|
|
* synergy -- mouse and keyboard sharing utility
|
|
* Copyright (C) 2024 Symless Ltd.
|
|
*
|
|
* This package is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* found in the file LICENSE that should have accompanied this file.
|
|
*
|
|
* 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
|
|
|
|
#include "gui/messages.h"
|
|
|
|
#include <QCoreApplication>
|
|
#include <gtest/gtest.h>
|
|
|
|
class QtCoreTest : public ::testing::Test {
|
|
public:
|
|
static void SetUpTestSuite() {
|
|
char **argv = nullptr;
|
|
int argc = 0;
|
|
s_app = std::make_unique<QCoreApplication>(argc, argv);
|
|
qInstallMessageHandler(synergy::gui::messages::messageHandler);
|
|
}
|
|
|
|
static void TearDownTestSuite() { s_app.reset(); }
|
|
|
|
static std::unique_ptr<QCoreApplication> s_app;
|
|
};
|