Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/syncenginetestutils.h')
-rw-r--r--test/syncenginetestutils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/syncenginetestutils.h b/test/syncenginetestutils.h
index 1a78add5b..3957479d6 100644
--- a/test/syncenginetestutils.h
+++ b/test/syncenginetestutils.h
@@ -728,6 +728,8 @@ public:
setAttribute(QNetworkRequest::HttpStatusCodeAttribute, _httpErrorCode);
setError(InternalServerError, "Internal Server Fake Error");
emit metaDataChanged();
+ emit readyRead();
+ setFinished(true);
emit finished();
}
@@ -738,6 +740,9 @@ public:
_body = _body.mid(max);
return max;
}
+ qint64 bytesAvailable() const override {
+ return _body.size();
+ }
int _httpErrorCode;
QByteArray _body;