Ensure that <x>-hiddenapi modules are included in hiddenapi-index.csv
Adds a test that makes sure that <x>-hiddenapi modules that provide additional annotations for the <x> boot jar module are included when generating the hiddenapi-index.csv file. Bug: 178361284 Test: m nothing Change-Id: I866916c9275af17954e0634347d183228d4ddc17
This commit is contained in:
@@ -84,6 +84,12 @@ func TestHiddenAPIIndexSingleton(t *testing.T) {
|
|||||||
compile_dex: true,
|
compile_dex: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
java_library {
|
||||||
|
name: "foo-hiddenapi",
|
||||||
|
srcs: ["a.java"],
|
||||||
|
compile_dex: true,
|
||||||
|
}
|
||||||
|
|
||||||
java_import {
|
java_import {
|
||||||
name: "foo",
|
name: "foo",
|
||||||
jars: ["a.jar"],
|
jars: ["a.jar"],
|
||||||
@@ -102,6 +108,7 @@ func TestHiddenAPIIndexSingleton(t *testing.T) {
|
|||||||
indexRule := hiddenAPIIndex.Rule("singleton-merged-hiddenapi-index")
|
indexRule := hiddenAPIIndex.Rule("singleton-merged-hiddenapi-index")
|
||||||
CheckHiddenAPIRuleInputs(t, `
|
CheckHiddenAPIRuleInputs(t, `
|
||||||
.intermediates/bar/android_common/hiddenapi/index.csv
|
.intermediates/bar/android_common/hiddenapi/index.csv
|
||||||
|
.intermediates/foo-hiddenapi/android_common/hiddenapi/index.csv
|
||||||
.intermediates/foo/android_common/hiddenapi/index.csv
|
.intermediates/foo/android_common/hiddenapi/index.csv
|
||||||
`,
|
`,
|
||||||
indexRule)
|
indexRule)
|
||||||
|
Reference in New Issue
Block a user