Home
last modified time | relevance | path

Searched refs:target_file (Results 1 – 3 of 3) sorted by relevance

/bootable/recovery/tests/unit/
Dapplypatch_test.cpp55 target_file = from_testdata_base("recovery.img"); in SetUp()
57 ASSERT_TRUE(LoadFileContents(target_file, &recovery_fc)); in SetUp()
80 std::string target_file; member in ApplyPatchTest
119 PatchPartitionCheck(target_partition, Partition(target_file, source_size, source_sha1))); in TEST_F()
123 PatchPartitionCheck(target_partition, Partition(target_file, source_size, source_sha1))); in TEST_F()
128 PatchPartitionCheck(target_partition, Partition(target_file, source_size, source_sha1))); in TEST_F()
130 Paths::Get().set_cache_temp_source(target_file); in TEST_F()
132 PatchPartitionCheck(target_partition, Partition(target_file, source_size, source_sha1))); in TEST_F()
/bootable/recovery/applypatch/
Dapplypatch.cpp257 FileContents target_file; in PatchPartitionCheck() local
259 return (ReadPartitionToBuffer(target, &target_file, false) || in PatchPartitionCheck()
273 FileContents target_file; in PatchPartition() local
274 if (ReadPartitionToBuffer(target, &target_file, false)) { in PatchPartition()
294 FileContents target_file; in FlashPartition() local
295 if (ReadPartitionToBuffer(partition, &target_file, false)) { in FlashPartition()
425 FileContents target_file; in CheckPartition() local
426 return ReadPartitionToBuffer(partition, &target_file, false); in CheckPartition()
/bootable/recovery/tests/component/
Dupdater_test.cpp229 std::string target_file = from_testdata_base("recovery.img"); in TEST_F() local
231 ASSERT_TRUE(android::base::ReadFileToString(target_file, &target_content)); in TEST_F()
234 Partition target(target_file, target_size, target_hash); in TEST_F()
246 Partition bad_target(target_file, target_size - 1, target_hash); in TEST_F()