Merge "Fix testDexpreoptBoot to work without javaMockFS()"

This commit is contained in:
Paul Duffin 2021-03-19 11:09:21 +00:00 committed by Gerrit Code Review
commit 64df56def9
1 changed files with 5 additions and 2 deletions

View File

@ -44,8 +44,11 @@ func testDexpreoptBoot(t *testing.T, ruleFile string, expectedInputs, expectedOu
`
result := javaFixtureFactory.
Extend(dexpreopt.FixtureSetBootJars("platform:foo", "platform:bar", "platform:baz")).
RunTestWithBp(t, bp)
Extend(
PrepareForTestWithJavaSdkLibraryFiles,
FixtureWithLastReleaseApis("foo"),
dexpreopt.FixtureSetBootJars("platform:foo", "platform:bar", "platform:baz"),
).RunTestWithBp(t, bp)
dexpreoptBootJars := result.SingletonForTests("dex_bootjars")
rule := dexpreoptBootJars.Output(ruleFile)