diff options
author | 2021-03-09 15:02:31 -0800 | |
---|---|---|
committer | 2021-03-09 15:14:34 -0800 | |
commit | 1c1b6e6d9555e4323e80ad0c48fed988c6cef411 (patch) | |
tree | 32235d090f59fab358dcedf255ace56e9a1e9498 /java/app_test.go | |
parent | 05ebca4f7fc4dc391575d58db766bb42d16934fe (diff) |
Lineage properties support module references.
They should have had `android:"path"` tags attached so that users can
point them to filegroup modules.
Test: app_test.go & app_import_test.go
Bug: 182175153
Change-Id: I5580408488ffe5fc12c869cbfb7a468713dcbc96
Diffstat (limited to 'java/app_test.go')
-rw-r--r-- | java/app_test.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/java/app_test.go b/java/app_test.go index f41047aa6..78e1a57a9 100644 --- a/java/app_test.go +++ b/java/app_test.go @@ -1576,6 +1576,31 @@ func TestCertificates(t *testing.T) { expectedLineage: "--lineage lineage.bin", expectedCertificate: "cert/new_cert.x509.pem cert/new_cert.pk8", }, + { + name: "lineage from filegroup", + bp: ` + android_app { + name: "foo", + srcs: ["a.java"], + certificate: ":new_certificate", + lineage: ":lineage_bin", + sdk_version: "current", + } + + android_app_certificate { + name: "new_certificate", + certificate: "cert/new_cert", + } + + filegroup { + name: "lineage_bin", + srcs: ["lineage.bin"], + } + `, + certificateOverride: "", + expectedLineage: "--lineage lineage.bin", + expectedCertificate: "cert/new_cert.x509.pem cert/new_cert.pk8", + }, } for _, test := range testCases { |