File indexing completed on 2025-01-19 04:47:00
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "adblocklistsutiltest.h" 0008 #include "adblocklistsutil.h" 0009 #include <QTest> 0010 QTEST_GUILESS_MAIN(AdblockListsUtilTest) 0011 AdblockListsUtilTest::AdblockListsUtilTest(QObject *parent) 0012 : QObject{parent} 0013 { 0014 } 0015 0016 void AdblockListsUtilTest::shouldVerifyList() 0017 { 0018 QVERIFY(!AdblockListsUtil::adblockFilterNamesDefaultList().isEmpty()); 0019 QVERIFY(!AdblockListsUtil::adblockFilterUrlsDefaultList().isEmpty()); 0020 0021 QCOMPARE(AdblockListsUtil::adblockFilterNamesDefaultList().count(), AdblockListsUtil::adblockFilterUrlsDefaultList().count()); 0022 } 0023 0024 #include "moc_adblocklistsutiltest.cpp"