2025-08-23 00:16:46 +00:00
|
|
|
/*
|
|
|
|
|
* Deskflow -- mouse and keyboard sharing utility
|
|
|
|
|
* SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
|
|
|
|
*/
|
|
|
|
|
|
2025-08-28 02:11:51 +00:00
|
|
|
#include "base/Log.h"
|
|
|
|
|
|
2025-05-30 22:26:02 +00:00
|
|
|
#include <QTest>
|
|
|
|
|
|
2025-08-23 00:16:46 +00:00
|
|
|
class LogTests : public QObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
|
void initTestCase();
|
|
|
|
|
// Test are run in order top to bottom
|
|
|
|
|
void printWithErrorValidOutput();
|
|
|
|
|
void printTestPrintLevel();
|
|
|
|
|
void printTestWithArgs();
|
|
|
|
|
void printTestLogString();
|
|
|
|
|
void printLevelToHigh();
|
|
|
|
|
void printInfoWithFileAndLine();
|
|
|
|
|
void printErrWithFileAndLine();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Log m_log;
|
|
|
|
|
};
|