summaryrefslogtreecommitdiff
path: root/apex/apex_test.go
diff options
context:
space:
mode:
author Jooyung Han <jooyung@google.com> 2020-06-15 13:52:20 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-06-15 13:52:20 +0000
commit552d4730c367838538985573f82b4edc7a183b67 (patch)
tree919f417cf10a1693a4d89d408aae7ccea65a6317 /apex/apex_test.go
parent2752d926a9aa78f68c0713af6ecda11b5b02b583 (diff)
parent45a96778c19fcc36debb06e3908b5db4d68fef71 (diff)
Merge "VNDK APEX should not provide native libs"
Diffstat (limited to 'apex/apex_test.go')
-rw-r--r--apex/apex_test.go34
1 files changed, 34 insertions, 0 deletions
diff --git a/apex/apex_test.go b/apex/apex_test.go
index 7159a4593..6a832af93 100644
--- a/apex/apex_test.go
+++ b/apex/apex_test.go
@@ -2817,6 +2817,40 @@ func TestVndkApexWithBinder32(t *testing.T) {
})
}
+func TestVndkApexShouldNotProvideNativeLibs(t *testing.T) {
+ ctx, _ := testApex(t, `
+ apex_vndk {
+ name: "myapex",
+ key: "myapex.key",
+ file_contexts: ":myapex-file_contexts",
+ }
+
+ apex_key {
+ name: "myapex.key",
+ public_key: "testkey.avbpubkey",
+ private_key: "testkey.pem",
+ }
+
+ cc_library {
+ name: "libz",
+ vendor_available: true,
+ vndk: {
+ enabled: true,
+ },
+ stubs: {
+ symbol_file: "libz.map.txt",
+ versions: ["30"],
+ }
+ }
+ `+vndkLibrariesTxtFiles("current"), withFiles(map[string][]byte{
+ "libz.map.txt": nil,
+ }))
+
+ apexManifestRule := ctx.ModuleForTests("myapex", "android_common_image").Rule("apexManifestRule")
+ provideNativeLibs := names(apexManifestRule.Args["provideNativeLibs"])
+ ensureListEmpty(t, provideNativeLibs)
+}
+
func TestDependenciesInApexManifest(t *testing.T) {
ctx, _ := testApex(t, `
apex {