From 80e0d0e08eaccf032c4a42ce7c5d3ffb91837141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Thu, 7 May 2020 15:20:55 +0200 Subject: 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 --- tests/auto/network/access/http2/http2srv.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/auto/network/access/http2/http2srv.h') 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(); }; -- cgit v1.2.3