Remove copy of tests/shared/util.h.
authorJason McDonald <jason.mcdonald@nokia.com>
Mon, 17 Oct 2011 09:05:25 +0000 (19:05 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 19 Oct 2011 06:55:39 +0000 (08:55 +0200)
This module has a copy of qtbase's tests/shared/util.h, the contents of
which have been moved into qtestlib and are now accessible from the
QtTest/QtTest header.

Change-Id: I0be9e21dc9f30629dad283a740b9d80347e01140
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
78 files changed:
tests/auto/declarative/debugger/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp
tests/auto/declarative/debugger/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp
tests/auto/declarative/debugger/qdeclarativeenginedebug/tst_qdeclarativeenginedebug.cpp
tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp
tests/auto/declarative/qdeclarativeapplication/tst_qdeclarativeapplication.cpp
tests/auto/declarative/qdeclarativebehaviors/tst_qdeclarativebehaviors.cpp
tests/auto/declarative/qdeclarativebinding/tst_qdeclarativebinding.cpp
tests/auto/declarative/qdeclarativecomponent/tst_qdeclarativecomponent.cpp
tests/auto/declarative/qdeclarativeconnection/tst_qdeclarativeconnection.cpp
tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp
tests/auto/declarative/qdeclarativefolderlistmodel/tst_qdeclarativefolderlistmodel.cpp
tests/auto/declarative/qdeclarativefontloader/tst_qdeclarativefontloader.cpp
tests/auto/declarative/qdeclarativeimageprovider/tst_qdeclarativeimageprovider.cpp
tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp
tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp
tests/auto/declarative/qdeclarativemoduleplugin/tst_qdeclarativemoduleplugin.cpp
tests/auto/declarative/qdeclarativepath/tst_qdeclarativepath.cpp
tests/auto/declarative/qdeclarativepixmapcache/tst_qdeclarativepixmapcache.cpp
tests/auto/declarative/qdeclarativesmoothedanimation/tst_qdeclarativesmoothedanimation.cpp
tests/auto/declarative/qdeclarativespringanimation/tst_qdeclarativespringanimation.cpp
tests/auto/declarative/qdeclarativesqldatabase/tst_qdeclarativesqldatabase.cpp
tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp
tests/auto/declarative/qdeclarativesystempalette/tst_qdeclarativesystempalette.cpp
tests/auto/declarative/qdeclarativeworkerscript/tst_qdeclarativeworkerscript.cpp
tests/auto/declarative/qdeclarativexmlhttprequest/tst_qdeclarativexmlhttprequest.cpp
tests/auto/declarative/qdeclarativexmllistmodel/tst_qdeclarativexmllistmodel.cpp
tests/auto/declarative/qsganimatedimage/tst_qsganimatedimage.cpp
tests/auto/declarative/qsgborderimage/tst_qsgborderimage.cpp
tests/auto/declarative/qsgcanvas/tst_qsgcanvas.cpp
tests/auto/declarative/qsgdrag/tst_qsgdrag.cpp
tests/auto/declarative/qsgdroparea/tst_qsgdroparea.cpp
tests/auto/declarative/qsgflickable/tst_qsgflickable.cpp
tests/auto/declarative/qsgfocusscope/tst_qsgfocusscope.cpp
tests/auto/declarative/qsggridview/tst_qsggridview.cpp
tests/auto/declarative/qsgimage/tst_qsgimage.cpp
tests/auto/declarative/qsgitem/tst_qsgitem.cpp
tests/auto/declarative/qsgitem2/tst_qsgitem.cpp
tests/auto/declarative/qsglistview/tst_qsglistview.cpp
tests/auto/declarative/qsgloader/tst_qsgloader.cpp
tests/auto/declarative/qsgmousearea/tst_qsgmousearea.cpp
tests/auto/declarative/qsgpathview/tst_qsgpathview.cpp
tests/auto/declarative/qsgpositioners/tst_qsgpositioners.cpp
tests/auto/declarative/qsgtext/tst_qsgtext.cpp
tests/auto/declarative/qsgtextedit/tst_qsgtextedit.cpp
tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp
tests/auto/declarative/qsgview/tst_qsgview.cpp
tests/auto/declarative/qsgvisualdatamodel/tst_qsgvisualdatamodel.cpp
tests/auto/particles/qsgage/tst_qsgage.cpp
tests/auto/qtquick1/qdeclarativeanimatedimage/tst_qdeclarativeanimatedimage.cpp
tests/auto/qtquick1/qdeclarativeanimations/tst_qdeclarativeanimations.cpp
tests/auto/qtquick1/qdeclarativeapplication/tst_qdeclarativeapplication.cpp
tests/auto/qtquick1/qdeclarativebehaviors/tst_qdeclarativebehaviors.cpp
tests/auto/qtquick1/qdeclarativebinding/tst_qdeclarativebinding.cpp
tests/auto/qtquick1/qdeclarativeborderimage/tst_qdeclarativeborderimage.cpp
tests/auto/qtquick1/qdeclarativeconnection/tst_qdeclarativeconnection.cpp
tests/auto/qtquick1/qdeclarativeflickable/tst_qdeclarativeflickable.cpp
tests/auto/qtquick1/qdeclarativefocusscope/tst_qdeclarativefocusscope.cpp
tests/auto/qtquick1/qdeclarativefontloader/tst_qdeclarativefontloader.cpp
tests/auto/qtquick1/qdeclarativegridview/tst_qdeclarativegridview.cpp
tests/auto/qtquick1/qdeclarativeimage/tst_qdeclarativeimage.cpp
tests/auto/qtquick1/qdeclarativeimageprovider/tst_qdeclarativeimageprovider.cpp
tests/auto/qtquick1/qdeclarativeitem/tst_qdeclarativeitem.cpp
tests/auto/qtquick1/qdeclarativelayoutitem/tst_qdeclarativelayoutitem.cpp
tests/auto/qtquick1/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp
tests/auto/qtquick1/qdeclarativelistview/tst_qdeclarativelistview.cpp
tests/auto/qtquick1/qdeclarativeloader/tst_qdeclarativeloader.cpp
tests/auto/qtquick1/qdeclarativepathview/tst_qdeclarativepathview.cpp
tests/auto/qtquick1/qdeclarativepositioners/tst_qdeclarativepositioners.cpp
tests/auto/qtquick1/qdeclarativesmoothedanimation/tst_qdeclarativesmoothedanimation.cpp
tests/auto/qtquick1/qdeclarativespringanimation/tst_qdeclarativespringanimation.cpp
tests/auto/qtquick1/qdeclarativesystempalette/tst_qdeclarativesystempalette.cpp
tests/auto/qtquick1/qdeclarativetext/tst_qdeclarativetext.cpp
tests/auto/qtquick1/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
tests/auto/qtquick1/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
tests/auto/qtquick1/qdeclarativeview/tst_qdeclarativeview.cpp
tests/auto/qtquick1/qdeclarativeviewer/tst_qdeclarativeviewer.cpp
tests/auto/qtquick1/qdeclarativexmllistmodel/tst_qdeclarativexmllistmodel.cpp
tests/shared/util.h [deleted file]

index 91e06ce..8f829a6 100644 (file)
@@ -50,7 +50,6 @@
 #include <private/qdeclarativedebugclient_p.h>
 #include <private/qdeclarativedebugservice_p.h>
 
-#include "../../../../shared/util.h"
 #include "../../shared/util.h"
 #include "../shared/debugutil_p.h"
 
index 7ef2ee1..8e31303 100644 (file)
@@ -58,7 +58,6 @@
 #include <private/qdeclarativemetatype_p.h>
 #include <private/qdeclarativeproperty_p.h>
 
-#include "../../../../shared/util.h"
 #include "../shared/debugutil_p.h"
 
 Q_DECLARE_METATYPE(QDeclarativeDebugWatch::State)
index 81aac51..9d3f415 100644 (file)
@@ -38,7 +38,7 @@
 ** $QT_END_LICENSE$
 **
 ****************************************************************************/
-#include <qtest.h>
+#include <QtTest/QtTest>
 #include <QtDeclarative/qdeclarativeengine.h>
 #include <QtDeclarative/qdeclarativecomponent.h>
 #include <QtDeclarative/qsgview.h>
@@ -55,7 +55,6 @@
 #include <math.h>
 
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 
 class tst_qdeclarativeanimations : public QObject
 {
index 6c0d354..184a7df 100644 (file)
@@ -40,7 +40,6 @@
 ****************************************************************************/
 
 #include <qtest.h>
-#include "../../../shared/util.h"
 #include <QtDeclarative/qdeclarativecomponent.h>
 #include <QtDeclarative/qdeclarativeengine.h>
 #include <QtDeclarative/qsgitem.h>
index 8eb2907..b2aa311 100644 (file)
@@ -38,7 +38,7 @@
 ** $QT_END_LICENSE$
 **
 ****************************************************************************/
-#include <qtest.h>
+#include <QtTest/QtTest>
 #include <qsignalspy.h>
 #include <QtDeclarative/qdeclarativeengine.h>
 #include <QtDeclarative/qdeclarativecomponent.h>
@@ -49,7 +49,6 @@
 #include <private/qdeclarativeanimation_p.h>
 #include <private/qsgitem_p.h>
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 
 class tst_qdeclarativebehaviors : public QObject
 {
index 92b3c2b..de34d9e 100644 (file)
@@ -44,7 +44,6 @@
 #include <private/qdeclarativebind_p.h>
 #include <private/qsgrectangle_p.h>
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 
 class tst_qdeclarativebinding : public QObject
 {
index 78beee6..f3354ac 100644 (file)
@@ -48,7 +48,6 @@
 #include <QtDeclarative/qdeclarativeincubator.h>
 #include <qcolor.h>
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 
 class MyIC : public QObject, public QDeclarativeIncubationController
 {
index 31c0db6..ec04833 100644 (file)
@@ -44,7 +44,6 @@
 #include <private/qdeclarativeconnections_p.h>
 #include <private/qsgitem_p.h>
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 #include <QtDeclarative/qdeclarativescriptstring.h>
 
 class tst_qdeclarativeconnection : public QObject
index 4f1cdcc..40072c9 100644 (file)
@@ -38,7 +38,7 @@
 ** $QT_END_LICENSE$
 **
 ****************************************************************************/
-#include <qtest.h>
+#include <QtTest/QtTest>
 #include <QtDeclarative/qdeclarativecomponent.h>
 #include <QtDeclarative/qdeclarativeengine.h>
 #include <QtDeclarative/qdeclarativeexpression.h>
@@ -54,7 +54,6 @@
 #include "testtypes.h"
 #include "testhttpserver.h"
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 
 /*
 This test covers evaluation of ECMAScript expressions and bindings from within
index f80928f..f8c91e6 100644 (file)
@@ -40,7 +40,6 @@
 ****************************************************************************/
 #include <qtest.h>
 #include <QtTest/QSignalSpy>
-#include "../../../shared/util.h"
 #include <QtDeclarative/qdeclarativeengine.h>
 #include <QtDeclarative/qdeclarativecomponent.h>
 #include <QtCore/qdir.h>
index cd67f14..67a040d 100644 (file)
@@ -45,7 +45,6 @@
 #include <QtDeclarative/qdeclarativecontext.h>
 #include <QtDeclarative/private/qdeclarativefontloader_p.h>
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 #include "../../declarative/shared/testhttpserver.h"
 
 #define SERVER_PORT 14448
index 817738a..9f4e131 100644 (file)
@@ -45,7 +45,6 @@
 #include <private/qsgimage_p.h>
 #include <QImageReader>
 #include <QWaitCondition>
-#include "../../../shared/util.h"
 
 Q_DECLARE_METATYPE(QDeclarativeImageProvider*);
 
index a06be02..bde2c14 100644 (file)
@@ -52,8 +52,6 @@
 #include <private/qdeclarativeglobal_p.h>
 
 #include "testtypes.h"
-
-#include "../../../shared/util.h"
 #include "testhttpserver.h"
 
 DEFINE_BOOL_CONFIG_OPTION(qmlCheckTypes, QML_CHECK_TYPES)
index fe2cf9c..92e3a8f 100644 (file)
@@ -51,8 +51,6 @@
 #include <QtCore/qtranslator.h>
 #include <QSignalSpy>
 
-#include "../../../shared/util.h"
-
 Q_DECLARE_METATYPE(QList<int>)
 Q_DECLARE_METATYPE(QList<QVariantHash>)
 
index 4ac625e..d8b7cf4 100644 (file)
@@ -45,7 +45,6 @@
 #include <QDebug>
 
 #include "../shared/testhttpserver.h"
-#include "../../../shared/util.h"
 #include "../shared/util.h"
 
 #define SERVER_ADDR "http://127.0.0.1:14450"
index c390b7b..91513fc 100644 (file)
@@ -45,7 +45,6 @@
 #include <QtDeclarative/private/qdeclarativepath_p.h>
 
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 
 class tst_QDeclarativePath : public QObject
 {
index e0f7a66..386d465 100644 (file)
@@ -45,7 +45,6 @@
 #include <QtDeclarative/qdeclarativeimageprovider.h>
 #include <QNetworkReply>
 #include "testhttpserver.h"
-#include "../../../shared/util.h"
 
 #ifndef QT_NO_CONCURRENT
 #include <qtconcurrentrun.h>
index 17a4f0e..989edfa 100644 (file)
@@ -45,7 +45,6 @@
 #include <private/qsgrectangle_p.h>
 #include <private/qdeclarativevaluetype_p.h>
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 
 class tst_qdeclarativesmoothedanimation : public QObject
 {
index 2432509..d7edcee 100644 (file)
@@ -44,7 +44,6 @@
 #include <private/qdeclarativespringanimation_p.h>
 #include <private/qdeclarativevaluetype_p.h>
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 
 class tst_qdeclarativespringanimation : public QObject
 {
index 0527427..b7e04b7 100644 (file)
@@ -39,7 +39,6 @@
 **
 ****************************************************************************/
 #include <qtest.h>
-#include "../../../shared/util.h"
 #include <QtDeclarative/qdeclarativeengine.h>
 #include <QtDeclarative/qdeclarativecomponent.h>
 #include <private/qsgtext_p.h>
index cbf4814..ac24a0b 100644 (file)
@@ -51,7 +51,6 @@
 #include <private/qsgitem_p.h>
 #include <private/qdeclarativeproperty_p.h>
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 
 class MyAttached : public QObject
 {
index 15251ec..8c95432 100644 (file)
@@ -45,7 +45,6 @@
 #include <QtDeclarative/qdeclarativecomponent.h>
 #include <QtDeclarative/private/qdeclarativesystempalette_p.h>
 #include <qpalette.h>
-#include "../../../shared/util.h"
 
 class tst_qdeclarativesystempalette : public QObject
 {
index 8b7f6b6..bb7921c 100644 (file)
@@ -51,7 +51,6 @@
 #include <private/qdeclarativeworkerscript_p.h>
 #include <private/qdeclarativeengine_p.h>
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 
 inline QUrl TEST_FILE(const QString &filename)
 {
index 3328232..2b66e67 100644 (file)
@@ -57,7 +57,6 @@
 #include <QtDeclarative/qdeclarativeengine.h>
 #include <QtDeclarative/qdeclarativecomponent.h>
 #include <private/qdeclarativexmllistmodel_p.h>
-#include "../../../shared/util.h"
 
 typedef QPair<int, int> QDeclarativeXmlListRange;
 typedef QList<QVariantList> QDeclarativeXmlModelData;
index 8e63773..7572701 100644 (file)
@@ -50,7 +50,6 @@
 
 #include "../shared/testhttpserver.h"
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 
 class tst_qsganimatedimage : public QObject
 {
index a96ea4b..0835a66 100644 (file)
@@ -57,7 +57,6 @@
 
 #include "../shared/testhttpserver.h"
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 
 #define SERVER_PORT 14446
 #define SERVER_ADDR "http://127.0.0.1:14446"
index a504de8..d8135ed 100644 (file)
@@ -45,7 +45,6 @@
 #include <QtDeclarative/QSGItem>
 #include <QtDeclarative/QSGCanvas>
 #include <QtDeclarative/private/qsgrectangle_p.h>
-#include "../../../shared/util.h"
 #include <QtGui/QWindowSystemInterface>
 
 struct TouchEventData {
index 8e2163a..9719114 100644 (file)
@@ -46,7 +46,6 @@
 #include <QtDeclarative/qdeclarativecontext.h>
 #include <QtDeclarative/qdeclarativeengine.h>
 #include <QtDeclarative/qdeclarativeexpression.h>
-#include "../../../shared/util.h"
 
 template <typename T> static T evaluate(QObject *scope, const QString &expression)
 {
index 57cedcc..1c303b4 100644 (file)
@@ -46,7 +46,6 @@
 #include <QtDeclarative/qdeclarativecontext.h>
 #include <QtDeclarative/qdeclarativeengine.h>
 #include <QtDeclarative/qdeclarativeexpression.h>
-#include "../../../shared/util.h"
 
 #include <QtGui/qwindowsysteminterface_qpa.h>
 
index 0920f0f..fa3f13f 100644 (file)
@@ -47,7 +47,6 @@
 #include <private/qdeclarativevaluetype_p.h>
 #include <math.h>
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 #include <QtOpenGL/QGLShaderProgram>
 
 class tst_qsgflickable : public QObject
index 046baca..c70ba69 100644 (file)
@@ -48,7 +48,6 @@
 #include <private/qsgtext_p.h>
 #include <QtDeclarative/private/qsgfocusscope_p.h>
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 
 class tst_qsgfocusscope : public QObject
 {
index b5cd75c..9e5c425 100644 (file)
@@ -52,7 +52,6 @@
 #include <QtDeclarative/private/qsgtext_p.h>
 #include <QtDeclarative/private/qdeclarativelistmodel_p.h>
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 #include <QtGui/qguiapplication.h>
 
 Q_DECLARE_METATYPE(Qt::LayoutDirection)
index 7a850db..84d5f75 100644 (file)
@@ -57,7 +57,6 @@
 #include <QtGui/QImageReader>
 
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 #include "../shared/testhttpserver.h"
 
 #define SERVER_PORT 14451
index c914d31..84c52bd 100644 (file)
@@ -45,7 +45,6 @@
 #include "qsgcanvas.h"
 #include <QtWidgets/QGraphicsSceneMouseEvent>
 #include "private/qsgfocusscope_p.h"
-#include "../../../shared/util.h"
 #include <QDebug>
 #include <QTimer>
 
index 08a3071..fe29de1 100644 (file)
@@ -47,7 +47,6 @@
 #include <private/qsgrectangle_p.h>
 #include <private/qsgitem_p.h>
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 
 class tst_QSGItem : public QObject
 {
index c2a6920..a23d3b5 100644 (file)
@@ -53,7 +53,6 @@
 #include <QtDeclarative/private/qlistmodelinterface_p.h>
 #include <QtDeclarative/private/qdeclarativechangeset_p.h>
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 #include "incrementalmodel.h"
 #include <math.h>
 
index 7f307e0..3968a92 100644 (file)
@@ -48,7 +48,6 @@
 #include <private/qsgloader_p.h>
 #include "testhttpserver.h"
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 
 #define SERVER_PORT 14450
 
index 0ac2fa9..be6a601 100644 (file)
@@ -49,7 +49,6 @@
 #include <QtDeclarative/qdeclarativeengine.h>
 #include <QtOpenGL/QGLShaderProgram>
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 
 //#define OLDWAY
 
index c464860..c6440cf 100644 (file)
@@ -57,7 +57,6 @@
 #include <QFile>
 
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 
 static void initStandardTreeModel(QStandardItemModel *model)
 {
index 0ef10c1..03dc187 100644 (file)
@@ -48,7 +48,6 @@
 #include <private/qsgitem_p.h>
 #include <qdeclarativeexpression.h>
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 
 class tst_qsgpositioners : public QObject
 {
index 8dc32b2..ae3140e 100644 (file)
@@ -54,7 +54,6 @@
 #include <limits.h>
 #include <QtGui/QMouseEvent>
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 #include "testhttpserver.h"
 
 DEFINE_BOOL_CONFIG_OPTION(qmlDisableDistanceField, QML_DISABLE_DISTANCEFIELD)
index 945b2d2..17ce4db 100644 (file)
@@ -40,7 +40,6 @@
 ****************************************************************************/
 #include <qtest.h>
 #include <QtTest/QSignalSpy>
-#include "../../../shared/util.h"
 #include "../shared/testhttpserver.h"
 #include <math.h>
 #include <QFile>
index 9ab6e69..67089d8 100644 (file)
@@ -41,7 +41,6 @@
 #include <qtest.h>
 #include <QtTest/QSignalSpy>
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 #include <QtDeclarative/qdeclarativeengine.h>
 #include <QFile>
 #include <QtDeclarative/qsgview.h>
index 5edf197..d2c51d6 100644 (file)
@@ -45,7 +45,6 @@
 #include <QtDeclarative/qsgview.h>
 #include <QtDeclarative/qsgitem.h>
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 #include <QtGui/QWindow>
 #include <QtCore/QDebug>
 
index d9fec3f..0194931 100644 (file)
@@ -39,7 +39,6 @@
 **
 ****************************************************************************/
 #include "../shared/util.h"
-#include "../../../shared/util.h"
 #include <qtest.h>
 #include <QtTest/QSignalSpy>
 #include <QStandardItemModel>
index 54591e7..faa2675 100644 (file)
@@ -42,7 +42,6 @@
 #include <QtTest/QtTest>
 #include "../shared/particlestestsshared.h"
 #include <private/qsgparticlesystem_p.h>
-#include "../../../shared/util.h"
 #include <private/qabstractanimation_p.h>
 
 class tst_qsgage : public QObject
index 09d1980..275b8d0 100644 (file)
@@ -49,7 +49,6 @@
 #include <QtDeclarative/qdeclarativecontext.h>
 
 #include "../../declarative/shared/testhttpserver.h"
-#include "../../../shared/util.h"
 
 class tst_qdeclarativeanimatedimage : public QObject
 {
index b523b09..7075be8 100644 (file)
@@ -48,8 +48,6 @@
 #include <QVariantAnimation>
 #include <QEasingCurve>
 
-#include "../../../shared/util.h"
-
 class tst_qdeclarativeanimations : public QObject
 {
     Q_OBJECT
index 14765e4..be4dc5f 100644 (file)
@@ -40,7 +40,6 @@
 ****************************************************************************/
 
 #include <qtest.h>
-#include "../../../shared/util.h"
 #include <QtDeclarative/qdeclarativecomponent.h>
 #include <QtDeclarative/qdeclarativeengine.h>
 #include <QtQuick1/qdeclarativeitem.h>
index 3cff254..7e2f834 100644 (file)
@@ -48,7 +48,6 @@
 #include <QtQuick1/private/qdeclarativebehavior_p.h>
 #include <QtQuick1/private/qdeclarativeanimation_p.h>
 #include <QtQuick1/private/qdeclarativeitem_p.h>
-#include "../../../shared/util.h"
 
 class tst_qdeclarativebehaviors : public QObject
 {
index 9516aeb..d476748 100644 (file)
@@ -43,7 +43,6 @@
 #include <QtDeclarative/qdeclarativecomponent.h>
 #include <QtQuick1/private/qdeclarativebind_p.h>
 #include <QtQuick1/private/qdeclarativerectangle_p.h>
-#include "../../../shared/util.h"
 
 class tst_qdeclarativebinding : public QObject
 {
index b2a84e8..4b82fe0 100644 (file)
@@ -55,7 +55,6 @@
 #include <QtDeclarative/qdeclarativecontext.h>
 
 #include "../../declarative/shared/testhttpserver.h"
-#include "../../../shared/util.h"
 
 #define SERVER_PORT 14446
 #define SERVER_ADDR "http://127.0.0.1:14446"
index f23d5bc..588090a 100644 (file)
@@ -43,7 +43,6 @@
 #include <QtDeclarative/qdeclarativecomponent.h>
 #include <QtQuick1/private/qdeclarativeconnections_p.h>
 #include <QtQuick1/private/qdeclarativeitem_p.h>
-#include "../../../shared/util.h"
 #include <QtDeclarative/qdeclarativescriptstring.h>
 
 class tst_qdeclarativeconnection : public QObject
index 8e7f9ca..3962102 100644 (file)
@@ -47,7 +47,6 @@
 #include <private/qdeclarativevaluetype_p.h>
 #include <QtWidgets/qgraphicswidget.h>
 #include <math.h>
-#include "../../../shared/util.h"
 
 class tst_qdeclarativeflickable : public QObject
 {
index 656a095..0102782 100644 (file)
@@ -47,7 +47,6 @@
 #include <QtQuick1/private/qdeclarativetextedit_p.h>
 #include <QtQuick1/private/qdeclarativetext_p.h>
 #include <QtQuick1/private/qdeclarativefocusscope_p.h>
-#include "../../../shared/util.h"
 
 class tst_qdeclarativefocusscope : public QObject
 {
index 12ca221..3bcbe1b 100644 (file)
@@ -44,7 +44,6 @@
 #include <QtDeclarative/qdeclarativecomponent.h>
 #include <QtDeclarative/qdeclarativecontext.h>
 #include <QtQuick1/private/qdeclarativefontloader_p.h>
-#include "../../../shared/util.h"
 #include "../../declarative/shared/testhttpserver.h"
 
 #define SERVER_PORT 14448
index ea5cc2e..4a33232 100644 (file)
@@ -49,7 +49,6 @@
 #include <QtQuick1/private/qdeclarativeitem_p.h>
 #include <QtQuick1/private/qdeclarativegridview_p.h>
 #include <QtQuick1/private/qdeclarativetext_p.h>
-#include "../../../shared/util.h"
 
 class tst_QDeclarative1GridView : public QObject
 {
index fdfbbb1..e93c373 100644 (file)
@@ -54,7 +54,6 @@
 #include <QtDeclarative/qdeclarativeexpression.h>
 #include <QtTest/QSignalSpy>
 
-#include "../../../shared/util.h"
 #include "../../declarative/shared/testhttpserver.h"
 
 #define SERVER_PORT 14451
index 91c61f0..21e4133 100644 (file)
@@ -45,7 +45,6 @@
 #include <QtQuick1/private/qdeclarativeimage_p.h>
 #include <QImageReader>
 #include <QWaitCondition>
-#include "../../../shared/util.h"
 
 Q_DECLARE_METATYPE(QDeclarativeImageProvider*);
 
index ea84051..0998573 100644 (file)
@@ -46,7 +46,6 @@
 #include <QtQuick1/qdeclarativeview.h>
 #include <QtQuick1/private/qdeclarativerectangle_p.h>
 #include <QtQuick1/private/qdeclarativeitem_p.h>
-#include "../../../shared/util.h"
 
 class tst_QDeclarativeItem : public QObject
 {
index 8ea61dc..c3a0b22 100644 (file)
@@ -47,7 +47,6 @@
 #include <qgraphicsscene.h>
 #include <qgraphicswidget.h>
 #include <qgraphicslinearlayout.h>
-#include "../../../shared/util.h"
 
 class tst_qdeclarativelayoutitem : public QObject
 {
index 4b3d3a6..945a213 100644 (file)
@@ -51,8 +51,6 @@
 #include <QtCore/qtranslator.h>
 #include <QSignalSpy>
 
-#include "../../../shared/util.h"
-
 Q_DECLARE_METATYPE(QList<int>)
 Q_DECLARE_METATYPE(QList<QVariantHash>)
 
index 5d1eb39..835623f 100644 (file)
@@ -50,7 +50,6 @@
 #include <QtQuick1/private/qdeclarativetext_p.h>
 #include <QtQuick1/private/qdeclarativevisualitemmodel_p.h>
 #include <QtDeclarative/private/qlistmodelinterface_p.h>
-#include "../../../shared/util.h"
 #include "incrementalmodel.h"
 
 class tst_QDeclarative1ListView : public QObject
index f23ce3f..665f2b5 100644 (file)
@@ -47,7 +47,6 @@
 #include <QtDeclarative/qdeclarativecomponent.h>
 #include <QtQuick1/private/qdeclarativeloader_p.h>
 #include "testhttpserver.h"
-#include "../../../shared/util.h"
 
 #define SERVER_PORT 14450
 
index 69c8956..d4e5378 100644 (file)
@@ -55,8 +55,6 @@
 #include <QStandardItemModel>
 #include <QFile>
 
-#include "../../../shared/util.h"
-
 static void initStandardTreeModel(QStandardItemModel *model)
 {
     QStandardItem *item;
index 28a3c69..35bd4fb 100644 (file)
@@ -47,7 +47,6 @@
 #include <QtQuick1/private/qdeclarativeitem_p.h>
 #include <qdeclarativeexpression.h>
 #include <QtWidgets/qgraphicswidget.h>
-#include "../../../shared/util.h"
 
 class tst_QDeclarativePositioners : public QObject
 {
index 1d1a811..7ddcc43 100644 (file)
@@ -44,7 +44,6 @@
 #include <QtQuick1/private/qdeclarativesmoothedanimation_p.h>
 #include <QtQuick1/private/qdeclarativerectangle_p.h>
 #include <private/qdeclarativevaluetype_p.h>
-#include "../../../shared/util.h"
 
 class tst_qdeclarativesmoothedanimation : public QObject
 {
index 51137fa..5a7bea6 100644 (file)
@@ -43,7 +43,6 @@
 #include <QtDeclarative/qdeclarativecomponent.h>
 #include <QtQuick1/private/qdeclarativespringanimation_p.h>
 #include <private/qdeclarativevaluetype_p.h>
-#include "../../../shared/util.h"
 
 class tst_qdeclarativespringanimation : public QObject
 {
index 4738160..22805be 100644 (file)
@@ -45,7 +45,6 @@
 #include <QtDeclarative/qdeclarativecomponent.h>
 #include <QtQuick1/private/qdeclarativesystempalette_p.h>
 #include <qpalette.h>
-#include "../../../shared/util.h"
 
 class tst_qdeclarativesystempalette : public QObject
 {
index cefc7a2..42a7fe1 100644 (file)
@@ -52,7 +52,6 @@
 #include <QtWidgets/5.0.0/QtWidgets/private/qapplication_p.h>
 #include <limits.h>
 
-#include "../../../shared/util.h"
 #include "testhttpserver.h"
 
 class tst_qdeclarativetext : public QObject
index 45402f1..2289762 100644 (file)
@@ -40,7 +40,6 @@
 ****************************************************************************/
 #include <qtest.h>
 #include <QtTest/QSignalSpy>
-#include "../../../shared/util.h"
 #include "../../declarative/shared/testhttpserver.h"
 #include <math.h>
 #include <QFile>
index 76aa040..fde2a49 100644 (file)
@@ -40,7 +40,6 @@
 ****************************************************************************/
 #include <qtest.h>
 #include <QtTest/QSignalSpy>
-#include "../../../shared/util.h"
 #include <QtDeclarative/qdeclarativeengine.h>
 #include <QFile>
 #include <QtQuick1/qdeclarativeview.h>
index 019810a..b2dfc8e 100644 (file)
@@ -45,7 +45,6 @@
 #include <QtQuick1/qdeclarativeview.h>
 #include <QtQuick1/qdeclarativeitem.h>
 #include <QtWidgets/qgraphicswidget.h>
-#include "../../../shared/util.h"
 
 class tst_QDeclarativeView : public QObject
 {
index 6db8b4f..3ab836b 100644 (file)
 #include <QtDeclarative/qdeclarativecontext.h>
 #include <QtWidgets/qmenubar.h>
 #include <QSignalSpy>
-#include "../../../shared/util.h"
 #include "qmlruntime.h"
 #include "deviceorientation.h"
-#include "../../../shared/util.h"
 
 #if defined(Q_OS_MAC) || defined(Q_WS_MAEMO_5)
 #  define MENUBAR_HEIGHT(mw) 0
index 021d389..4a219db 100644 (file)
@@ -56,7 +56,6 @@
 #include <QtDeclarative/qdeclarativeengine.h>
 #include <QtDeclarative/qdeclarativecomponent.h>
 #include <QtQuick1/private/qdeclarativexmllistmodel_p.h>
-#include "../../../shared/util.h"
 
 typedef QPair<int, int> QDeclarativeXmlListRange;
 typedef QList<QVariantList> QDeclarativeXmlModelData;
diff --git a/tests/shared/util.h b/tests/shared/util.h
deleted file mode 100644 (file)
index ac78f2d..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** GNU Lesser General Public License Usage
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this
-** file. Please review the following information to ensure the GNU Lesser
-** General Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-// Functions and macros that really need to be in QTestLib
-
-// Will try to wait for the condition while allowing event processing
-#define QTRY_VERIFY(__expr) \
-    do { \
-        const int __step = 50; \
-        const int __timeout = 5000; \
-        if (!(__expr)) { \
-            QTest::qWait(0); \
-        } \
-        for (int __i = 0; __i < __timeout && !(__expr); __i+=__step) { \
-            QTest::qWait(__step); \
-        } \
-        QVERIFY(__expr); \
-    } while(0)
-
-// Will try to wait for the condition while allowing event processing
-#define QTRY_COMPARE(__expr, __expected) \
-    do { \
-        const int __step = 50; \
-        const int __timeout = 5000; \
-        if ((__expr) != (__expected)) { \
-            QTest::qWait(0); \
-        } \
-        for (int __i = 0; __i < __timeout && ((__expr) != (__expected)); __i+=__step) { \
-            QTest::qWait(__step); \
-        } \
-        QCOMPARE(__expr, __expected); \
-    } while(0)
-