diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-09-14 02:36:03 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-09-14 02:36:03 +0200 |
commit | dd8eacee1b28ca40f8dc770587d111656d92d5fb (patch) | |
tree | 152e671cbb9ad23ce8966a23e752423ace7d8b82 /tests | |
parent | e38cc1d480fdcf3ad08829688fe1a61961612e36 (diff) | |
download | MultiMC-dd8eacee1b28ca40f8dc770587d111656d92d5fb.tar MultiMC-dd8eacee1b28ca40f8dc770587d111656d92d5fb.tar.gz MultiMC-dd8eacee1b28ca40f8dc770587d111656d92d5fb.tar.lz MultiMC-dd8eacee1b28ca40f8dc770587d111656d92d5fb.tar.xz MultiMC-dd8eacee1b28ca40f8dc770587d111656d92d5fb.zip |
GH-1227 renam GZip functions to not collide with zlib macros
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tst_GZip.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/tst_GZip.cpp b/tests/tst_GZip.cpp index 23c749ef..67707a4b 100644 --- a/tests/tst_GZip.cpp +++ b/tests/tst_GZip.cpp @@ -42,8 +42,10 @@ slots: { QByteArray copy = random; copy.resize(cur); - QVERIFY(GZip::compress(copy, compressed)); - QVERIFY(GZip::decompress(compressed, decompressed)); + compressed.clear(); + decompressed.clear(); + QVERIFY(GZip::zip(copy, compressed)); + QVERIFY(GZip::unzip(compressed, decompressed)); QCOMPARE(decompressed, copy); fib(prev, cur); } while (cur < size); |