Lines Matching refs:image_file_
181 image_file_ = image_temp_file_.path; in SetUp()
197 std::string image_file_; member in UpdaterTest
392 ASSERT_TRUE(android::base::WriteStringToFile(data, image_file_)); in TEST_F()
412 RunBlockImageUpdate(false, entries, image_file_, "t"); in TEST_F()
415 ASSERT_TRUE(android::base::ReadFileToString(image_file_, &updated)); in TEST_F()
441 ASSERT_TRUE(android::base::WriteStringToFile(data, image_file_)); in TEST_F()
461 RunBlockImageUpdate(false, entries, image_file_, "", kHashTreeComputationFailure); in TEST_F()
619 RunBlockImageUpdate(false, entries, image_file_, "", kArgsParsingFailure); in TEST_F()
666 ASSERT_TRUE(android::base::WriteStringToFile(source, image_file_)); in TEST_F()
671 RunBlockImageUpdate(false, entries, image_file_, "t"); in TEST_F()
675 ASSERT_TRUE(android::base::ReadFileToString(image_file_, &updated)); in TEST_F()
685 ASSERT_TRUE(android::base::WriteStringToFile(source, image_file_)); in TEST_F()
693 RunBlockImageUpdate(false, entries, image_file_, "", kPatchApplicationFailure); in TEST_F()
702 ASSERT_TRUE(android::base::WriteStringToFile(source, image_file_)); in TEST_F()
710 RunBlockImageUpdate(false, entries, image_file_, "", kPatchApplicationFailure); in TEST_F()
736 ASSERT_TRUE(android::base::WriteStringToFile(src_content, image_file_)); in TEST_F()
738 RunBlockImageUpdate(false, entries, image_file_, ""); in TEST_F()
741 std::string name_digest = GetSha1(image_file_); in TEST_F()
767 RunBlockImageUpdate(false, entries, image_file_, "t"); in TEST_F()
788 RunBlockImageUpdate(false, entries, image_file_, ""); in TEST_F()
791 RunBlockImageUpdate(false, entries, image_file_, ""); in TEST_F()
795 RunBlockImageUpdate(false, entries, image_file_, "t"); in TEST_F()
834 RunBlockImageUpdate(false, entries, image_file_, "t"); in TEST_F()
837 ASSERT_TRUE(android::base::ReadFileToString(image_file_, &updated_content)); in TEST_F()
877 ASSERT_TRUE(android::base::WriteStringToFile(block1 + block2 + block3, image_file_)); in TEST_F()
889 RunBlockImageUpdate(false, entries, image_file_, ""); in TEST_F()
897 ASSERT_TRUE(android::base::ReadFileToString(image_file_, &updated_contents)); in TEST_F()
903 ASSERT_TRUE(android::base::WriteStringToFile(block1 + block2 + block3, image_file_)); in TEST_F()
904 RunBlockImageUpdate(false, entries, image_file_, "t"); in TEST_F()
906 ASSERT_TRUE(android::base::ReadFileToString(image_file_, &updated_contents)); in TEST_F()
934 ASSERT_TRUE(android::base::WriteStringToFile(block1 + block1, image_file_)); in TEST_F()
940 RunBlockImageUpdate(false, entries, image_file_, ""); in TEST_F()
973 ASSERT_TRUE(android::base::WriteStringToFile(block1 + block1 + block3, image_file_)); in TEST_F()
982 RunBlockImageUpdate(true, entries, image_file_, "t"); in TEST_F()
991 ASSERT_TRUE(android::base::WriteStringToFile(block1 + block2 + block3, image_file_)); in TEST_F()
992 RunBlockImageUpdate(true, entries, image_file_, "t"); in TEST_F()
1011 image_file_ = image_temp_file_.path; in SetUp()
1028 std::string image_file_; member in ResumableUpdaterTest
1176 ASSERT_TRUE(android::base::WriteStringToFile(g_source_image, image_file_)); in TEST_P()
1187 RunBlockImageUpdate(false, g_entries, image_file_, ""); in TEST_P()
1205 RunBlockImageUpdate(true, g_entries, image_file_, "t"); in TEST_P()
1217 RunBlockImageUpdate(false, g_entries, image_file_, "t"); in TEST_P()
1223 ASSERT_TRUE(android::base::ReadFileToString(image_file_, &updated_image_actual)); in TEST_P()