Searched refs:temp_file (Results 1 – 4 of 4) sorted by relevance
/bootable/recovery/tests/unit/ |
D | sysutil_test.cpp | 38 TemporaryFile temp_file; in TEST() local 39 ASSERT_TRUE(android::base::WriteStringToFile(android::base::Join(content, '\n'), temp_file.path)); in TEST() 41 auto block_map_data = BlockMapData::ParseBlockMapFile(temp_file.path); in TEST() 58 TemporaryFile temp_file; in TEST() local 59 ASSERT_TRUE(android::base::WriteStringToFile(android::base::Join(content, '\n'), temp_file.path)); in TEST() 61 auto block_map_data1 = BlockMapData::ParseBlockMapFile(temp_file.path); in TEST() 73 TemporaryFile temp_file; in TEST() local 74 ASSERT_TRUE(android::base::WriteStringToFile(android::base::Join(content, '\n'), temp_file.path)); in TEST() 76 auto block_map_data = BlockMapData::ParseBlockMapFile(temp_file.path); in TEST() 82 ASSERT_TRUE(android::base::WriteStringToFile(android::base::Join(content, '\n'), temp_file.path)); in TEST() [all …]
|
/bootable/recovery/tests/component/ |
D | install_test.cpp | 53 TemporaryFile temp_file; in TEST() local 55 BuildZipArchive({ { "dummy_entry", "" } }, temp_file.release(), kCompressStored); in TEST() 59 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST() 65 TemporaryFile temp_file; in TEST() local 66 BuildZipArchive({ { "compatibility.zip", "" } }, temp_file.release(), kCompressStored); in TEST() 70 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST() 76 TemporaryFile temp_file; in TEST() local 78 BuildZipArchive({ { "META-INF/com/android/metadata", content } }, temp_file.release(), in TEST() 82 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST() 100 TemporaryFile temp_file; in TEST() local [all …]
|
D | sideload_test.cpp | 67 TemporaryFile temp_file; in TEST() local 68 ASSERT_TRUE(android::base::WriteStringToFile(content, temp_file.path)); in TEST() 70 auto provider = std::make_unique<FuseFileDataProvider>(temp_file.path, 4096); in TEST()
|
D | updater_test.cpp | 369 TemporaryFile temp_file; in TEST_F() local 370 std::string script("write_value(\"foo\", \""s + temp_file.path + "\");"); in TEST_F() 373 script = "read_file(\""s + temp_file.path + "\") == \"foo\""; in TEST_F() 376 script = "read_file(\""s + temp_file.path + "\") == \"bar\""; in TEST_F() 474 TemporaryFile temp_file; in TEST_F() local 476 std::string script("write_value(\"" + value + "\", \"" + std::string(temp_file.path) + "\")"); in TEST_F() 481 ASSERT_TRUE(android::base::ReadFileToString(temp_file.path, &content)); in TEST_F() 485 script = "write_value(\"\", \"" + std::string(temp_file.path) + "\")"; in TEST_F() 489 ASSERT_TRUE(android::base::ReadFileToString(temp_file.path, &content)); in TEST_F() 505 std::string temp_file(tf.path); in TEST_F() local [all …]
|