Merge "Extract testDexpreoptWithApexes() for reuse" am: 4d934af2ee

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I23f4aef12d2e3139f5f38e74bcde0937e9cc3598
This commit is contained in:
Paul Duffin 2020-12-11 10:41:30 +00:00 committed by Automerger Merge Worker
commit 30642ff255

View file

@ -5691,6 +5691,13 @@ func testNoUpdatableJarsInBootImage(t *testing.T, errmsg string, transformDexpre
], ],
} }
` `
testDexpreoptWithApexes(t, bp, errmsg, transformDexpreoptConfig)
}
func testDexpreoptWithApexes(t *testing.T, bp, errmsg string, transformDexpreoptConfig func(*dexpreopt.GlobalConfig)) {
t.Helper()
bp += cc.GatherRequiredDepsForTest(android.Android) bp += cc.GatherRequiredDepsForTest(android.Android)
bp += java.GatherRequiredDepsForTest() bp += java.GatherRequiredDepsForTest()
bp += dexpreopt.BpToolModulesForTest() bp += dexpreopt.BpToolModulesForTest()