Lines Matching refs:temp_file

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
101 BuildZipArchive({ { "dummy_entry", "" } }, temp_file.release(), kCompressStored); in TEST()
104 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST()
117 TemporaryFile temp_file; in TEST() local
119 temp_file.release(), kCompressDeflated); in TEST()
121 ASSERT_TRUE(android::base::ReadFileToString(temp_file.path, &wipe_package)); in TEST()
142 TemporaryFile temp_file; in TEST() local
146 BuildZipArchive({ { "compatibility.zip", compatibility_zip_content } }, temp_file.release(), in TEST()
150 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST()
175 TemporaryFile temp_file; in TEST() local
179 BuildZipArchive({ { "compatibility.zip", compatibility_zip_content } }, temp_file.release(), in TEST()
183 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST()
195 TemporaryFile temp_file; in TEST() local
197 BuildZipArchive({ { UPDATE_BINARY_NAME, "" } }, temp_file.release(), kCompressStored); in TEST()
200 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST()
234 TemporaryFile temp_file; in TEST() local
236 BuildZipArchive({ { "dummy_entry", "" } }, temp_file.release(), kCompressStored); in TEST()
240 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST()
251 TemporaryFile temp_file; in VerifyAbUpdateCommands() local
269 temp_file.release(), kCompressStored); in VerifyAbUpdateCommands()
272 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in VerifyAbUpdateCommands()
304 TemporaryFile temp_file; in TEST() local
321 temp_file.release(), kCompressStored); in TEST()
324 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST()
363 TemporaryFile temp_file; in test_check_package_metadata() local
368 temp_file.release(), kCompressStored); in test_check_package_metadata()
371 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in test_check_package_metadata()