Changed selftests unittest to use specific headers instead of QtCore.
authorKurt Korbatits <kurt.korbatits@nokia.com>
Tue, 10 Jan 2012 00:28:42 +0000 (10:28 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 10 Jan 2012 04:12:18 +0000 (05:12 +0100)
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>
27 files changed:
tests/auto/testlib/selftests/assert/tst_assert.cpp
tests/auto/testlib/selftests/badxml/tst_badxml.cpp
tests/auto/testlib/selftests/benchlibcallgrind/tst_benchlibcallgrind.cpp
tests/auto/testlib/selftests/benchlibeventcounter/tst_benchlibeventcounter.cpp
tests/auto/testlib/selftests/benchliboptions/tst_benchliboptions.cpp
tests/auto/testlib/selftests/benchlibtickcounter/tst_benchlibtickcounter.cpp
tests/auto/testlib/selftests/benchlibwalltime/tst_benchlibwalltime.cpp
tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp
tests/auto/testlib/selftests/commandlinedata/tst_commandlinedata.cpp
tests/auto/testlib/selftests/crashes/tst_crashes.cpp
tests/auto/testlib/selftests/datatable/tst_datatable.cpp
tests/auto/testlib/selftests/datetime/tst_datetime.cpp
tests/auto/testlib/selftests/expectfail/tst_expectfail.cpp
tests/auto/testlib/selftests/fetchbogus/tst_fetchbogus.cpp
tests/auto/testlib/selftests/findtestdata/findtestdata.cpp
tests/auto/testlib/selftests/float/tst_float.cpp
tests/auto/testlib/selftests/globaldata/tst_globaldata.cpp
tests/auto/testlib/selftests/longstring/tst_longstring.cpp
tests/auto/testlib/selftests/maxwarnings/maxwarnings.cpp
tests/auto/testlib/selftests/qexecstringlist/tst_qexecstringlist.cpp
tests/auto/testlib/selftests/singleskip/tst_singleskip.cpp
tests/auto/testlib/selftests/skip/tst_skip.cpp
tests/auto/testlib/selftests/sleep/tst_sleep.cpp
tests/auto/testlib/selftests/strcmp/tst_strcmp.cpp
tests/auto/testlib/selftests/subtest/tst_subtest.cpp
tests/auto/testlib/selftests/tst_selftests.cpp
tests/auto/testlib/selftests/warnings/tst_warnings.cpp

index fd6b84c..c2ec453 100644 (file)
@@ -44,7 +44,7 @@
 # undef QT_NO_DEBUG
 #endif
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 
 class tst_Assert: public QObject
index 37d7ecf..0d10504 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 
 /*
index 4cbadef..7a7a190 100644 (file)
@@ -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 */
index a7db86f..8a9a7e3 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 
 /* Custom event dispatcher to ensure we don't receive any spontaneous events */
index c39b6ac..2431a1d 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 
 /* Custom event dispatcher to ensure we don't receive any spontaneous events */
index 4cd093e..38a7029 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 
 #include <private/cycle_p.h>
index a4537c3..c079983 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 
 class tst_BenchlibWalltime: public QObject
index 767806e..72d3ac9 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 #include <QtGui/QImage>
 #include <QtGui/QPixmap>
index bca5184..d6d3db8 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 
 /*!
index 87cb19c..35a55a3 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 
 #ifdef Q_OS_WIN
index 1b94a46..de2495c 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 
 /*!
index dec4193..ee6baac 100644 (file)
 ****************************************************************************/
 
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
+#include <QtCore/QDateTime>
 #include <QtTest/QtTest>
 
-#include <QDateTime>
-
 /*!
   \internal
  */
index 568dffe..6df919a 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 
 class tst_ExpectFail: public QObject
index 94e448c..f6f4f0d 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 
 class tst_FetchBogus: public QObject
index de45a84..a0018bc 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 
-#include <QtCore/QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 
 #define TESTFILE "testfile"
index 233306c..47fb253 100644 (file)
@@ -39,7 +39,7 @@
 **
 ****************************************************************************/
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 #include <QDebug>
 
index cedfac7..5a7ffd3 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 #include <QDebug>
 
index e8b6d91..d42e760 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 
 char const lipsum[] =
index a00d687..fdfe00f 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 
-#include <QtCore/QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 
 class MaxWarnings: public QObject
index 4191655..5df7e1e 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 
 class tst_QExecStringList: public QObject
index 04c451d..d36b9b5 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 
 class tst_SingleSkip: public QObject
index 75e7953..76e9059 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 
 class tst_Skip: public QObject
index 8787638..349ecb1 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 
 class tst_Sleep: public QObject
index 40cdef0..2cd69a5 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 
 class tst_StrCmp: public QObject
index cf0b499..385d43a 100644 (file)
@@ -40,9 +40,9 @@
 ****************************************************************************/
 
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
+#include <QtCore/QDebug>
 #include <QtTest/QtTest>
-#include <QDebug>
 
 class tst_Subtest: public QObject
 {
index cc79652..f33e7a3 100644 (file)
@@ -39,7 +39,7 @@
 **
 ****************************************************************************/
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtCore/QXmlStreamReader>
 #include <QtCore/QFileInfo>
 #include <QtCore/QDir>
index fd47387..30fe15d 100644 (file)
@@ -40,7 +40,7 @@
 ****************************************************************************/
 
 
-#include <QtCore>
+#include <QtCore/QCoreApplication>
 #include <QtTest/QtTest>
 
 class tst_Warnings: public QObject