Lines Matching refs:zip

59   ZipArchiveHandle zip;  in TEST()  local
60 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST()
62 ASSERT_TRUE(ReadMetadataFromPackage(zip, &metadata)); in TEST()
64 CloseArchive(zip); in TEST()
70 ASSERT_EQ(0, OpenArchive(temp_file2.path, &zip)); in TEST()
72 ASSERT_TRUE(ReadMetadataFromPackage(zip, &metadata)); in TEST()
74 CloseArchive(zip); in TEST()
81 ZipArchiveHandle zip; in TEST() local
82 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST()
84 ASSERT_FALSE(ReadMetadataFromPackage(zip, &metadata)); in TEST()
85 CloseArchive(zip); in TEST()
119 ZipArchiveHandle zip; in TEST() local
120 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST()
127 ASSERT_TRUE(SetUpNonAbUpdateCommands(package, zip, 0, status_fd, &cmd)); in TEST()
139 ASSERT_TRUE(SetUpNonAbUpdateCommands(package, zip, 2, status_fd, &cmd)); in TEST()
150 CloseArchive(zip); in TEST()
159 ZipArchiveHandle zip; in TEST() local
160 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST()
166 ASSERT_FALSE(SetUpNonAbUpdateCommands(package, zip, 0, status_fd, &cmd)); in TEST()
167 CloseArchive(zip); in TEST()
191 ZipArchiveHandle zip; in VerifyAbUpdateCommands() local
192 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in VerifyAbUpdateCommands()
194 ASSERT_EQ(0, FindEntry(zip, "payload.bin", &payload_entry)); in VerifyAbUpdateCommands()
197 ASSERT_TRUE(ReadMetadataFromPackage(zip, &metadata)); in VerifyAbUpdateCommands()
204 ASSERT_TRUE(SetUpAbUpdateCommands(package, zip, status_fd, &cmd)); in VerifyAbUpdateCommands()
214 CloseArchive(zip); in VerifyAbUpdateCommands()
242 ZipArchiveHandle zip; in TEST() local
243 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST()
247 ASSERT_FALSE(SetUpAbUpdateCommands(package, zip, status_fd, &cmd)); in TEST()
248 CloseArchive(zip); in TEST()
289 ZipArchiveHandle zip; in TestCheckPackageMetadata() local
290 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TestCheckPackageMetadata()
293 ASSERT_TRUE(ReadMetadataFromPackage(zip, &metadata)); in TestCheckPackageMetadata()
295 CloseArchive(zip); in TestCheckPackageMetadata()