Lines Matching defs:data
19 // The data to be compressed by gzip. This is the hex representation of "hello
36 std::string data(reinterpret_cast<const char*>(kData), std::size(kData));
38 EXPECT_TRUE(GzipCompress(data, &compressed_data));
70 // Generate a data string of |kSize| for testing.
71 std::string data;
72 data.resize(kSize);
74 data[i] = static_cast<char>(i & 0xFF);
77 EXPECT_TRUE(GzipCompress(data, &compressed_data));
82 EXPECT_EQ(data, uncompressed_data);
92 std::string data(original_data);
93 EXPECT_TRUE(GzipCompress(data, &data));
94 EXPECT_EQ(golden_compressed_data, data);
95 EXPECT_TRUE(GzipUncompress(data, &data));
96 EXPECT_EQ(original_data, data);