Navigation Menu

Skip to content

Commit

Permalink
Remove copy of tests/shared/util.h.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jason McDonald authored and Qt by Nokia committed Oct 19, 2011
1 parent 8b7af5d commit 8f72ef7
Show file tree
Hide file tree
Showing 78 changed files with 3 additions and 156 deletions.
Expand Up @@ -47,7 +47,6 @@

#include <QtDeclarative/qdeclarativeengine.h>

#include "../../../../shared/util.h"
#include "../shared/debugutil_p.h"

#define PORT 13770
Expand Down
Expand Up @@ -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"

Expand Down
Expand Up @@ -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)
Expand Down
Expand Up @@ -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>
Expand All @@ -55,7 +55,6 @@
#include <math.h>

#include "../shared/util.h"
#include "../../../shared/util.h"

class tst_qdeclarativeanimations : public QObject
{
Expand Down
Expand Up @@ -40,7 +40,6 @@
****************************************************************************/

#include <qtest.h>
#include "../../../shared/util.h"
#include <QtDeclarative/qdeclarativecomponent.h>
#include <QtDeclarative/qdeclarativeengine.h>
#include <QtDeclarative/qsgitem.h>
Expand Down
Expand Up @@ -38,7 +38,7 @@
** $QT_END_LICENSE$
**
****************************************************************************/
#include <qtest.h>
#include <QtTest/QtTest>
#include <qsignalspy.h>
#include <QtDeclarative/qdeclarativeengine.h>
#include <QtDeclarative/qdeclarativecomponent.h>
Expand All @@ -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
{
Expand Down
Expand Up @@ -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
{
Expand Down
Expand Up @@ -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
{
Expand Down
Expand Up @@ -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
Expand Down
Expand Up @@ -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>
Expand All @@ -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
Expand Down
Expand Up @@ -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>
Expand Down
Expand Up @@ -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
Expand Down
Expand Up @@ -45,7 +45,6 @@
#include <private/qsgimage_p.h>
#include <QImageReader>
#include <QWaitCondition>
#include "../../../shared/util.h"

Q_DECLARE_METATYPE(QDeclarativeImageProvider*);

Expand Down
Expand Up @@ -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)
Expand Down
Expand Up @@ -51,8 +51,6 @@
#include <QtCore/qtranslator.h>
#include <QSignalSpy>

#include "../../../shared/util.h"

Q_DECLARE_METATYPE(QList<int>)
Q_DECLARE_METATYPE(QList<QVariantHash>)

Expand Down
Expand Up @@ -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"
Expand Down
Expand Up @@ -45,7 +45,6 @@
#include <QtDeclarative/private/qdeclarativepath_p.h>

#include "../shared/util.h"
#include "../../../shared/util.h"

class tst_QDeclarativePath : public QObject
{
Expand Down
Expand Up @@ -45,7 +45,6 @@
#include <QtDeclarative/qdeclarativeimageprovider.h>
#include <QNetworkReply>
#include "testhttpserver.h"
#include "../../../shared/util.h"

#ifndef QT_NO_CONCURRENT
#include <qtconcurrentrun.h>
Expand Down
Expand Up @@ -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
{
Expand Down
Expand Up @@ -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
{
Expand Down
Expand Up @@ -39,7 +39,6 @@
**
****************************************************************************/
#include <qtest.h>
#include "../../../shared/util.h"
#include <QtDeclarative/qdeclarativeengine.h>
#include <QtDeclarative/qdeclarativecomponent.h>
#include <private/qsgtext_p.h>
Expand Down
Expand Up @@ -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
{
Expand Down
Expand Up @@ -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
{
Expand Down
Expand Up @@ -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)
{
Expand Down
Expand Up @@ -46,7 +46,6 @@
#include <QNetworkCookieJar>
#include "testhttpserver.h"
#include "../shared/util.h"
#include "../../../shared/util.h"

#define SERVER_PORT 14445

Expand Down
Expand Up @@ -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;
Expand Down
Expand Up @@ -50,7 +50,6 @@

#include "../shared/testhttpserver.h"
#include "../shared/util.h"
#include "../../../shared/util.h"

class tst_qsganimatedimage : public QObject
{
Expand Down
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion tests/auto/declarative/qsgcanvas/tst_qsgcanvas.cpp
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion tests/auto/declarative/qsgdrag/tst_qsgdrag.cpp
Expand Up @@ -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)
{
Expand Down
1 change: 0 additions & 1 deletion tests/auto/declarative/qsgdroparea/tst_qsgdroparea.cpp
Expand Up @@ -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>

Expand Down
1 change: 0 additions & 1 deletion tests/auto/declarative/qsgflickable/tst_qsgflickable.cpp
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion tests/auto/declarative/qsgfocusscope/tst_qsgfocusscope.cpp
Expand Up @@ -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
{
Expand Down
1 change: 0 additions & 1 deletion tests/auto/declarative/qsggridview/tst_qsggridview.cpp
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion tests/auto/declarative/qsgimage/tst_qsgimage.cpp
Expand Up @@ -57,7 +57,6 @@
#include <QtGui/QImageReader>

#include "../shared/util.h"
#include "../../../shared/util.h"
#include "../shared/testhttpserver.h"

#define SERVER_PORT 14451
Expand Down
1 change: 0 additions & 1 deletion tests/auto/declarative/qsgitem/tst_qsgitem.cpp
Expand Up @@ -45,7 +45,6 @@
#include "qsgcanvas.h"
#include <QtWidgets/QGraphicsSceneMouseEvent>
#include "private/qsgfocusscope_p.h"
#include "../../../shared/util.h"
#include <QDebug>
#include <QTimer>

Expand Down
1 change: 0 additions & 1 deletion tests/auto/declarative/qsgitem2/tst_qsgitem.cpp
Expand Up @@ -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
{
Expand Down
1 change: 0 additions & 1 deletion tests/auto/declarative/qsglistview/tst_qsglistview.cpp
Expand Up @@ -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>

Expand Down
1 change: 0 additions & 1 deletion tests/auto/declarative/qsgloader/tst_qsgloader.cpp
Expand Up @@ -48,7 +48,6 @@
#include <private/qsgloader_p.h>
#include "testhttpserver.h"
#include "../shared/util.h"
#include "../../../shared/util.h"

#define SERVER_PORT 14450

Expand Down
1 change: 0 additions & 1 deletion tests/auto/declarative/qsgmousearea/tst_qsgmousearea.cpp
Expand Up @@ -49,7 +49,6 @@
#include <QtDeclarative/qdeclarativeengine.h>
#include <QtOpenGL/QGLShaderProgram>
#include "../shared/util.h"
#include "../../../shared/util.h"

//#define OLDWAY

Expand Down
1 change: 0 additions & 1 deletion tests/auto/declarative/qsgpathview/tst_qsgpathview.cpp
Expand Up @@ -57,7 +57,6 @@
#include <QFile>

#include "../shared/util.h"
#include "../../../shared/util.h"

static void initStandardTreeModel(QStandardItemModel *model)
{
Expand Down
Expand Up @@ -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
{
Expand Down
1 change: 0 additions & 1 deletion tests/auto/declarative/qsgtext/tst_qsgtext.cpp
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion tests/auto/declarative/qsgtextedit/tst_qsgtextedit.cpp
Expand Up @@ -40,7 +40,6 @@
****************************************************************************/
#include <qtest.h>
#include <QtTest/QSignalSpy>
#include "../../../shared/util.h"
#include "../shared/testhttpserver.h"
#include <math.h>
#include <QFile>
Expand Down
1 change: 0 additions & 1 deletion tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion tests/auto/declarative/qsgview/tst_qsgview.cpp
Expand Up @@ -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>

Expand Down

0 comments on commit 8f72ef7

Please sign in to comment.