summaryrefslogtreecommitdiffstats
path: root/tests/auto/jsondbpartition/testjsondbpartition.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/jsondbpartition/testjsondbpartition.h')
-rw-r--r--tests/auto/jsondbpartition/testjsondbpartition.h27
1 files changed, 6 insertions, 21 deletions
diff --git a/tests/auto/jsondbpartition/testjsondbpartition.h b/tests/auto/jsondbpartition/testjsondbpartition.h
index 74896a8..5ab757b 100644
--- a/tests/auto/jsondbpartition/testjsondbpartition.h
+++ b/tests/auto/jsondbpartition/testjsondbpartition.h
@@ -41,26 +41,13 @@
#ifndef TESTJSONDBPARTITION_H
#define TESTJSONDBPARTITION_H
-#include <QCoreApplication>
-#include <QList>
-#include <QTest>
-#include <QFile>
-#include <QProcess>
-#include <QEventLoop>
-#include <QDebug>
-#include <QLocalSocket>
-#include <QTimer>
-
-#include <jsondb-client.h>
-#include <jsondb-error.h>
-
#include <QAbstractItemModel>
-#include "clientwrapper.h"
-#include "../../shared/qmltestutil.h"
+#include "requestwrapper.h"
+#include "qmltestutil.h"
QT_USE_NAMESPACE_JSONDB
-class TestJsonDbPartition: public ClientWrapper
+class TestJsonDbPartition: public RequestWrapper
{
Q_OBJECT
public:
@@ -80,23 +67,21 @@ private slots:
public slots:
void callbackSlot(QVariant error, QVariant response);
-protected slots:
+public:
void timeout();
private:
ComponentData *createComponent();
void deleteComponent(ComponentData *componentData);
- QVariant readJsonFile(const QString &filename);
private:
QProcess *mProcess;
QStringList mNotificationsReceived;
QList<ComponentData*> mComponents;
QString mPluginPath;
+
+ // Response values
bool mTimedOut;
- bool callbackError;
- QVariant callbackMeta;
- QVariant callbackResponse;
};
#endif