File indexing completed on 2024-11-24 04:16:56
0001 /* 0002 SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "googleengineclienttest.h" 0008 #include "../googleengineclient.h" 0009 #include <QTest> 0010 QTEST_MAIN(GoogleEngineClientTest) 0011 0012 GoogleEngineClientTest::GoogleEngineClientTest(QObject *parent) 0013 : QObject{parent} 0014 { 0015 } 0016 0017 void GoogleEngineClientTest::shouldHaveDefaultValues() 0018 { 0019 GoogleEngineClient client; 0020 QCOMPARE(client.name(), QStringLiteral("google")); 0021 QVERIFY(client.createTranslator()); 0022 QVERIFY(!client.translatedName().isEmpty()); 0023 QVERIFY(!client.supportedFromLanguages().isEmpty()); 0024 QVERIFY(!client.supportedToLanguages().isEmpty()); 0025 QVERIFY(!client.hasConfigurationDialog()); 0026 } 0027 0028 #include "moc_googleengineclienttest.cpp"