Lines Matching refs:deflates
88 const vector<BitExtent>& deflates) { in FindDeflatesInZlibBlocks() argument
99 ASSERT_EQ(deflates, deflates_out); in FindDeflatesInZlibBlocks()
103 const vector<BitExtent>& deflates, in CheckFindPuffLocation() argument
109 ASSERT_TRUE(FindPuffLocations(src, deflates, &puffs, &puff_size)); in CheckFindPuffLocation()
128 vector<BitExtent> deflates; in TEST() local
130 EXPECT_TRUE(LocateDeflatesInZlib(zlib_data, &deflates)); in TEST()
131 EXPECT_EQ(deflates, expected_deflates); in TEST()
146 vector<BitExtent> deflates; in TEST() local
148 EXPECT_FALSE(LocateDeflatesInZlib(zlib_data, &deflates)); in TEST()
150 EXPECT_FALSE(LocateDeflatesInZlib(zlib_data, &deflates)); in TEST()
154 EXPECT_FALSE(LocateDeflatesInZlib(zlib_data, &deflates)); in TEST()
159 vector<BitExtent> deflates; in TEST() local
161 EXPECT_TRUE(LocateDeflatesInZipArchive(zip_entries, &deflates)); in TEST()
162 EXPECT_EQ(deflates, expected_deflates); in TEST()
168 vector<BitExtent> deflates; in TEST() local
170 EXPECT_TRUE(LocateDeflatesInZipArchive(zip_entries, &deflates)); in TEST()
171 EXPECT_EQ(deflates, expected_deflates); in TEST()
192 vector<BitExtent> deflates; in TEST() local
194 EXPECT_TRUE(LocateDeflatesInGzip(gzip_data, &deflates)); in TEST()
195 EXPECT_EQ(deflates, expected_deflates); in TEST()
202 vector<BitExtent> deflates; in TEST() local
203 EXPECT_FALSE(LocateDeflatesInGzip(gzip_data, &deflates)); in TEST()
210 vector<BitExtent> deflates; in TEST() local
212 EXPECT_TRUE(LocateDeflatesInGzip(gzip_data, &deflates)); in TEST()
213 EXPECT_EQ(deflates, expected_deflates); in TEST()
219 vector<BitExtent> deflates; in TEST() local
221 EXPECT_TRUE(LocateDeflatesInGzip(gzip_data, &deflates)); in TEST()
222 EXPECT_EQ(deflates, expected_deflates); in TEST()
246 vector<BitExtent> deflates(kProblematicCacheDeflateExtents), empty; in TEST() local
248 RemoveDeflatesWithBadDistanceCaches(kProblematicCache, &deflates)); in TEST()
249 EXPECT_EQ(deflates, empty); in TEST()
253 deflates = kSubblockDeflateExtentsSample1; in TEST()
254 EXPECT_TRUE(RemoveDeflatesWithBadDistanceCaches(kDeflatesSample1, &deflates)); in TEST()
255 EXPECT_EQ(deflates, kSubblockDeflateExtentsSample1); in TEST()
263 deflates = kSubblockDeflateExtentsSample1; in TEST()
266 deflates.emplace_back(deflate.offset + offset, deflate.length); in TEST()
270 deflates.emplace_back(deflate.offset + offset, deflate.length); in TEST()
273 auto expected_deflates(deflates); in TEST()
277 EXPECT_TRUE(RemoveDeflatesWithBadDistanceCaches(data, &deflates)); in TEST()
278 EXPECT_EQ(deflates, expected_deflates); in TEST()