diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-11-16 16:26:22 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-11-16 16:26:22 +0100 |
commit | 566abfa99120652fb1e9190d791fdbbba64d2e0d (patch) | |
tree | 86a6f71b926794298d922a9319b55909cf5a07b4 /test/hostlist | |
parent | Add more regex benchmarks (diff) | |
download | smolbote-566abfa99120652fb1e9190d791fdbbba64d2e0d.tar.xz |
Add adblockrule_parse
Diffstat (limited to 'test/hostlist')
-rw-r--r-- | test/hostlist/hostlisttest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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() |