Convert TestCompatConfig test to use test fixtures am: a369c7b50d

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1626505

Change-Id: I90ab7b1ce57f0f412f8a53090b6b56e921b076e7
This commit is contained in:
Paul Duffin 2021-03-16 07:26:30 +00:00 committed by Automerger Merge Worker
commit 28cae4ca6f
1 changed files with 4 additions and 1 deletions

View File

@ -5989,7 +5989,9 @@ func TestJavaSDKLibrary_ImportOnly(t *testing.T) {
}
func TestCompatConfig(t *testing.T) {
ctx := testApex(t, `
result := apexFixtureFactory.
Extend(java.PrepareForTestWithPlatformCompatConfig).
RunTestWithBp(t, `
apex {
name: "myapex",
key: "myapex.key",
@ -6017,6 +6019,7 @@ func TestCompatConfig(t *testing.T) {
apex_available: [ "myapex" ],
}
`)
ctx := result.TestContext
ensureExactContents(t, ctx, "myapex", "android_common_myapex_image", []string{
"etc/compatconfig/myjar-platform-compat-config.xml",
"javalib/myjar.jar",