Lines Matching refs:data
41 const char* data = patch.data(); in verify_patch_header() local
44 ASSERT_EQ("IMGDIFF2", std::string(data, 8)); in verify_patch_header()
46 const int num_chunks = get_unaligned<int32_t>(data + 8); in verify_patch_header()
56 int type = get_unaligned<int32_t>(data + pos); in verify_patch_header()
64 ssize_t data_len = get_unaligned<int32_t>(data + pos); in verify_patch_header()
85 ASSERT_EQ(0, ApplyImagePatch(reinterpret_cast<const unsigned char*>(src.data()), src.size(), in GenerateTarget()
86 reinterpret_cast<const unsigned char*>(patch.data()), patch.size(), in GenerateTarget()
87 [&](const unsigned char* data, size_t len) { in GenerateTarget() argument
88 patched->append(reinterpret_cast<const char*>(data), len); in GenerateTarget()
130 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
155 ASSERT_EQ(0, src_writer.WriteBytes(src_content.data(), src_content.size())); in TEST()
165 ASSERT_EQ(0, tgt_writer.WriteBytes(tgt_content.data(), tgt_content.size())); in TEST()
175 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
209 ASSERT_EQ(0, src_writer.WriteBytes(src_content.data(), src_content.size())); in TEST()
219 ASSERT_EQ(0, tgt_writer.WriteBytes(tgt_content.data(), tgt_content.size())); in TEST()
229 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
257 ASSERT_EQ(0, src_writer.WriteBytes(src_content.data(), src_content.size())); in TEST()
268 ASSERT_EQ(0, tgt_writer.WriteBytes(tgt_content.data(), tgt_content.size())); in TEST()
277 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
302 ASSERT_EQ(0, src_writer.WriteBytes(src_content.data(), src_content.size())); in TEST()
312 ASSERT_EQ(0, tgt_writer.WriteBytes(tgt_content.data(), tgt_content.size())); in TEST()
317 ASSERT_EQ(zeros.size(), fwrite(zeros.data(), sizeof(uint8_t), zeros.size(), tgt_file_ptr)); in TEST()
325 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
368 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
411 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
446 ASSERT_EQ(1, imgdiff(args.size(), args.data())); in TEST()
475 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
512 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
548 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
584 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
623 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
666 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
675 ASSERT_EQ(-1, ApplyImagePatch(reinterpret_cast<const unsigned char*>(src.data()), src.size(), in TEST()
676 reinterpret_cast<const unsigned char*>(patch.data()), patch.size(), in TEST()
686 ASSERT_EQ(0, writer->WriteBytes(content.data(), content.size())); in construct_store_entry()
692 ZipWriter* writer, const std::string& data) { in construct_deflate_entry() argument
696 ASSERT_EQ(0, writer->WriteBytes(data.data() + std::get<1>(t) * 4096, std::get<2>(t) * 4096)); in construct_deflate_entry()
837 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
963 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
1005 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
1023 ASSERT_EQ(0, tgt_writer.WriteBytes(small_chunk.data(), small_chunk.size())); in TEST()
1050 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
1077 ASSERT_EQ(0, tgt_writer.WriteBytes(small_chunk.data(), small_chunk.size())); in TEST()
1104 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()