summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-18 07:56:08 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-18 07:56:08 (GMT)
commit164d3bdb7d419fddd39309cff4ddfafa97e5eea9 (patch)
tree67f73a9bdc32cf7c161467fd7f215dca897f888a
parentfa8296b2bdc6bd564d3e97b0641ba8468195ca75 (diff)
Add new autotest
-rw-r--r--webengineviewer/src/checkphishingurl/autotests/CMakeLists.txt8
-rw-r--r--webengineviewer/src/checkphishingurl/autotests/localdatabasemanagertest.cpp35
-rw-r--r--webengineviewer/src/checkphishingurl/autotests/localdatabasemanagertest.h37
3 files changed, 80 insertions, 0 deletions
diff --git a/webengineviewer/src/checkphishingurl/autotests/CMakeLists.txt b/webengineviewer/src/checkphishingurl/autotests/CMakeLists.txt
index 76d7c76..20b41a0 100644
--- a/webengineviewer/src/checkphishingurl/autotests/CMakeLists.txt
+++ b/webengineviewer/src/checkphishingurl/autotests/CMakeLists.txt
@@ -20,3 +20,11 @@ ecm_add_test(createphishingurldatabasejobtest.cpp ../checkphishingurlutil.cpp ..
NAME_PREFIX "webengineview-checkphishingurl-"
LINK_LIBRARIES Qt5::Test Qt5::WebKitWidgets KF5::WebEngineViewer
)
+
+
+
+ecm_add_test(localdatabasemanagertest.cpp ../checkphishingurlutil.cpp ../localdatabasemanager.cpp ${testwebengineviewer_webengine_common_SRCS}
+ TEST_NAME localdatabasemanagertest
+ NAME_PREFIX "webengineview-checkphishingurl-"
+ LINK_LIBRARIES Qt5::Test Qt5::WebKitWidgets KF5::WebEngineViewer Qt5::Sql
+ )
diff --git a/webengineviewer/src/checkphishingurl/autotests/localdatabasemanagertest.cpp b/webengineviewer/src/checkphishingurl/autotests/localdatabasemanagertest.cpp
new file mode 100644
index 0000000..84f5051
--- /dev/null
+++ b/webengineviewer/src/checkphishingurl/autotests/localdatabasemanagertest.cpp
@@ -0,0 +1,35 @@
+/*
+ Copyright (C) 2016 Laurent Montel <montel@kde.org>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#include "localdatabasemanagertest.h"
+
+#include <QTest>
+
+LocalDataBaseManagerTest::LocalDataBaseManagerTest(QObject *parent)
+ : QObject(parent)
+{
+
+}
+
+LocalDataBaseManagerTest::~LocalDataBaseManagerTest()
+{
+
+}
+
+QTEST_MAIN(LocalDataBaseManagerTest)
diff --git a/webengineviewer/src/checkphishingurl/autotests/localdatabasemanagertest.h b/webengineviewer/src/checkphishingurl/autotests/localdatabasemanagertest.h
new file mode 100644
index 0000000..b7493a5
--- /dev/null
+++ b/webengineviewer/src/checkphishingurl/autotests/localdatabasemanagertest.h
@@ -0,0 +1,37 @@
+/*
+ Copyright (C) 2016 Laurent Montel <montel@kde.org>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#ifndef LOCALDATABASEMANAGERTEST_H
+#define LOCALDATABASEMANAGERTEST_H
+
+#include <QObject>
+
+class LocalDataBaseManagerTest : public QObject
+{
+ Q_OBJECT
+public:
+ explicit LocalDataBaseManagerTest(QObject *parent = Q_NULLPTR);
+ ~LocalDataBaseManagerTest();
+
+signals:
+
+public slots:
+};
+
+#endif // LOCALDATABASEMANAGERTEST_H