Lines Matching refs:apex_manifest
25 auto apex_manifest = ParseManifest( in TEST() local
27 ASSERT_TRUE(apex_manifest.Ok()); in TEST()
28 EXPECT_EQ("com.android.example.apex", std::string(apex_manifest->name())); in TEST()
29 EXPECT_EQ(1u, apex_manifest->version()); in TEST()
33 auto apex_manifest = ParseManifest("{\"version\": 1}\n"); in TEST() local
34 ASSERT_FALSE(apex_manifest.Ok()); in TEST()
35 EXPECT_EQ(apex_manifest.ErrorMessage(), in TEST()
37 << apex_manifest.ErrorMessage(); in TEST()
41 auto apex_manifest = in TEST() local
43 ASSERT_FALSE(apex_manifest.Ok()); in TEST()
45 apex_manifest.ErrorMessage(), in TEST()
47 << apex_manifest.ErrorMessage(); in TEST()
51 auto apex_manifest = ParseManifest( in TEST() local
54 ASSERT_FALSE(apex_manifest.Ok()); in TEST()
55 EXPECT_EQ(apex_manifest.ErrorMessage(), in TEST()
58 << apex_manifest.ErrorMessage(); in TEST()
62 auto apex_manifest = ParseManifest( in TEST() local
64 ASSERT_TRUE(apex_manifest.Ok()); in TEST()
65 EXPECT_EQ("", std::string(apex_manifest->preinstallhook())); in TEST()
69 auto apex_manifest = ParseManifest( in TEST() local
72 ASSERT_TRUE(apex_manifest.Ok()); in TEST()
73 EXPECT_EQ("bin/preInstallHook", std::string(apex_manifest->preinstallhook())); in TEST()
77 auto apex_manifest = ParseManifest( in TEST() local
79 ASSERT_TRUE(apex_manifest.Ok()); in TEST()
80 EXPECT_EQ("", std::string(apex_manifest->postinstallhook())); in TEST()
84 auto apex_manifest = ParseManifest( in TEST() local
87 ASSERT_TRUE(apex_manifest.Ok()); in TEST()
89 std::string(apex_manifest->postinstallhook())); in TEST()
93 auto apex_manifest = ParseManifest("This is an invalid pony"); in TEST() local
94 ASSERT_FALSE(apex_manifest.Ok()); in TEST()
95 EXPECT_EQ(apex_manifest.ErrorMessage(), in TEST()
98 << apex_manifest.ErrorMessage(); in TEST()