diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2020-05-07 15:20:55 +0200 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2020-05-13 13:54:44 +0200 |
commit | 80e0d0e08eaccf032c4a42ce7c5d3ffb91837141 (patch) | |
tree | 8b9acabac005e0abeab1f519cb94c477ccc74e24 /tests/auto/network/access/http2/http2srv.h | |
parent | b35551a75e37d4ae1ddb024a82c67cdba714879a (diff) |
QNetworkReply/http2: Add a contentEncoding test
Will be useful when DecompressHelper gets taken into use for both.
Task-number: QTBUG-83269
Change-Id: Iaf253219bed193025c2b82d6609f4dcc4de33df8
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'tests/auto/network/access/http2/http2srv.h')
-rw-r--r-- | tests/auto/network/access/http2/http2srv.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/network/access/http2/http2srv.h b/tests/auto/network/access/http2/http2srv.h index 3105684d59..baf0155988 100644 --- a/tests/auto/network/access/http2/http2srv.h +++ b/tests/auto/network/access/http2/http2srv.h @@ -86,6 +86,8 @@ public: // To be called before server started: void enablePushPromise(bool enabled, const QByteArray &path = QByteArray()); void setResponseBody(const QByteArray &body); + // No content encoding is actually performed, call setResponseBody with already encoded data + void setContentEncoding(const QByteArray &contentEncoding); void emulateGOAWAY(int timeout); void redirectOpenStream(quint16 targetPort); @@ -211,6 +213,8 @@ private: bool redirectSent = false; quint16 targetPort = 0; QAtomicInt interrupted; + + QByteArray contentEncoding; protected slots: void ignoreErrorSlot(); }; |