Lines Matching refs:apexFile
39 Result<ApexFile> apexFile = ApexFile::Open(filePath); in TEST() local
40 ASSERT_TRUE(apexFile.ok()); in TEST()
61 EXPECT_EQ(zip_image_offset, apexFile->GetImageOffset()); in TEST()
62 EXPECT_EQ(zip_image_size, apexFile->GetImageSize()); in TEST()
67 Result<ApexFile> apexFile = ApexFile::Open(filePath); in TEST() local
68 ASSERT_FALSE(apexFile.ok()); in TEST()
70 apexFile.error().message().find("Failed to open package")) in TEST()
71 << apexFile.error(); in TEST()
76 Result<ApexFile> apexFile = ApexFile::Open(filePath); in TEST() local
77 ASSERT_RESULT_OK(apexFile); in TEST()
78 EXPECT_EQ("com.android.apex.test_package", apexFile->GetManifest().name()); in TEST()
79 EXPECT_EQ(1u, apexFile->GetManifest().version()); in TEST()
85 Result<ApexFile> apexFile = ApexFile::Open(filePath); in TEST() local
86 ASSERT_RESULT_OK(apexFile); in TEST()
88 auto verity_or = apexFile->VerifyApexVerity(); in TEST()
104 Result<ApexFile> apexFile = ApexFile::Open(filePath); in TEST() local
105 ASSERT_RESULT_OK(apexFile); in TEST()
107 auto verity_or = apexFile->VerifyApexVerity(); in TEST()
113 Result<ApexFile> apexFile = ApexFile::Open(filePath); in TEST() local
114 ASSERT_RESULT_OK(apexFile); in TEST()
122 EXPECT_EQ(keyContent, apexFile->GetBundledPublicKey()); in TEST()