diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-18 14:32:45 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-18 14:32:45 +0100 |
commit | e2b1cc628b304e3f153abc17fb350aa781e26b36 (patch) | |
tree | 269fc864b57b9356dd19c78b2965cb595371e0b7 /lib/adblock/test/filtertest.h | |
parent | ProfileView dialog (diff) | |
download | smolbote-e2b1cc628b304e3f153abc17fb350aa781e26b36.tar.xz |
Basic adblock FilterRule
Diffstat (limited to 'lib/adblock/test/filtertest.h')
-rw-r--r-- | lib/adblock/test/filtertest.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/adblock/test/filtertest.h b/lib/adblock/test/filtertest.h new file mode 100644 index 0000000..45cdde1 --- /dev/null +++ b/lib/adblock/test/filtertest.h @@ -0,0 +1,28 @@ +#ifndef FILTERTEST_H +#define FILTERTEST_H + +#include <QObject> + +class FilterRule; +class FilterTest : public QObject +{ + Q_OBJECT +public: + explicit FilterTest(QObject *parent = nullptr); + +signals: + +private slots: + void initTestCase(); + void testAddressBlock(); + void testDomainBlock(); + void testExactAddressBlock(); + void cleanupTestCase(); + +private: + FilterRule *addressRule; + FilterRule *domainRule; + FilterRule *exactAddressRule; +}; + +#endif // FILTERTEST_H |