Lines Matching refs:src
83 static void GenerateTarget(const std::string& src, const std::string& patch, std::string* patched) { in GenerateTarget() argument
85 ASSERT_EQ(0, ApplyImagePatch(reinterpret_cast<const unsigned char*>(src.data()), src.size(), in GenerateTarget()
93 static void verify_patched_image(const std::string& src, const std::string& patch, in verify_patched_image() argument
96 GenerateTarget(src, patch, &patched); in verify_patched_image()
118 const std::string src("abcdefg"); in TEST() local
120 ASSERT_TRUE(android::base::WriteStringToFile(src, src_file.path)); in TEST()
145 verify_patched_image(src, patch, tgt); in TEST()
180 std::string src; in TEST() local
181 ASSERT_TRUE(android::base::ReadFileToString(src_file.path, &src)); in TEST()
194 verify_patched_image(src, patch, tgt); in TEST()
234 std::string src; in TEST() local
235 ASSERT_TRUE(android::base::ReadFileToString(src_file.path, &src)); in TEST()
248 verify_patched_image(src, patch, tgt); in TEST()
282 std::string src; in TEST() local
283 ASSERT_TRUE(android::base::ReadFileToString(src_file.path, &src)); in TEST()
287 verify_patched_image(src, patch, tgt); in TEST()
330 std::string src; in TEST() local
331 ASSERT_TRUE(android::base::ReadFileToString(src_file.path, &src)); in TEST()
344 verify_patched_image(src, patch, tgt); in TEST()
352 const std::string src = "abcdefg" + gzipped_source; in TEST() local
354 ASSERT_TRUE(android::base::WriteStringToFile(src, src_file.path)); in TEST()
383 verify_patched_image(src, patch, tgt); in TEST()
393 const std::string src(src_data.cbegin(), src_data.cend()); in TEST() local
395 ASSERT_TRUE(android::base::WriteStringToFile(src, src_file.path)); in TEST()
416 verify_patched_image(src, patch, tgt); in TEST()
428 const std::string src(src_data.cbegin(), src_data.cend()); in TEST() local
430 ASSERT_TRUE(android::base::WriteStringToFile(src, src_file.path)); in TEST()
455 const std::string src = "abcdefg" + gzipped_source; in TEST() local
457 ASSERT_TRUE(android::base::WriteStringToFile(src, src_file.path)); in TEST()
490 verify_patched_image(src, patch, tgt); in TEST()
498 const std::string src(src_data.cbegin(), src_data.cend()); in TEST() local
500 ASSERT_TRUE(android::base::WriteStringToFile(src, src_file.path)); in TEST()
527 verify_patched_image(src, patch, tgt); in TEST()
534 const std::string src(src_data.cbegin(), src_data.cend()); in TEST() local
536 ASSERT_TRUE(android::base::WriteStringToFile(src, src_file.path)); in TEST()
563 verify_patched_image(src, patch, tgt); in TEST()
570 const std::string src(src_data.cbegin(), src_data.cend()); in TEST() local
572 ASSERT_TRUE(android::base::WriteStringToFile(src, src_file.path)); in TEST()
599 verify_patched_image(src, patch, tgt); in TEST()
607 const std::string src(src_data.cbegin(), src_data.cend()); in TEST() local
609 ASSERT_TRUE(android::base::WriteStringToFile(src, src_file.path)); in TEST()
638 verify_patched_image(src, patch, tgt); in TEST()
648 const std::string src(src_data.cbegin(), src_data.cend()); in TEST() local
650 ASSERT_TRUE(android::base::WriteStringToFile(src, src_file.path)); in TEST()
671 verify_patched_image(src, patch, tgt); in TEST()
675 ASSERT_EQ(-1, ApplyImagePatch(reinterpret_cast<const unsigned char*>(src.data()), src.size(), in TEST()