Home | History | Annotate | Download | only in Support

Lines Matching refs:Zlib

27 void TestZlibCompression(StringRef Input, zlib::CompressionLevel Level) {
30 EXPECT_EQ(zlib::StatusOK, zlib::compress(Input, Compressed, Level));
32 EXPECT_EQ(zlib::StatusOK, zlib::uncompress(Compressed->getBuffer(),
39 EXPECT_EQ(zlib::StatusBufferTooShort,
40 zlib::uncompress(Compressed->getBuffer(), Uncompressed,
45 TEST(CompressionTest, Zlib) {
46 TestZlibCompression("", zlib::DefaultCompression);
48 TestZlibCompression("hello, world!", zlib::NoCompression);
49 TestZlibCompression("hello, world!", zlib::BestSizeCompression);
50 TestZlibCompression("hello, world!", zlib::BestSpeedCompression);
51 TestZlibCompression("hello, world!", zlib::DefaultCompression);
60 TestZlibCompression(BinaryDataStr, zlib::NoCompression);
61 TestZlibCompression(BinaryDataStr, zlib::BestSizeCompression);
62 TestZlibCompression(BinaryDataStr, zlib::BestSpeedCompression);
63 TestZlibCompression(BinaryDataStr, zlib::DefaultCompression);