summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorKurt Korbatits <kurt.korbatits@nokia.com>2012-01-10 10:28:42 +1000
committerQt by Nokia <qt-info@nokia.com>2012-01-10 05:12:18 +0100
commit679c4c002d97c5dcd34af701b3379c2bb03d02a2 (patch)
treee85825b50f4d7bb13f39de58e3590768336f3367 /tests/auto
parent226a7c77cb35f33fc3b2d49bd9b75c86e429b580 (diff)
Changed selftests unittest to use specific headers instead of QtCore.
Changed selftests unittest to use specific classes of QtCore instead of pulling in all of QtCore headers by using include <QtCore> - Decreasing build time. Change-Id: Ic53a70423ecafeb342cc05ae6d7dee795533d205 Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/testlib/selftests/assert/tst_assert.cpp2
-rw-r--r--tests/auto/testlib/selftests/badxml/tst_badxml.cpp2
-rw-r--r--tests/auto/testlib/selftests/benchlibcallgrind/tst_benchlibcallgrind.cpp2
-rw-r--r--tests/auto/testlib/selftests/benchlibeventcounter/tst_benchlibeventcounter.cpp2
-rw-r--r--tests/auto/testlib/selftests/benchliboptions/tst_benchliboptions.cpp2
-rw-r--r--tests/auto/testlib/selftests/benchlibtickcounter/tst_benchlibtickcounter.cpp2
-rw-r--r--tests/auto/testlib/selftests/benchlibwalltime/tst_benchlibwalltime.cpp2
-rw-r--r--tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp2
-rw-r--r--tests/auto/testlib/selftests/commandlinedata/tst_commandlinedata.cpp2
-rw-r--r--tests/auto/testlib/selftests/crashes/tst_crashes.cpp2
-rw-r--r--tests/auto/testlib/selftests/datatable/tst_datatable.cpp2
-rw-r--r--tests/auto/testlib/selftests/datetime/tst_datetime.cpp5
-rw-r--r--tests/auto/testlib/selftests/expectfail/tst_expectfail.cpp2
-rw-r--r--tests/auto/testlib/selftests/fetchbogus/tst_fetchbogus.cpp2
-rw-r--r--tests/auto/testlib/selftests/findtestdata/findtestdata.cpp2
-rw-r--r--tests/auto/testlib/selftests/float/tst_float.cpp2
-rw-r--r--tests/auto/testlib/selftests/globaldata/tst_globaldata.cpp2
-rw-r--r--tests/auto/testlib/selftests/longstring/tst_longstring.cpp2
-rw-r--r--tests/auto/testlib/selftests/maxwarnings/maxwarnings.cpp2
-rw-r--r--tests/auto/testlib/selftests/qexecstringlist/tst_qexecstringlist.cpp2
-rw-r--r--tests/auto/testlib/selftests/singleskip/tst_singleskip.cpp2
-rw-r--r--tests/auto/testlib/selftests/skip/tst_skip.cpp2
-rw-r--r--tests/auto/testlib/selftests/sleep/tst_sleep.cpp2
-rw-r--r--tests/auto/testlib/selftests/strcmp/tst_strcmp.cpp2
-rw-r--r--tests/auto/testlib/selftests/subtest/tst_subtest.cpp4
-rw-r--r--tests/auto/testlib/selftests/tst_selftests.cpp2
-rw-r--r--tests/auto/testlib/selftests/warnings/tst_warnings.cpp2
27 files changed, 29 insertions, 30 deletions
diff --git a/tests/auto/testlib/selftests/assert/tst_assert.cpp b/tests/auto/testlib/selftests/assert/tst_assert.cpp
index fd6b84c722..c2ec453317 100644
--- a/tests/auto/testlib/selftests/assert/tst_assert.cpp
+++ b/tests/auto/testlib/selftests/assert/tst_assert.cpp
@@ -44,7 +44,7 @@
# undef QT_NO_DEBUG
#endif
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
class tst_Assert: public QObject
diff --git a/tests/auto/testlib/selftests/badxml/tst_badxml.cpp b/tests/auto/testlib/selftests/badxml/tst_badxml.cpp
index 37d7ecf17d..0d10504020 100644
--- a/tests/auto/testlib/selftests/badxml/tst_badxml.cpp
+++ b/tests/auto/testlib/selftests/badxml/tst_badxml.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
/*
diff --git a/tests/auto/testlib/selftests/benchlibcallgrind/tst_benchlibcallgrind.cpp b/tests/auto/testlib/selftests/benchlibcallgrind/tst_benchlibcallgrind.cpp
index 4cbadefc2d..7a7a190e7d 100644
--- a/tests/auto/testlib/selftests/benchlibcallgrind/tst_benchlibcallgrind.cpp
+++ b/tests/auto/testlib/selftests/benchlibcallgrind/tst_benchlibcallgrind.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
/* This test must be explicitly enabled since there are no compile tests for valgrind.h */
diff --git a/tests/auto/testlib/selftests/benchlibeventcounter/tst_benchlibeventcounter.cpp b/tests/auto/testlib/selftests/benchlibeventcounter/tst_benchlibeventcounter.cpp
index a7db86fbfa..8a9a7e3f3a 100644
--- a/tests/auto/testlib/selftests/benchlibeventcounter/tst_benchlibeventcounter.cpp
+++ b/tests/auto/testlib/selftests/benchlibeventcounter/tst_benchlibeventcounter.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
/* Custom event dispatcher to ensure we don't receive any spontaneous events */
diff --git a/tests/auto/testlib/selftests/benchliboptions/tst_benchliboptions.cpp b/tests/auto/testlib/selftests/benchliboptions/tst_benchliboptions.cpp
index c39b6acc2e..2431a1df78 100644
--- a/tests/auto/testlib/selftests/benchliboptions/tst_benchliboptions.cpp
+++ b/tests/auto/testlib/selftests/benchliboptions/tst_benchliboptions.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
/* Custom event dispatcher to ensure we don't receive any spontaneous events */
diff --git a/tests/auto/testlib/selftests/benchlibtickcounter/tst_benchlibtickcounter.cpp b/tests/auto/testlib/selftests/benchlibtickcounter/tst_benchlibtickcounter.cpp
index 4cd093e101..38a7029262 100644
--- a/tests/auto/testlib/selftests/benchlibtickcounter/tst_benchlibtickcounter.cpp
+++ b/tests/auto/testlib/selftests/benchlibtickcounter/tst_benchlibtickcounter.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
#include <private/cycle_p.h>
diff --git a/tests/auto/testlib/selftests/benchlibwalltime/tst_benchlibwalltime.cpp b/tests/auto/testlib/selftests/benchlibwalltime/tst_benchlibwalltime.cpp
index a4537c3322..c079983e6c 100644
--- a/tests/auto/testlib/selftests/benchlibwalltime/tst_benchlibwalltime.cpp
+++ b/tests/auto/testlib/selftests/benchlibwalltime/tst_benchlibwalltime.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
class tst_BenchlibWalltime: public QObject
diff --git a/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp b/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp
index 767806e960..72d3ac9665 100644
--- a/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp
+++ b/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
#include <QtGui/QImage>
#include <QtGui/QPixmap>
diff --git a/tests/auto/testlib/selftests/commandlinedata/tst_commandlinedata.cpp b/tests/auto/testlib/selftests/commandlinedata/tst_commandlinedata.cpp
index bca51846b9..d6d3db886b 100644
--- a/tests/auto/testlib/selftests/commandlinedata/tst_commandlinedata.cpp
+++ b/tests/auto/testlib/selftests/commandlinedata/tst_commandlinedata.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
/*!
diff --git a/tests/auto/testlib/selftests/crashes/tst_crashes.cpp b/tests/auto/testlib/selftests/crashes/tst_crashes.cpp
index 87cb19cec6..35a55a367a 100644
--- a/tests/auto/testlib/selftests/crashes/tst_crashes.cpp
+++ b/tests/auto/testlib/selftests/crashes/tst_crashes.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
#ifdef Q_OS_WIN
diff --git a/tests/auto/testlib/selftests/datatable/tst_datatable.cpp b/tests/auto/testlib/selftests/datatable/tst_datatable.cpp
index 1b94a46894..de2495ce65 100644
--- a/tests/auto/testlib/selftests/datatable/tst_datatable.cpp
+++ b/tests/auto/testlib/selftests/datatable/tst_datatable.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
/*!
diff --git a/tests/auto/testlib/selftests/datetime/tst_datetime.cpp b/tests/auto/testlib/selftests/datetime/tst_datetime.cpp
index dec4193484..ee6baacd5b 100644
--- a/tests/auto/testlib/selftests/datetime/tst_datetime.cpp
+++ b/tests/auto/testlib/selftests/datetime/tst_datetime.cpp
@@ -40,11 +40,10 @@
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
+#include <QtCore/QDateTime>
#include <QtTest/QtTest>
-#include <QDateTime>
-
/*!
\internal
*/
diff --git a/tests/auto/testlib/selftests/expectfail/tst_expectfail.cpp b/tests/auto/testlib/selftests/expectfail/tst_expectfail.cpp
index 568dffec29..6df919a9a0 100644
--- a/tests/auto/testlib/selftests/expectfail/tst_expectfail.cpp
+++ b/tests/auto/testlib/selftests/expectfail/tst_expectfail.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
class tst_ExpectFail: public QObject
diff --git a/tests/auto/testlib/selftests/fetchbogus/tst_fetchbogus.cpp b/tests/auto/testlib/selftests/fetchbogus/tst_fetchbogus.cpp
index 94e448ceeb..f6f4f0de99 100644
--- a/tests/auto/testlib/selftests/fetchbogus/tst_fetchbogus.cpp
+++ b/tests/auto/testlib/selftests/fetchbogus/tst_fetchbogus.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
class tst_FetchBogus: public QObject
diff --git a/tests/auto/testlib/selftests/findtestdata/findtestdata.cpp b/tests/auto/testlib/selftests/findtestdata/findtestdata.cpp
index de45a84edd..a0018bc420 100644
--- a/tests/auto/testlib/selftests/findtestdata/findtestdata.cpp
+++ b/tests/auto/testlib/selftests/findtestdata/findtestdata.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
-#include <QtCore/QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
#define TESTFILE "testfile"
diff --git a/tests/auto/testlib/selftests/float/tst_float.cpp b/tests/auto/testlib/selftests/float/tst_float.cpp
index 233306ce45..47fb253cd0 100644
--- a/tests/auto/testlib/selftests/float/tst_float.cpp
+++ b/tests/auto/testlib/selftests/float/tst_float.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
#include <QDebug>
diff --git a/tests/auto/testlib/selftests/globaldata/tst_globaldata.cpp b/tests/auto/testlib/selftests/globaldata/tst_globaldata.cpp
index cedfac7e89..5a7ffd328f 100644
--- a/tests/auto/testlib/selftests/globaldata/tst_globaldata.cpp
+++ b/tests/auto/testlib/selftests/globaldata/tst_globaldata.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
#include <QDebug>
diff --git a/tests/auto/testlib/selftests/longstring/tst_longstring.cpp b/tests/auto/testlib/selftests/longstring/tst_longstring.cpp
index e8b6d9129c..d42e760483 100644
--- a/tests/auto/testlib/selftests/longstring/tst_longstring.cpp
+++ b/tests/auto/testlib/selftests/longstring/tst_longstring.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
char const lipsum[] =
diff --git a/tests/auto/testlib/selftests/maxwarnings/maxwarnings.cpp b/tests/auto/testlib/selftests/maxwarnings/maxwarnings.cpp
index a00d6879c3..fdfe00fc42 100644
--- a/tests/auto/testlib/selftests/maxwarnings/maxwarnings.cpp
+++ b/tests/auto/testlib/selftests/maxwarnings/maxwarnings.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
-#include <QtCore/QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
class MaxWarnings: public QObject
diff --git a/tests/auto/testlib/selftests/qexecstringlist/tst_qexecstringlist.cpp b/tests/auto/testlib/selftests/qexecstringlist/tst_qexecstringlist.cpp
index 419165592d..5df7e1e1d5 100644
--- a/tests/auto/testlib/selftests/qexecstringlist/tst_qexecstringlist.cpp
+++ b/tests/auto/testlib/selftests/qexecstringlist/tst_qexecstringlist.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
class tst_QExecStringList: public QObject
diff --git a/tests/auto/testlib/selftests/singleskip/tst_singleskip.cpp b/tests/auto/testlib/selftests/singleskip/tst_singleskip.cpp
index 04c451da9d..d36b9b52f9 100644
--- a/tests/auto/testlib/selftests/singleskip/tst_singleskip.cpp
+++ b/tests/auto/testlib/selftests/singleskip/tst_singleskip.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
class tst_SingleSkip: public QObject
diff --git a/tests/auto/testlib/selftests/skip/tst_skip.cpp b/tests/auto/testlib/selftests/skip/tst_skip.cpp
index 75e79532f6..76e9059f87 100644
--- a/tests/auto/testlib/selftests/skip/tst_skip.cpp
+++ b/tests/auto/testlib/selftests/skip/tst_skip.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
class tst_Skip: public QObject
diff --git a/tests/auto/testlib/selftests/sleep/tst_sleep.cpp b/tests/auto/testlib/selftests/sleep/tst_sleep.cpp
index 8787638bed..349ecb1d1c 100644
--- a/tests/auto/testlib/selftests/sleep/tst_sleep.cpp
+++ b/tests/auto/testlib/selftests/sleep/tst_sleep.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
class tst_Sleep: public QObject
diff --git a/tests/auto/testlib/selftests/strcmp/tst_strcmp.cpp b/tests/auto/testlib/selftests/strcmp/tst_strcmp.cpp
index 40cdef0953..2cd69a5873 100644
--- a/tests/auto/testlib/selftests/strcmp/tst_strcmp.cpp
+++ b/tests/auto/testlib/selftests/strcmp/tst_strcmp.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
class tst_StrCmp: public QObject
diff --git a/tests/auto/testlib/selftests/subtest/tst_subtest.cpp b/tests/auto/testlib/selftests/subtest/tst_subtest.cpp
index cf0b499e96..385d43ab8d 100644
--- a/tests/auto/testlib/selftests/subtest/tst_subtest.cpp
+++ b/tests/auto/testlib/selftests/subtest/tst_subtest.cpp
@@ -40,9 +40,9 @@
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
+#include <QtCore/QDebug>
#include <QtTest/QtTest>
-#include <QDebug>
class tst_Subtest: public QObject
{
diff --git a/tests/auto/testlib/selftests/tst_selftests.cpp b/tests/auto/testlib/selftests/tst_selftests.cpp
index cc79652a3f..f33e7a3e0f 100644
--- a/tests/auto/testlib/selftests/tst_selftests.cpp
+++ b/tests/auto/testlib/selftests/tst_selftests.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtCore/QXmlStreamReader>
#include <QtCore/QFileInfo>
#include <QtCore/QDir>
diff --git a/tests/auto/testlib/selftests/warnings/tst_warnings.cpp b/tests/auto/testlib/selftests/warnings/tst_warnings.cpp
index fd4738740a..30fe15d354 100644
--- a/tests/auto/testlib/selftests/warnings/tst_warnings.cpp
+++ b/tests/auto/testlib/selftests/warnings/tst_warnings.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
-#include <QtCore>
+#include <QtCore/QCoreApplication>
#include <QtTest/QtTest>
class tst_Warnings: public QObject