comparison UnitTestsSources/UnitTestsMain.cpp @ 1516:f09f5d3225a7

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 11 Aug 2015 08:53:47 +0200
parents fe07f82d83d3
children f9b0169eb6bb
comparison
equal deleted inserted replaced
1515:c94353fbd4e9 1516:f09f5d3225a7
124 GzipCompressor c; 124 GzipCompressor c;
125 ASSERT_FALSE(c.HasPrefixWithUncompressedSize()); 125 ASSERT_FALSE(c.HasPrefixWithUncompressedSize());
126 c.SetPrefixWithUncompressedSize(false); 126 c.SetPrefixWithUncompressedSize(false);
127 IBufferCompressor::Compress(compressed, c, s); 127 IBufferCompressor::Compress(compressed, c, s);
128 128
129 Toolbox::WriteFile(compressed, "/tmp/toto.gz");
130
131 std::string uncompressed; 129 std::string uncompressed;
132 IBufferCompressor::Uncompress(uncompressed, c, compressed); 130 IBufferCompressor::Uncompress(uncompressed, c, compressed);
133 ASSERT_EQ(0, uncompressed.size()); 131 ASSERT_EQ(0, uncompressed.size());
134 } 132 }
135 133