aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-12-11 13:30:01 +0100
committerMontel Laurent <[email protected]>2017-12-11 13:30:01 +0100
commit665ee7d059ad4cdf712eae519f374b3f9573d454 (patch)
treee08affec2c7333726de421e714d0e9a38dc34e7f
parentdea8850e94274ef5e780e28cbbc946ac26b8c108 (diff)
Add test apps.
-rw-r--r--tests/libs/CMakeLists.txt1
-rw-r--r--tests/libs/conflictresolvedialogtest_gui.cpp44
-rw-r--r--tests/libs/conflictresolvedialogtest_gui.h23
3 files changed, 68 insertions, 0 deletions
diff --git a/tests/libs/CMakeLists.txt b/tests/libs/CMakeLists.txt
index f35f80d..586daf3 100644
--- a/tests/libs/CMakeLists.txt
+++ b/tests/libs/CMakeLists.txt
@@ -42,5 +42,6 @@ add_akonadi_demo(pluginloadertest.cpp)
##REACTIVATE
#add_akonadi_demo(selftester.cpp)
add_akonadi_demo(collectiondialog.cpp)
+add_akonadi_demo(conflictresolvedialogtest_gui.cpp)
add_subdirectory(etm_test_app)
diff --git a/tests/libs/conflictresolvedialogtest_gui.cpp b/tests/libs/conflictresolvedialogtest_gui.cpp
new file mode 100644
index 0000000..87ce4b7
--- /dev/null
+++ b/tests/libs/conflictresolvedialogtest_gui.cpp
@@ -0,0 +1,44 @@
+/*
+ Copyright (c) 2017 Laurent Montel <[email protected]>
+
+ 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 "conflictresolvedialogtest_gui.h"
+#include "../src/widgets/conflictresolvedialog_p.h"
+
+#include <QApplication>
+#include <QCommandLineParser>
+#include <kaboutdata.h>
+
+int main(int argc, char **argv)
+{
+ QApplication app(argc, argv);
+ KAboutData aboutData(QStringLiteral("conflictresolvedialogtest_gui"),
+ QStringLiteral("conflictresolvedialogtest_gui"),
+ QStringLiteral("0.10"));
+ KAboutData::setApplicationData(aboutData);
+
+ QCommandLineParser parser;
+ aboutData.setupCommandLine(&parser);
+ parser.process(app);
+ aboutData.processCommandLine(&parser);
+
+ Akonadi::ConflictResolveDialog dlg;
+ dlg.exec();
+
+ return 0;
+}
diff --git a/tests/libs/conflictresolvedialogtest_gui.h b/tests/libs/conflictresolvedialogtest_gui.h
new file mode 100644
index 0000000..8ebac53
--- /dev/null
+++ b/tests/libs/conflictresolvedialogtest_gui.h
@@ -0,0 +1,23 @@
+/*
+ Copyright (c) 2017 Laurent Montel <[email protected]>
+
+ 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 CONFLICTRESOLVEDIALOGTEST_GUI_H
+#define CONFLICTRESOLVEDIALOGTEST_GUI_H
+
+#endif // CONFLICTRESOLVEDIALOGTEST_GUI_H