summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-04-13 02:57:18 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-04-13 02:57:51 +0200
commitdad270be0b9b1d10b2aeb8960603a06677b75b2b (patch)
tree95ec632954c163000e92b2f4aee8a8be12de9358 /include
parent1830b646ea1c181ae0a298e53bf2cfa5e0eaee48 (diff)
downloadcppunit-dad270be0b9b1d10b2aeb8960603a06677b75b2b.tar.gz
remove the qt test runner that depends on ancient qt
Diffstat (limited to 'include')
-rw-r--r--include/cppunit/ui/Makefile.am2
-rw-r--r--include/cppunit/ui/qt/Config.h21
-rw-r--r--include/cppunit/ui/qt/Makefile.am6
-rw-r--r--include/cppunit/ui/qt/QtTestRunner.h85
-rw-r--r--include/cppunit/ui/qt/TestRunner.h11
5 files changed, 1 insertions, 124 deletions
diff --git a/include/cppunit/ui/Makefile.am b/include/cppunit/ui/Makefile.am
index 1b9f08e..24cd2a5 100644
--- a/include/cppunit/ui/Makefile.am
+++ b/include/cppunit/ui/Makefile.am
@@ -1 +1 @@
-SUBDIRS = text mfc qt
+SUBDIRS = text mfc
diff --git a/include/cppunit/ui/qt/Config.h b/include/cppunit/ui/qt/Config.h
deleted file mode 100644
index beaf9ad..0000000
--- a/include/cppunit/ui/qt/Config.h
+++ /dev/null
@@ -1,21 +0,0 @@
-#ifndef CPPUNIT_QTUI_CONFIG_H
-#define CPPUNIT_QTUI_CONFIG_H
-
-/*! Macro to export symbol to DLL with VC++.
- *
- * - QTTESTRUNNER_DLL_BUILD must be defined when building the DLL.
- * - QTTESTRUNNER_DLL must be defined if linking against the DLL.
- * - If none of the above are defined then you are building or linking against
- * the static library.
- */
-
-#if defined( QTTESTRUNNER_DLL_BUILD )
-# define QTTESTRUNNER_API __declspec(dllexport)
-#elif defined ( QTTESTRUNNER_DLL )
-# define QTTESTRUNNER_API __declspec(dllimport)
-#else
-# define QTTESTRUNNER_API
-#endif
-
-
-#endif // CPPUNIT_QTUI_CONFIG_H
diff --git a/include/cppunit/ui/qt/Makefile.am b/include/cppunit/ui/qt/Makefile.am
deleted file mode 100644
index 7d4fb46..0000000
--- a/include/cppunit/ui/qt/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-libcppunitincludedir = $(includedir)/cppunit/ui/qt
-
-libcppunitinclude_HEADERS = \
- TestRunner.h \
- QtTestRunner.h \
- Config.h
diff --git a/include/cppunit/ui/qt/QtTestRunner.h b/include/cppunit/ui/qt/QtTestRunner.h
deleted file mode 100644
index 3ae602f..0000000
--- a/include/cppunit/ui/qt/QtTestRunner.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// //////////////////////////////////////////////////////////////////////////
-// Header file TestRunner.h for class TestRunner
-// (c)Copyright 2000, Baptiste Lepilleur.
-// Created: 2001/09/19
-// //////////////////////////////////////////////////////////////////////////
-#ifndef CPPUNIT_QTUI_QTTESTRUNNER_H
-#define CPPUNIT_QTUI_QTTESTRUNNER_H
-
-#include <vector>
-#include "Config.h"
-
-CPPUNIT_NS_BEGIN
-
-
- class Test;
- class TestSuite;
-
-
-/*!
- * \brief QT test runner.
- * \ingroup ExecutingTest
- *
- * Here is an example of usage:
- * \code
- * #include <cppunit/extensions/TestFactoryRegistry.h>
- * #include <cppunit/ui/qt/TestRunner.h>
- *
- * [...]
- *
- * void
- * QDepWindow::runTests()
- * {
- * CppUnit::QtUi::TestRunner runner;
- * runner.addTest( CppUnit::TestFactoryRegistry::getRegistry().makeTest() );
- * runner.run( true );
- * }
- * \endcode
- *
- */
-class QTTESTRUNNER_API QtTestRunner
-{
-public:
- /*! Constructs a TestRunner object.
- */
- QtTestRunner();
-
- /*! Destructor.
- */
- virtual ~QtTestRunner();
-
- void run( bool autoRun =false );
-
- void addTest( Test *test );
-
-private:
- /// Prevents the use of the copy constructor.
- QtTestRunner( const QtTestRunner &copy );
-
- /// Prevents the use of the copy operator.
- void operator =( const QtTestRunner &copy );
-
- Test *getRootTest();
-
-private:
- typedef std::vector<Test *> Tests;
- Tests *_tests;
-
- TestSuite *_suite;
-};
-
-
-#if CPPUNIT_HAVE_NAMESPACES
- namespace QtUi
- {
- /*! Qt TestRunner (DEPRECATED).
- * \deprecated Use CppUnit::QtTestRunner instead.
- */
- typedef CPPUNIT_NS::QtTestRunner TestRunner;
- }
-#endif
-
-
-CPPUNIT_NS_END
-
-#endif // CPPUNIT_QTUI_QTTESTRUNNER_H
diff --git a/include/cppunit/ui/qt/TestRunner.h b/include/cppunit/ui/qt/TestRunner.h
deleted file mode 100644
index 9c53e4b..0000000
--- a/include/cppunit/ui/qt/TestRunner.h
+++ /dev/null
@@ -1,11 +0,0 @@
-// //////////////////////////////////////////////////////////////////////////
-// Header file TestRunner.h for class TestRunner
-// (c)Copyright 2000, Baptiste Lepilleur.
-// Created: 2001/09/19
-// //////////////////////////////////////////////////////////////////////////
-#ifndef CPPUNIT_QTUI_TESTRUNNER_H
-#define CPPUNIT_QTUI_TESTRUNNER_H
-
-#include <cppunit/ui/qt/QtTestRunner.h>
-
-#endif // CPPUNIT_QTUI_TESTRUNNER_H