Make some qtestlib headers private.
authorJason McDonald <jason.mcdonald@nokia.com>
Fri, 21 Oct 2011 01:00:14 +0000 (11:00 +1000)
committerQt by Nokia <qt-info@nokia.com>
Sun, 23 Oct 2011 08:24:50 +0000 (10:24 +0200)
These headers should have been private from Day One.  Make them private
now so that nobody will be tempted to use them outside testlib in the
future.

Change-Id: I5361777ade124d8187176f9af3cc79cd1a8ecb4f
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
13 files changed:
src/testlib/qabstracttestlogger.cpp
src/testlib/qbenchmarkmetric_p.h
src/testlib/qtestcoreelement_p.h [moved from src/testlib/qtestcoreelement.h with 92% similarity]
src/testlib/qtestcorelist_p.h [moved from src/testlib/qtestcorelist.h with 91% similarity]
src/testlib/qtestelement.cpp
src/testlib/qtestelement_p.h [moved from src/testlib/qtestelement.h with 86% similarity]
src/testlib/qtestelementattribute.cpp
src/testlib/qtestelementattribute_p.h [moved from src/testlib/qtestelementattribute.h with 89% similarity]
src/testlib/qtestxunitstreamer.cpp
src/testlib/qtestxunitstreamer_p.h [moved from src/testlib/qtestxunitstreamer.h with 90% similarity]
src/testlib/qxunittestlogger.cpp
src/testlib/testlib.pro
src/tools/uic/qclass_lib_map.h

index e2f253c..0d115b0 100644 (file)
 **
 ****************************************************************************/
 
-#include "QtTest/private/qabstracttestlogger_p.h"
-#include "QtTest/qtestassert.h"
+#include <QtTest/private/qabstracttestlogger_p.h>
+#include <QtTest/qtestassert.h>
 
-#include "QtCore/qbytearray.h"
+#include <QtCore/qbytearray.h>
 
 #include <stdio.h>
 #include <stdlib.h>
index 2abebe1..a3e885b 100644 (file)
 #ifndef QBENCHMARKMETRIC_P_H
 #define QBENCHMARKMETRIC_P_H
 
+//
+//  W A R N I N G
+//  -------------
+//
+// This file is not part of the Qt API.  It exists purely as an
+// implementation detail.  This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
+
 #include <QtTest/qtest_global.h>
 #include <QtTest/qbenchmarkmetric.h>
 
similarity index 92%
rename from src/testlib/qtestcoreelement.h
rename to src/testlib/qtestcoreelement_p.h
index 1d06c8d..17e6ede 100644 (file)
 **
 ****************************************************************************/
 
-#ifndef QTESTCOREELEMENT_H
-#define QTESTCOREELEMENT_H
-
-#include <QtTest/qtestcorelist.h>
-#include <QtTest/qtestelementattribute.h>
+#ifndef QTESTCOREELEMENT_P_H
+#define QTESTCOREELEMENT_P_H
+
+//
+//  W A R N I N G
+//  -------------
+//
+// This file is not part of the Qt API.  It exists purely as an
+// implementation detail.  This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
+
+#include <QtTest/private/qtestcorelist_p.h>
+#include <QtTest/private/qtestelementattribute_p.h>
 
 QT_BEGIN_HEADER
 
similarity index 91%
rename from src/testlib/qtestcorelist.h
rename to src/testlib/qtestcorelist_p.h
index 5027e4f..263df17 100644 (file)
 **
 ****************************************************************************/
 
-#ifndef QTESTCORELIST_H
-#define QTESTCORELIST_H
+#ifndef QTESTCORELIST_P_H
+#define QTESTCORELIST_P_H
+
+//
+//  W A R N I N G
+//  -------------
+//
+// This file is not part of the Qt API.  It exists purely as an
+// implementation detail.  This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
 
 #include <QtCore/qglobal.h>
 
index 5f10947..d0af966 100644 (file)
@@ -39,7 +39,7 @@
 **
 ****************************************************************************/
 
-#include <QtTest/qtestelement.h>
+#include <QtTest/private/qtestelement_p.h>
 
 QT_BEGIN_NAMESPACE
 
similarity index 86%
rename from src/testlib/qtestelement.h
rename to src/testlib/qtestelement_p.h
index aa048b0..583ef1c 100644 (file)
 **
 ****************************************************************************/
 
-#ifndef QTESTELEMENT_H
-#define QTESTELEMENT_H
+#ifndef QTESTELEMENT_P_H
+#define QTESTELEMENT_P_H
 
-#include <QtTest/qtestcoreelement.h>
+//
+//  W A R N I N G
+//  -------------
+//
+// This file is not part of the Qt API.  It exists purely as an
+// implementation detail.  This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
+
+#include <QtTest/private/qtestcoreelement_p.h>
 
 QT_BEGIN_HEADER
 
index dda40b1..1ab25af 100644 (file)
@@ -39,7 +39,7 @@
 **
 ****************************************************************************/
 
-#include <QtTest/qtestelementattribute.h>
+#include <QtTest/private/qtestelementattribute_p.h>
 #include <QtCore/qbytearray.h>
 #include <string.h>
 #include <stdlib.h>
similarity index 89%
rename from src/testlib/qtestelementattribute.h
rename to src/testlib/qtestelementattribute_p.h
index 3e146a5..9993321 100644 (file)
 **
 ****************************************************************************/
 
-#ifndef QTESTELEMENTATTRIBUTE_H
-#define QTESTELEMENTATTRIBUTE_H
+#ifndef QTESTELEMENTATTRIBUTE_P_H
+#define QTESTELEMENTATTRIBUTE_P_H
 
-#include <QtTest/qtestcorelist.h>
+//
+//  W A R N I N G
+//  -------------
+//
+// This file is not part of the Qt API.  It exists purely as an
+// implementation detail.  This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
+
+#include <QtTest/private/qtestcorelist_p.h>
 
 QT_BEGIN_HEADER
 
index b4ff109..2c0b074 100644 (file)
 **
 ****************************************************************************/
 
-#include <QtTest/qtestxunitstreamer.h>
+#include <QtTest/private/qtestxunitstreamer_p.h>
 #include <QtTest/private/qxunittestlogger_p.h>
-#include <QtTest/qtestelement.h>
-#include <QtTest/qtestelementattribute.h>
+#include <QtTest/private/qtestelement_p.h>
+#include <QtTest/private/qtestelementattribute_p.h>
 #include <QtTest/qtestassert.h>
 #include <QtTest/private/qtestlog_p.h>
 #include <QtTest/private/qtestresult_p.h>
similarity index 90%
rename from src/testlib/qtestxunitstreamer.h
rename to src/testlib/qtestxunitstreamer_p.h
index 127c9b1..8258902 100644 (file)
 **
 ****************************************************************************/
 
-#ifndef QTESTXUNITSTREAMER_H
-#define QTESTXUNITSTREAMER_H
+#ifndef QTESTXUNITSTREAMER_P_H
+#define QTESTXUNITSTREAMER_P_H
+
+//
+//  W A R N I N G
+//  -------------
+//
+// This file is not part of the Qt API.  It exists purely as an
+// implementation detail.  This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
 
 #include <QtCore/qglobal.h>
 
index 56ae43b..97a02ea 100644 (file)
@@ -40,8 +40,8 @@
 ****************************************************************************/
 
 #include <QtTest/private/qxunittestlogger_p.h>
-#include <QtTest/qtestelement.h>
-#include <QtTest/qtestxunitstreamer.h>
+#include <QtTest/private/qtestelement_p.h>
+#include <QtTest/private/qtestxunitstreamer_p.h>
 #include <QtTest/qtestcase.h>
 #include <QtTest/private/qtestresult_p.h>
 #include <QtTest/private/qbenchmark_p.h>
index d4dec96..183ad51 100644 (file)
@@ -19,11 +19,7 @@ HEADERS = qbenchmark.h \
     qtestaccessible.h \
     qtestassert.h \
     qtestcase.h \
-    qtestcoreelement.h \
-    qtestcorelist.h \
     qtestdata.h \
-    qtestelementattribute.h \
-    qtestelement.h \
     qtestevent.h \
     qtesteventloop.h \
     qtest_global.h \
@@ -34,7 +30,7 @@ HEADERS = qbenchmark.h \
     qtestspontaneevent.h \
     qtestsystem.h \
     qtesttouch.h \
-    qtestxunitstreamer.h
+
 SOURCES = qtestcase.cpp \
     qtestlog.cpp \
     qtesttable.cpp \
index 6f07ad7..5653320 100644 (file)
@@ -514,11 +514,7 @@ QT_CLASS_LIB(QTest, QtTest, qtest.h)
 QT_CLASS_LIB(QtTestGui, QtTest, qtest_gui.h)
 QT_CLASS_LIB(QTestAccessibilityEvent, QtTest, qtestaccessible.h)
 QT_CLASS_LIB(QTestAccessibility, QtTest, qtestaccessible.h)
-QT_CLASS_LIB(QTestCoreElement, QtTest, qtestcoreelement.h)
-QT_CLASS_LIB(QTestCoreList, QtTest, qtestcorelist.h)
 QT_CLASS_LIB(QTestData, QtTest, qtestdata.h)
-QT_CLASS_LIB(QTestElement, QtTest, qtestelement.h)
-QT_CLASS_LIB(QTestElementAttribute, QtTest, qtestelementattribute.h)
 QT_CLASS_LIB(QTestEvent, QtTest, qtestevent.h)
 QT_CLASS_LIB(QTestKeyEvent, QtTest, qtestevent.h)
 QT_CLASS_LIB(QTestKeyClicksEvent, QtTest, qtestevent.h)
@@ -529,7 +525,6 @@ QT_CLASS_LIB(QTestEventLoop, QtTest, qtesteventloop.h)
 QT_CLASS_LIB(QEventSizeOfChecker, QtTest, qtestspontaneevent.h)
 QT_CLASS_LIB(QEventSizeOfChecker, QtTest, qtestspontaneevent.h)
 QT_CLASS_LIB(QSpontaneKeyEvent, QtTest, qtestspontaneevent.h)
-QT_CLASS_LIB(QTestXunitStreamer, QtTest, qtestxunitstreamer.h)
 QT_CLASS_LIB(QDBusAbstractAdaptor, QtDBus, qdbusabstractadaptor.h)
 QT_CLASS_LIB(QDBusAbstractInterfaceBase, QtDBus, qdbusabstractinterface.h)
 QT_CLASS_LIB(QDBusAbstractInterface, QtDBus, qdbusabstractinterface.h)