summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-26 05:25:01 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-26 05:25:01 (GMT)
commite75042a98015ac75664318870a3c7a5236471888 (patch)
tree1d2d4b734a69cc33b9b79f4808ba69eeee87ca99
parentbe366425f8ab3e4af2e2da08cfdcf5fae26d66c5 (diff)
Add more autotest
-rw-r--r--plugins/messageviewerplugins/externalscriptplugin/autotests/CMakeLists.txt2
-rw-r--r--plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalconfiguredialogtest.cpp34
-rw-r--r--plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalconfiguredialogtest.h33
-rw-r--r--plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalconfigurewidgettest.cpp35
-rw-r--r--plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalconfigurewidgettest.h33
5 files changed, 137 insertions, 0 deletions
diff --git a/plugins/messageviewerplugins/externalscriptplugin/autotests/CMakeLists.txt b/plugins/messageviewerplugins/externalscriptplugin/autotests/CMakeLists.txt
index b10df97..486999d 100644
--- a/plugins/messageviewerplugins/externalscriptplugin/autotests/CMakeLists.txt
+++ b/plugins/messageviewerplugins/externalscriptplugin/autotests/CMakeLists.txt
@@ -18,3 +18,5 @@ endmacro ()
add_messageviewer_viewerplugin_external_plugin_unittest(viewerpluginexternalscriptinfotest.cpp "../viewerpluginexternalscriptparseargument.cpp;../viewerpluginexternalscriptinfo.cpp;../viewerpluginexternalscriptsloadjob.cpp" "")
add_messageviewer_viewerplugin_external_plugin_unittest(viewerpluginexternalscriptsloadjobtest.cpp "../viewerpluginexternalscriptsloadjob.cpp;../viewerpluginexternalscriptinfo.cpp" "")
add_messageviewer_viewerplugin_external_plugin_unittest(viewerpluginexternalscriptparseargumenttest.cpp "../viewerpluginexternalscriptparseargument.cpp" "")
+add_messageviewer_viewerplugin_external_plugin_unittest(viewerpluginexternalconfigurewidgettest.cpp "../configuredialog/viewerpluginexternalconfigurewidget.cpp" "")
+add_messageviewer_viewerplugin_external_plugin_unittest(viewerpluginexternalconfiguredialogtest.cpp "../configuredialog/viewerpluginexternalconfiguredialog.cpp" "")
diff --git a/plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalconfiguredialogtest.cpp b/plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalconfiguredialogtest.cpp
new file mode 100644
index 0000000..a4797ca
--- /dev/null
+++ b/plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalconfiguredialogtest.cpp
@@ -0,0 +1,34 @@
+/*
+ Copyright (C) 2016 Montel Laurent <montel@kde.org>
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This program 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
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; see the file COPYING. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#include "viewerpluginexternalconfiguredialogtest.h"
+#include <QTest>
+
+ViewerPluginExternalConfigureDialogTest::ViewerPluginExternalConfigureDialogTest(QObject *parent)
+ : QObject(parent)
+{
+
+}
+
+ViewerPluginExternalConfigureDialogTest::~ViewerPluginExternalConfigureDialogTest()
+{
+
+}
+
+QTEST_MAIN(ViewerPluginExternalConfigureDialogTest)
diff --git a/plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalconfiguredialogtest.h b/plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalconfiguredialogtest.h
new file mode 100644
index 0000000..33b9349
--- /dev/null
+++ b/plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalconfiguredialogtest.h
@@ -0,0 +1,33 @@
+/*
+ Copyright (C) 2016 Montel Laurent <montel@kde.org>
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This program 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
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; see the file COPYING. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#ifndef VIEWERPLUGINEXTERNALCONFIGUREDIALOGTEST_H
+#define VIEWERPLUGINEXTERNALCONFIGUREDIALOGTEST_H
+
+#include <QObject>
+
+class ViewerPluginExternalConfigureDialogTest : public QObject
+{
+ Q_OBJECT
+public:
+ explicit ViewerPluginExternalConfigureDialogTest(QObject *parent = Q_NULLPTR);
+ ~ViewerPluginExternalConfigureDialogTest();
+};
+
+#endif // VIEWERPLUGINEXTERNALCONFIGUREDIALOGTEST_H
diff --git a/plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalconfigurewidgettest.cpp b/plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalconfigurewidgettest.cpp
new file mode 100644
index 0000000..79a8837
--- /dev/null
+++ b/plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalconfigurewidgettest.cpp
@@ -0,0 +1,35 @@
+/*
+ Copyright (C) 2016 Montel Laurent <montel@kde.org>
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This program 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
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; see the file COPYING. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+
+#include "viewerpluginexternalconfigurewidgettest.h"
+#include <QTest>
+
+ViewerPluginExternalConfigureWidgetTest::ViewerPluginExternalConfigureWidgetTest(QObject *parent)
+ : QObject(parent)
+{
+
+}
+
+ViewerPluginExternalConfigureWidgetTest::~ViewerPluginExternalConfigureWidgetTest()
+{
+
+}
+
+QTEST_MAIN(ViewerPluginExternalConfigureWidgetTest)
diff --git a/plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalconfigurewidgettest.h b/plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalconfigurewidgettest.h
new file mode 100644
index 0000000..e75b9e6
--- /dev/null
+++ b/plugins/messageviewerplugins/externalscriptplugin/autotests/viewerpluginexternalconfigurewidgettest.h
@@ -0,0 +1,33 @@
+/*
+ Copyright (C) 2016 Montel Laurent <montel@kde.org>
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This program 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
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; see the file COPYING. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#ifndef VIEWERPLUGINEXTERNALCONFIGUREWIDGETTEST_H
+#define VIEWERPLUGINEXTERNALCONFIGUREWIDGETTEST_H
+
+#include <QObject>
+
+class ViewerPluginExternalConfigureWidgetTest : public QObject
+{
+ Q_OBJECT
+public:
+ explicit ViewerPluginExternalConfigureWidgetTest(QObject *parent = Q_NULLPTR);
+ ~ViewerPluginExternalConfigureWidgetTest();
+};
+
+#endif // VIEWERPLUGINEXTERNALCONFIGUREWIDGETTEST_H