Searched refs:temp_file (Results 1 – 5 of 5) sorted by relevance
/bootable/recovery/tests/component/ |
D | update_verifier_test.cpp | 49 TemporaryFile temp_file; in TEST_F() local 51 ASSERT_TRUE(android::base::WriteStringToFile(content, temp_file.path)); in TEST_F() 52 ASSERT_TRUE(verify_image(temp_file.path)); in TEST_F() 55 ASSERT_TRUE(android::base::WriteStringToFile("\n" + content + "\n\n", temp_file.path)); in TEST_F() 56 ASSERT_TRUE(verify_image(temp_file.path)); in TEST_F() 61 TemporaryFile temp_file; in TEST_F() local 62 ASSERT_FALSE(verify_image(temp_file.path)); in TEST_F() 64 ASSERT_TRUE(android::base::WriteStringToFile("line1", temp_file.path)); in TEST_F() 65 ASSERT_FALSE(verify_image(temp_file.path)); in TEST_F() 67 ASSERT_TRUE(android::base::WriteStringToFile("line1\nline2\nline3", temp_file.path)); in TEST_F() [all …]
|
D | install_test.cpp | 39 TemporaryFile temp_file; in TEST() local 40 FILE* zip_file = fdopen(temp_file.release(), "w"); in TEST() 50 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST() 56 TemporaryFile temp_file; in TEST() local 57 FILE* zip_file = fdopen(temp_file.release(), "w"); in TEST() 66 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST() 72 TemporaryFile temp_file; in TEST() local 73 FILE* zip_file = fdopen(temp_file.release(), "w"); in TEST() 83 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST() 106 TemporaryFile temp_file; in TEST() local [all …]
|
D | updater_test.cpp | 321 TemporaryFile temp_file; in TEST_F() local 323 std::string script("write_value(\"" + value + "\", \"" + std::string(temp_file.path) + "\")"); in TEST_F() 328 ASSERT_TRUE(android::base::ReadFileToString(temp_file.path, &content)); in TEST_F() 332 script = "write_value(\"\", \"" + std::string(temp_file.path) + "\")"; in TEST_F() 336 ASSERT_TRUE(android::base::ReadFileToString(temp_file.path, &content)); in TEST_F() 352 std::string temp_file(tf.path); in TEST_F() local 356 ASSERT_TRUE(write_bootloader_message_to(boot, temp_file, &err)); in TEST_F() 359 std::string script("get_stage(\"" + temp_file + "\")"); in TEST_F() 375 std::string temp_file(tf.path); in TEST_F() local 380 ASSERT_TRUE(write_bootloader_message_to(boot, temp_file, &err)); in TEST_F() [all …]
|
D | applypatch_test.cpp | 170 TemporaryFile temp_file; in TEST_F() local 171 mangle_file(temp_file.path); in TEST_F() 173 ASSERT_EQ(0, applypatch_check(temp_file.path, sha1s_single)); in TEST_F() 178 TemporaryFile temp_file; in TEST_F() local 179 mangle_file(temp_file.path); in TEST_F() 181 ASSERT_EQ(0, applypatch_check(temp_file.path, sha1s_multiple)); in TEST_F() 186 TemporaryFile temp_file; in TEST_F() local 187 mangle_file(temp_file.path); in TEST_F() 189 ASSERT_NE(0, applypatch_check(temp_file.path, sha1s_failure)); in TEST_F()
|
/bootable/recovery/tests/unit/ |
D | sysutil_test.cpp | 93 TemporaryFile temp_file; in TEST() local 94 std::string filename = std::string("@") + temp_file.path; in TEST() 97 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\n", temp_file.path)); in TEST() 100 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\n4096 4096\n0\n", temp_file.path)); in TEST() 104 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\n4096 4096\n1\n", temp_file.path)); in TEST() 107 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\n4096 4096\n2\n0 1\n", temp_file.path)); in TEST() 111 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\nabc 4096\n1\n0 1\n", temp_file.path)); in TEST() 114 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\n4096 4096\n\n0 1\n", temp_file.path)); in TEST() 118 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\n0 4096\n1\n0 1\n", temp_file.path)); in TEST() 121 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\n4096 0\n1\n0 1\n", temp_file.path)); in TEST() [all …]
|