Lines Matching refs:source
227 Partition source(source_file, source_size, source_hash); in TEST_F() local
237 expect(nullptr, "patch_partition_check(\"" + source.ToString() + "\")", kArgsParsingFailure); in TEST_F()
242 "patch_partition_check(\"" + source.ToString() + "\", \"" + target.ToString() + "\")"; in TEST_F()
247 cmd = "patch_partition_check(\"" + source.ToString() + "\", \"" + bad_target.ToString() + "\")"; in TEST_F()
625 static void GetEntriesForBsdiff(std::string_view source, std::string_view target, in GetEntriesForBsdiff() argument
629 ASSERT_EQ(0, bsdiff::bsdiff(reinterpret_cast<const uint8_t*>(source.data()), source.size(), in GetEntriesForBsdiff()
636 std::string src_hash = GetSha1(source); in GetEntriesForBsdiff()
638 size_t source_blocks = source.size() / 4096; in GetEntriesForBsdiff()
662 std::string source = in TEST_F() local
666 ASSERT_TRUE(android::base::WriteStringToFile(source, image_file_)); in TEST_F()
669 GetEntriesForBsdiff(std::string_view(source).substr(0, 4096 * 2), in TEST_F()
681 std::string source = in TEST_F() local
685 ASSERT_TRUE(android::base::WriteStringToFile(source, image_file_)); in TEST_F()
689 GetEntriesForBsdiff(std::string_view(source).substr(0, 4096 * 2), in TEST_F()
698 std::string source = in TEST_F() local
702 ASSERT_TRUE(android::base::WriteStringToFile(source, image_file_)); in TEST_F()
706 GetEntriesForBsdiff(std::string_view(source).substr(0, 4096 * 2), in TEST_F()