Lines Matching refs:data

42   const char* data = patch.data();  in verify_patch_header()  local
45 ASSERT_EQ("IMGDIFF2", std::string(data, 8)); in verify_patch_header()
47 const int num_chunks = get_unaligned<int32_t>(data + 8); in verify_patch_header()
57 int type = get_unaligned<int32_t>(data + pos); in verify_patch_header()
65 ssize_t data_len = get_unaligned<int32_t>(data + pos); in verify_patch_header()
86 ASSERT_EQ(0, ApplyImagePatch(reinterpret_cast<const unsigned char*>(src.data()), src.size(), in GenerateTarget()
87 reinterpret_cast<const unsigned char*>(patch.data()), patch.size(), in GenerateTarget()
88 [&](const unsigned char* data, size_t len) { in GenerateTarget() argument
89 patched->append(reinterpret_cast<const char*>(data), len); in GenerateTarget()
131 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
156 ASSERT_EQ(0, src_writer.WriteBytes(src_content.data(), src_content.size())); in TEST()
166 ASSERT_EQ(0, tgt_writer.WriteBytes(tgt_content.data(), tgt_content.size())); in TEST()
176 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
210 ASSERT_EQ(0, src_writer.WriteBytes(src_content.data(), src_content.size())); in TEST()
220 ASSERT_EQ(0, tgt_writer.WriteBytes(tgt_content.data(), tgt_content.size())); in TEST()
230 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
258 ASSERT_EQ(0, src_writer.WriteBytes(src_content.data(), src_content.size())); in TEST()
269 ASSERT_EQ(0, tgt_writer.WriteBytes(tgt_content.data(), tgt_content.size())); in TEST()
278 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
303 ASSERT_EQ(0, src_writer.WriteBytes(src_content.data(), src_content.size())); in TEST()
313 ASSERT_EQ(0, tgt_writer.WriteBytes(tgt_content.data(), tgt_content.size())); in TEST()
318 ASSERT_EQ(zeros.size(), fwrite(zeros.data(), sizeof(uint8_t), zeros.size(), tgt_file_ptr)); in TEST()
326 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
369 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
412 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
447 ASSERT_EQ(1, imgdiff(args.size(), args.data())); in TEST()
476 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
513 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
549 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
585 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
624 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
667 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
676 ASSERT_EQ(-1, ApplyImagePatch(reinterpret_cast<const unsigned char*>(src.data()), src.size(), in TEST()
677 reinterpret_cast<const unsigned char*>(patch.data()), patch.size(), in TEST()
687 ASSERT_EQ(0, writer->WriteBytes(content.data(), content.size())); in construct_store_entry()
693 ZipWriter* writer, const std::string& data) { in construct_deflate_entry() argument
697 ASSERT_EQ(0, writer->WriteBytes(data.data() + std::get<1>(t) * 4096, std::get<2>(t) * 4096)); in construct_deflate_entry()
838 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
964 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
1006 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
1024 ASSERT_EQ(0, tgt_writer.WriteBytes(small_chunk.data(), small_chunk.size())); in TEST()
1051 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()
1078 ASSERT_EQ(0, tgt_writer.WriteBytes(small_chunk.data(), small_chunk.size())); in TEST()
1105 ASSERT_EQ(0, imgdiff(args.size(), args.data())); in TEST()