Refactor for testing and a unit test.
[ptas] / zouba / qt / tests / ut_httpclient / ut_httpclient.h
diff --git a/zouba/qt/tests/ut_httpclient/ut_httpclient.h b/zouba/qt/tests/ut_httpclient/ut_httpclient.h
new file mode 100644 (file)
index 0000000..b880e5a
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef UT_HTTPCLIENT_H
+#define UT_HTTPCLIENT_H
+
+#include <QtTest/QtTest>
+#include <QObject>
+
+#include <httpclient_p.h>
+
+Q_DECLARE_METATYPE(HttpClientPrivate*);
+
+class Ut_HttpClient : public QObject
+{
+    Q_OBJECT
+
+public:
+
+private slots:
+    void init();
+    void cleanup();
+    void initTestCase();
+    void cleanupTestCase();
+    void testParseReply();
+
+private:
+    HttpClientPrivate *m_subject;
+};
+#endif // UT_HTTPCLIENT_H