Remove uses of FixtureFactory from android package

Bug: 183235980
Test: m nothing
Change-Id: I72898ada020ee1a73fd534c61afb5c22fa00c1e5
This commit is contained in:
Paul Duffin
2021-03-20 00:36:14 +00:00
parent ff2aa69a86
commit 30ac3e7ca7
24 changed files with 108 additions and 117 deletions

View File

@@ -179,11 +179,9 @@ func TestErrorDependsOnDisabledModule(t *testing.T) {
}
`
emptyTestFixtureFactory.
prepareForModuleTests.
ExtendWithErrorHandler(FixtureExpectsAtLeastOneErrorMatchingPattern(`module "foo": depends on disabled module "bar"`)).
RunTest(t,
prepareForModuleTests,
FixtureWithRootAndroidBp(bp))
RunTestWithBp(t, bp)
}
func TestValidateCorrectBuildParams(t *testing.T) {
@@ -268,9 +266,7 @@ func TestDistErrorChecking(t *testing.T) {
"\\QAndroid.bp:18:17: module \"foo\": dists[1].suffix: Suffix may not contain a '/' character.\\E",
}
emptyTestFixtureFactory.
prepareForModuleTests.
ExtendWithErrorHandler(FixtureExpectsAllErrorsToMatchAPattern(expectedErrs)).
RunTest(t,
prepareForModuleTests,
FixtureWithRootAndroidBp(bp))
RunTestWithBp(t, bp)
}