Added updated unit tests for updateLocation and reverseGeo.
[situare] / tests / testsituareservice / testlocationupdate / networkreplymock.h
index cec0293..fcb4108 100644 (file)
 #include <QNetworkReply>
 #include <QUrl>
 
+
 class NetworkReplyMock : public QNetworkReply
 {
     Q_OBJECT
 public:
     NetworkReplyMock(QObject *parent = 0);
     void abort();
-    qint64 bytesAvailable() const
-    {
-        return m_content.size() - m_offset;
-    }
+    qint64 bytesAvailable() const;
+
     bool isSequential() const
     {
         return true;
     }
-    //void setError(NetworkError errorCode, const QString &errorString);
+    void setError(NetworkError errorCode, const QString &errorString);
     void setData(const QByteArray &content);
     void setUrl(const QUrl &url);
     void test();