diff options
| author | 2021-07-19 13:23:40 +0100 | |
|---|---|---|
| committer | 2021-07-20 19:18:13 +0100 | |
| commit | 54e4197da1ce6a3f04e414c8ec8552d97ac1a65e (patch) | |
| tree | 346bd56ce4e8bdadd8542d2282a77ce930006371 /apex/bootclasspath_fragment_test.go | |
| parent | 40a3f65430df6de8df63522dd07fa827b41fde69 (diff) | |
Require prebuilt_bootclasspath_fragment to provide hidden API files
Previously, the prebuilt_bootclasspath_fragment was not required to
provide hidden API files as not all usages of that module provided
them. That should no longer be the case so this change makes the
prebuilt_bootclasspath_fragment stricter and so now always require
them.
Bug: 194063708
Test: m out/soong/hiddenapi/hiddenapi-flags.csv
- check that this does not change the contents.
Change-Id: I3f19a1b4246f09a927c0f6b0f41b8678150d6cc2
Diffstat (limited to 'apex/bootclasspath_fragment_test.go')
| -rw-r--r-- | apex/bootclasspath_fragment_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apex/bootclasspath_fragment_test.go b/apex/bootclasspath_fragment_test.go index 4b1600e1c..5cd3eab6a 100644 --- a/apex/bootclasspath_fragment_test.go +++ b/apex/bootclasspath_fragment_test.go @@ -383,6 +383,13 @@ func TestBootclasspathFragmentInArtApex(t *testing.T) { apex_available: [ "com.android.art", ], + hidden_api: { + annotation_flags: "mybootclasspathfragment/annotation-flags.csv", + metadata: "mybootclasspathfragment/metadata.csv", + index: "mybootclasspathfragment/index.csv", + stub_flags: "mybootclasspathfragment/stub-flags.csv", + all_flags: "mybootclasspathfragment/all-flags.csv", + }, } `, contentsInsert(contents), prefer) return android.FixtureAddTextFile("prebuilts/module_sdk/art/Android.bp", text) @@ -582,6 +589,13 @@ func TestBootclasspathFragmentInPrebuiltArtApex(t *testing.T) { apex_available: [ "com.android.art", ], + hidden_api: { + annotation_flags: "mybootclasspathfragment/annotation-flags.csv", + metadata: "mybootclasspathfragment/metadata.csv", + index: "mybootclasspathfragment/index.csv", + stub_flags: "mybootclasspathfragment/stub-flags.csv", + all_flags: "mybootclasspathfragment/all-flags.csv", + }, } `) |