From 566abfa99120652fb1e9190d791fdbbba64d2e0d Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 16 Nov 2018 16:26:22 +0100 Subject: Add adblockrule_parse --- test/hostlist/hostlisttest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/hostlist/hostlisttest.cpp') diff --git a/test/hostlist/hostlisttest.cpp b/test/hostlist/hostlisttest.cpp index 5270118..7f5c954 100644 --- a/test/hostlist/hostlisttest.cpp +++ b/test/hostlist/hostlisttest.cpp @@ -39,9 +39,9 @@ void HostlistTest::checkRules() auto result = tree.match(domain, request); QCOMPARE(result.length(), matches); if(matches > 0) - QCOMPARE(result.constFirst()->action(), action); + QCOMPARE(result.constFirst()->action().first, action); if(action == FilterLeaf::Redirect) - QCOMPARE(result.constFirst()->redirect(), QLatin1Literal("127.0.0.1")); + QCOMPARE(result.constFirst()->action().second, QLatin1Literal("127.0.0.1")); } void HostlistTest::benchmark_parse() -- cgit v1.2.1