/* * Deskflow -- mouse and keyboard sharing utility * SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception */ #include "base/Log.h" #include class X11LayoutParserTests : public QObject { Q_OBJECT private Q_SLOTS: // Test are run in order top to bottom void initTestCase(); void xmlParse(); void convertLayouts(); private: Arch m_arch; Log m_log; const QString kTestDir = "tmp/test"; const QString kTestCorrectFile = "tmp/test/correctEvdev.xml"; const QString kTestFutureFile = "tmp/test/evdevFromFuture.xml"; const QString kTestBadFile1 = "tmp/test/evdevBad1.xml"; const QString kTestBadFile2 = "tmp/test/evdevBad2.xml"; const QString kTestBadFile3 = "tmp/test/evdevBad3.xml"; const QString kCorrectEvContents = QStringLiteral( "\n" "\n" " \n" " \n" " \n" " us\n" " \n" " en\n" " English (US)\n" " \n" " eng\n" " \n" " \n" " \n" " \n" " \n" " eng\n" " eng\n" " Cherokee\n" " \n" " eng\n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " ru\n" " \n" " ru\n" " Russian\n" " \n" " rus\n" " \n" " \n" " \n" " \n" "\n" ); const QString kFutureEvContents = QStringLiteral( "\n" "\n" " \n" " \n" " \n" " futureLangName\n" " \n" " fln\n" " \n" " \n" " \n" " \n" "\n" ); const QString kBadEv1Contents = QStringLiteral("\n"); const QString kBadEv2Contents = QStringLiteral( "\n" "\n" "" ); const QString kBadEv3Contents = QStringLiteral( "\n" "\n" " \n" " \n" " \n" " \n" "\n" ); };