Home
last modified time | relevance | path

Searched refs:temp_file (Results 1 – 7 of 7) sorted by relevance

/bootable/recovery/tests/unit/
Dsysutil_test.cpp38 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 …]
Dfuse_provider_test.cpp40 TemporaryFile temp_file; in TEST() local
41 android::base::WriteStringToFile(android::base::Join(lines, '\n'), temp_file.path); in TEST()
42 auto block_map_data = FuseBlockDataProvider::CreateFromBlockMap(temp_file.path, 4096); in TEST()
66 TemporaryFile temp_file; in TEST() local
67 android::base::WriteStringToFile(android::base::Join(lines, '\n'), temp_file.path); in TEST()
68 auto block_map_data = FuseBlockDataProvider::CreateFromBlockMap(temp_file.path, 4096); in TEST()
85 TemporaryFile temp_file; in TEST() local
86 ASSERT_TRUE(android::base::WriteStringToFile(content, temp_file.path)); in TEST()
89 temp_file.path, "36384 4096", "2", "0 5", "6 10", in TEST()
Dinstall_test.cpp54 TemporaryFile temp_file; in TEST() local
56 BuildZipArchive({ { "META-INF/com/android/metadata", content } }, temp_file.release(), in TEST()
60 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST()
78 TemporaryFile temp_file; in TEST() local
79 BuildZipArchive({ { "dummy_entry", "" } }, temp_file.release(), kCompressStored); in TEST()
82 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST()
95 TemporaryFile temp_file; in TEST() local
97 temp_file.release(), kCompressDeflated); in TEST()
99 ASSERT_TRUE(android::base::ReadFileToString(temp_file.path, &wipe_package)); in TEST()
115 TemporaryFile temp_file; in TEST() local
[all …]
Dfuse_sideload_test.cpp71 TemporaryFile temp_file; in TEST() local
72 ASSERT_TRUE(android::base::WriteStringToFile(content, temp_file.path)); in TEST()
74 auto provider = std::make_unique<FuseFileDataProvider>(temp_file.path, 4096); in TEST()
Dupdater_test.cpp399 TemporaryFile temp_file; in TEST_F() local
400 std::string script("write_value(\"foo\", \""s + temp_file.path + "\");"); in TEST_F()
403 script = "read_file(\""s + temp_file.path + "\") == \"foo\""; in TEST_F()
406 script = "read_file(\""s + temp_file.path + "\") == \"bar\""; in TEST_F()
504 TemporaryFile temp_file; in TEST_F() local
506 std::string script("write_value(\"" + value + "\", \"" + std::string(temp_file.path) + "\")"); in TEST_F()
511 ASSERT_TRUE(android::base::ReadFileToString(temp_file.path, &content)); in TEST_F()
515 script = "write_value(\"\", \"" + std::string(temp_file.path) + "\")"; in TEST_F()
519 ASSERT_TRUE(android::base::ReadFileToString(temp_file.path, &content)); in TEST_F()
535 std::string temp_file(tf.path); in TEST_F() local
[all …]
/bootable/recovery/updater/
Dtarget_files.cpp152 TemporaryFile* temp_file) const { in ExtractEntryToTempFile()
155 return std::filesystem::copy_file(entry_path, temp_file->path, in ExtractEntryToTempFile()
166 if (auto status = ExtractEntryToFile(handle_, &entry, temp_file->fd); status != 0) { in ExtractEntryToTempFile()
/bootable/recovery/updater/include/updater/
Dtarget_files.h63 bool ExtractEntryToTempFile(const std::string_view name, TemporaryFile* temp_file) const;