summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2016-05-08 13:28:19 +0200
committerMontel Laurent <[email protected]>2016-05-08 13:28:19 +0200
commit3e22560077ca3092630071b106e2d1782ec789db (patch)
tree7918f9af7abdd05a0b8b2c032237fd0b58058edb
parent9e8b98ffaa5b96f07e58c7ed974d016157f2db70 (diff)
Add autotests
-rw-r--r--plugins/messageviewerplugins/autotests/CMakeLists.txt1
-rw-r--r--plugins/messageviewerplugins/autotests/viewerpluginexternalscriptsloadjobtest.cpp33
-rw-r--r--plugins/messageviewerplugins/autotests/viewerpluginexternalscriptsloadjobtest.h32
3 files changed, 66 insertions, 0 deletions
diff --git a/plugins/messageviewerplugins/autotests/CMakeLists.txt b/plugins/messageviewerplugins/autotests/CMakeLists.txt
index e0c10a3..3c49e49 100644
--- a/plugins/messageviewerplugins/autotests/CMakeLists.txt
+++ b/plugins/messageviewerplugins/autotests/CMakeLists.txt
@@ -57,3 +57,4 @@ add_messageviewer_viewerplugin_unittest(viewerplugintranslatortest.cpp "../commo
add_messageviewer_viewerplugin_unittest(viewerpluginexternalscripttest.cpp "../externalscriptplugin/viewerpluginexternalscript.cpp;../externalscriptplugin/viewerpluginexternalscriptinterface.cpp;../externalscriptplugin/viewerpluginexternalscriptmanager.cpp;../externalscriptplugin/viewerpluginexternalscriptinfo.cpp" "")
add_messageviewer_viewerplugin_unittest(viewerpluginexternalscriptinfotest.cpp "../externalscriptplugin/viewerpluginexternalscriptinfo.cpp" "")
+add_messageviewer_viewerplugin_unittest(viewerpluginexternalscriptsloadjobtest.cpp "../externalscriptplugin/viewerpluginexternalscriptsloadjob.cpp" "")
diff --git a/plugins/messageviewerplugins/autotests/viewerpluginexternalscriptsloadjobtest.cpp b/plugins/messageviewerplugins/autotests/viewerpluginexternalscriptsloadjobtest.cpp
new file mode 100644
index 0000000..556675c
--- /dev/null
+++ b/plugins/messageviewerplugins/autotests/viewerpluginexternalscriptsloadjobtest.cpp
@@ -0,0 +1,33 @@
+/*
+ Copyright (c) 2016 Montel Laurent <[email protected]>
+
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License, version 2, as
+ published by the Free Software Foundation.
+
+ 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; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+*/
+
+#include "viewerpluginexternalscriptsloadjobtest.h"
+
+#include <QTest>
+
+ViewerPluginExternalScriptsLoadJobTest::ViewerPluginExternalScriptsLoadJobTest(QObject *parent)
+ : QObject(parent)
+{
+
+}
+
+ViewerPluginExternalScriptsLoadJobTest::~ViewerPluginExternalScriptsLoadJobTest()
+{
+
+}
+
+QTEST_MAIN(ViewerPluginExternalScriptsLoadJobTest)
diff --git a/plugins/messageviewerplugins/autotests/viewerpluginexternalscriptsloadjobtest.h b/plugins/messageviewerplugins/autotests/viewerpluginexternalscriptsloadjobtest.h
new file mode 100644
index 0000000..59bb590
--- /dev/null
+++ b/plugins/messageviewerplugins/autotests/viewerpluginexternalscriptsloadjobtest.h
@@ -0,0 +1,32 @@
+/*
+ Copyright (c) 2016 Montel Laurent <[email protected]>
+
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License, version 2, as
+ published by the Free Software Foundation.
+
+ 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; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+*/
+
+#ifndef VIEWERPLUGINEXTERNALSCRIPTSLOADJOBTEST_H
+#define VIEWERPLUGINEXTERNALSCRIPTSLOADJOBTEST_H
+
+#include <QObject>
+
+class ViewerPluginExternalScriptsLoadJobTest : public QObject
+{
+ Q_OBJECT
+public:
+ explicit ViewerPluginExternalScriptsLoadJobTest(QObject *parent = Q_NULLPTR);
+ ~ViewerPluginExternalScriptsLoadJobTest();
+
+};
+
+#endif // VIEWERPLUGINEXTERNALSCRIPTSLOADJOBTEST_H