summaryrefslogtreecommitdiffstats
path: root/tests/auto/shared/httpserver.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-01-16 17:30:56 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-01-21 10:06:01 +0000
commit0deb1ffda77f0410b3d13419856c757cdd422d2b (patch)
tree9206e32b8b23f7b8df827ec051182dbfc96d80af /tests/auto/shared/httpserver.h
parent3f7ea91e23d82e676aeaf157736e25cf54e5ec6b (diff)
Remove download items internally when API objects are deleted
We were never removing internal download item. [ChangeLog][Behavioral Changes] Deleting a download item will now also cancel it if it is still in progress. Change-Id: I2fab497d7acf7ca6ca17f4a61e106b1c18bfb333 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
Diffstat (limited to 'tests/auto/shared/httpserver.h')
-rw-r--r--tests/auto/shared/httpserver.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/shared/httpserver.h b/tests/auto/shared/httpserver.h
index ddbab433c..b4649244e 100644
--- a/tests/auto/shared/httpserver.h
+++ b/tests/auto/shared/httpserver.h
@@ -68,6 +68,8 @@ public:
// Stops listening and performs final error checks.
Q_REQUIRED_RESULT bool stop();
+ void setExpectError(bool b);
+
// Full URL for given relative path
QUrl url(const QString &path = QStringLiteral("/")) const;
@@ -82,6 +84,7 @@ private:
QTcpServer m_tcpServer;
QUrl m_url;
bool m_error = false;
+ bool m_expectingError = false;
};
#endif // !HTTPSERVER_H