From: Jason McDonald Date: Fri, 21 Oct 2011 01:00:14 +0000 (+1000) Subject: Make some qtestlib headers private. X-Git-Tag: qt-v5.0.0-alpha1~3098 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=59f91c0194f1ac83ae78e4b22f466e25873e1282;p=profile%2Fivi%2Fqtbase.git Make some qtestlib headers private. 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 --- diff --git a/src/testlib/qabstracttestlogger.cpp b/src/testlib/qabstracttestlogger.cpp index e2f253c..0d115b0 100644 --- a/src/testlib/qabstracttestlogger.cpp +++ b/src/testlib/qabstracttestlogger.cpp @@ -39,10 +39,10 @@ ** ****************************************************************************/ -#include "QtTest/private/qabstracttestlogger_p.h" -#include "QtTest/qtestassert.h" +#include +#include -#include "QtCore/qbytearray.h" +#include #include #include diff --git a/src/testlib/qbenchmarkmetric_p.h b/src/testlib/qbenchmarkmetric_p.h index 2abebe1..a3e885b 100644 --- a/src/testlib/qbenchmarkmetric_p.h +++ b/src/testlib/qbenchmarkmetric_p.h @@ -42,6 +42,17 @@ #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 #include diff --git a/src/testlib/qtestcoreelement.h b/src/testlib/qtestcoreelement_p.h similarity index 92% rename from src/testlib/qtestcoreelement.h rename to src/testlib/qtestcoreelement_p.h index 1d06c8d..17e6ede 100644 --- a/src/testlib/qtestcoreelement.h +++ b/src/testlib/qtestcoreelement_p.h @@ -39,11 +39,22 @@ ** ****************************************************************************/ -#ifndef QTESTCOREELEMENT_H -#define QTESTCOREELEMENT_H - -#include -#include +#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 +#include QT_BEGIN_HEADER diff --git a/src/testlib/qtestcorelist.h b/src/testlib/qtestcorelist_p.h similarity index 91% rename from src/testlib/qtestcorelist.h rename to src/testlib/qtestcorelist_p.h index 5027e4f..263df17 100644 --- a/src/testlib/qtestcorelist.h +++ b/src/testlib/qtestcorelist_p.h @@ -39,8 +39,19 @@ ** ****************************************************************************/ -#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 diff --git a/src/testlib/qtestelement.cpp b/src/testlib/qtestelement.cpp index 5f10947..d0af966 100644 --- a/src/testlib/qtestelement.cpp +++ b/src/testlib/qtestelement.cpp @@ -39,7 +39,7 @@ ** ****************************************************************************/ -#include +#include QT_BEGIN_NAMESPACE diff --git a/src/testlib/qtestelement.h b/src/testlib/qtestelement_p.h similarity index 86% rename from src/testlib/qtestelement.h rename to src/testlib/qtestelement_p.h index aa048b0..583ef1c 100644 --- a/src/testlib/qtestelement.h +++ b/src/testlib/qtestelement_p.h @@ -39,10 +39,21 @@ ** ****************************************************************************/ -#ifndef QTESTELEMENT_H -#define QTESTELEMENT_H +#ifndef QTESTELEMENT_P_H +#define QTESTELEMENT_P_H -#include +// +// 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 QT_BEGIN_HEADER diff --git a/src/testlib/qtestelementattribute.cpp b/src/testlib/qtestelementattribute.cpp index dda40b1..1ab25af 100644 --- a/src/testlib/qtestelementattribute.cpp +++ b/src/testlib/qtestelementattribute.cpp @@ -39,7 +39,7 @@ ** ****************************************************************************/ -#include +#include #include #include #include diff --git a/src/testlib/qtestelementattribute.h b/src/testlib/qtestelementattribute_p.h similarity index 89% rename from src/testlib/qtestelementattribute.h rename to src/testlib/qtestelementattribute_p.h index 3e146a5..9993321 100644 --- a/src/testlib/qtestelementattribute.h +++ b/src/testlib/qtestelementattribute_p.h @@ -39,10 +39,21 @@ ** ****************************************************************************/ -#ifndef QTESTELEMENTATTRIBUTE_H -#define QTESTELEMENTATTRIBUTE_H +#ifndef QTESTELEMENTATTRIBUTE_P_H +#define QTESTELEMENTATTRIBUTE_P_H -#include +// +// 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 QT_BEGIN_HEADER diff --git a/src/testlib/qtestxunitstreamer.cpp b/src/testlib/qtestxunitstreamer.cpp index b4ff109..2c0b074 100644 --- a/src/testlib/qtestxunitstreamer.cpp +++ b/src/testlib/qtestxunitstreamer.cpp @@ -39,10 +39,10 @@ ** ****************************************************************************/ -#include +#include #include -#include -#include +#include +#include #include #include #include diff --git a/src/testlib/qtestxunitstreamer.h b/src/testlib/qtestxunitstreamer_p.h similarity index 90% rename from src/testlib/qtestxunitstreamer.h rename to src/testlib/qtestxunitstreamer_p.h index 127c9b1..8258902 100644 --- a/src/testlib/qtestxunitstreamer.h +++ b/src/testlib/qtestxunitstreamer_p.h @@ -39,8 +39,19 @@ ** ****************************************************************************/ -#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 diff --git a/src/testlib/qxunittestlogger.cpp b/src/testlib/qxunittestlogger.cpp index 56ae43b..97a02ea 100644 --- a/src/testlib/qxunittestlogger.cpp +++ b/src/testlib/qxunittestlogger.cpp @@ -40,8 +40,8 @@ ****************************************************************************/ #include -#include -#include +#include +#include #include #include #include diff --git a/src/testlib/testlib.pro b/src/testlib/testlib.pro index d4dec96..183ad51 100644 --- a/src/testlib/testlib.pro +++ b/src/testlib/testlib.pro @@ -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 \ diff --git a/src/tools/uic/qclass_lib_map.h b/src/tools/uic/qclass_lib_map.h index 6f07ad7..5653320 100644 --- a/src/tools/uic/qclass_lib_map.h +++ b/src/tools/uic/qclass_lib_map.h @@ -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)