diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2011-10-17 16:09:17 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-24 18:00:18 +0200 |
commit | e2993352a5b3773413e16af4c4c3c83c370250ae (patch) | |
tree | 8f9aee78e885839bdd9e6943c256b26255cbf961 /tests/auto/declarative/debugger/shared/debugutil_p.h | |
parent | 3d10ba505e40cc8c63778374627ee232c3252397 (diff) |
Debugger: Add autotest skeleton for inspector service
Change-Id: I2edd0d46f9b82262b91833945515374b9683be4b
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
Diffstat (limited to 'tests/auto/declarative/debugger/shared/debugutil_p.h')
-rw-r--r-- | tests/auto/declarative/debugger/shared/debugutil_p.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/auto/declarative/debugger/shared/debugutil_p.h b/tests/auto/declarative/debugger/shared/debugutil_p.h index be8df86b90..99a482cf2a 100644 --- a/tests/auto/declarative/debugger/shared/debugutil_p.h +++ b/tests/auto/declarative/debugger/shared/debugutil_p.h @@ -44,6 +44,7 @@ #include <QTimer> #include <QThread> #include <QTest> +#include <QProcess> #include <QtDeclarative/qdeclarativeengine.h> @@ -90,4 +91,30 @@ private: QByteArray lastMsg; }; +class QDeclarativeDebugProcess : public QObject +{ + Q_OBJECT +public: + QDeclarativeDebugProcess(const QString &executable); + ~QDeclarativeDebugProcess(); + + void start(const QStringList &arguments); + bool waitForSessionStart(); + + QString output() const; +private slots: + void processAppOutput(); + +private: + void stop(); + +private: + QString m_executable; + QProcess m_process; + QString m_outputBuffer; + QTimer m_timer; + QEventLoop m_eventLoop; + QMutex m_mutex; + bool m_started; +}; |