From d40f88e8d23f9d5fdb08ff9a394d9697a0d86fc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Wed, 6 May 2020 18:30:43 +0200 Subject: QDecompressHelper: Introduce zstd support Also take this opportunity to reshuffle the content-encodings in the intended ordering since the ordering is used to signify priority. Task-number: QTBUG-83269 Change-Id: I022eecf1ba03b54dbd9c98a9d63d05fb05fd2124 Reviewed-by: Thiago Macieira --- tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/auto/network/access/qnetworkreply') diff --git a/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp b/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp index 6bec0c8ee1..e4dafb58d0 100644 --- a/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp +++ b/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp @@ -9270,6 +9270,14 @@ void tst_QNetworkReply::contentEncoding_data() << QByteArray("br") << QByteArray::fromBase64("DwWAaGVsbG8gd29ybGQD") << QByteArray("hello world"); #endif + +#if defined(QT_BUILD_INTERNAL) && QT_CONFIG(zstd) + QTest::newRow("zstandard-hello-world") + << QByteArray("zstd") << QByteArray::fromBase64("KLUv/QRYWQAAaGVsbG8gd29ybGRoaR6y") + << QByteArray("hello world"); +#else + qDebug("Note: ZStandard testdata is only available for developer builds."); +#endif } void tst_QNetworkReply::contentEncoding() -- cgit v1.2.3