diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2020-05-06 18:30:43 +0200 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2020-08-14 13:17:11 +0200 |
commit | d40f88e8d23f9d5fdb08ff9a394d9697a0d86fc8 (patch) | |
tree | 73384e08f6d362bfc7f1da9f5ce2ff0b28641c4e /tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp | |
parent | 94b7a4f9b8d0746dae54b0a1870f119e8b17830d (diff) |
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 <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp')
-rw-r--r-- | tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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() |