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:
authorOlivier Goffart <ogoffart@woboq.com>2018-07-25 13:21:29 +0300
committerOlivier Goffart <olivier@woboq.com>2018-07-25 14:48:58 +0300
commit56166deb76f56dcc12502bbbadf8a5d10a12c0a2 (patch)
tree9b8be469b917081f241a16bd735895f44f182a2c /test/syncenginetestutils.h
parenta0675bd0ab126b72998bb595af7510e07a9ff49d (diff)
Added test that checks what happens when there is an error in the remote discovery
(Many of the expected error string are left empty because the current error message is not insterresting
Diffstat (limited to 'test/syncenginetestutils.h')
-rw-r--r--test/syncenginetestutils.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/syncenginetestutils.h b/test/syncenginetestutils.h
index 536521b70..59bccc12a 100644
--- a/test/syncenginetestutils.h
+++ b/test/syncenginetestutils.h
@@ -773,7 +773,14 @@ public:
open(QIODevice::ReadOnly);
}
- void abort() override {}
+ void abort() override {
+ // Follow more or less the implementation of QNetworkReplyImpl::abort
+ close();
+ setError(OperationCanceledError, tr("Operation canceled"));
+ emit error(OperationCanceledError);
+ setFinished(true);
+ emit finished();
+ }
qint64 readData(char *, qint64) override { return 0; }
};