Convert TestCompatConfig test to use test fixtures am: a369c7b50d
am: 28cae4ca6f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1626505 Change-Id: Ief32c21320ead2b92f47b3e485e2c3736290903f
This commit is contained in:
commit
6fb02328eb
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue