Lines Matching refs:read_data
499 bool verified, ZipEntry* entry, std::vector<uint8_t>* read_data) {
507 read_data->resize(entry->uncompressed_length);
509 read_data->resize(entry->compressed_length);
513 read_data->resize(entry->uncompressed_length);
515 uint8_t* read_data_ptr = read_data->data();
525 ASSERT_EQ(total_size, read_data->size());
535 std::vector<uint8_t> read_data;
536 ZipArchiveStreamTest(handle, entry_name, raw, true, &entry, &read_data);
538 ASSERT_EQ(contents.size(), read_data.size());
539 ASSERT_TRUE(memcmp(read_data.data(), contents.data(), read_data.size()) == 0);
549 std::vector<uint8_t> read_data;
550 ZipArchiveStreamTest(handle, entry_name, false, true, &entry, &read_data);
553 ASSERT_EQ(entry.uncompressed_length, read_data.size());
555 ASSERT_TRUE(memcmp(read_data.data(), cmp_data.data(), read_data.size()) == 0);
589 std::vector<uint8_t> read_data;
590 ZipArchiveStreamTest(handle, kATxtName, false, false, &entry, &read_data);
600 std::vector<uint8_t> read_data;
601 ZipArchiveStreamTest(handle, kBTxtName, false, false, &entry, &read_data);