Remove uses of FixtureFactory from android package
Bug: 183235980 Test: m nothing Change-Id: I72898ada020ee1a73fd534c61afb5c22fa00c1e5
This commit is contained in:
@@ -633,21 +633,21 @@ func mockFiles(bps map[string]string) (files map[string][]byte) {
|
||||
}
|
||||
|
||||
func setupTestFromFiles(t *testing.T, bps MockFS) (ctx *TestContext, errs []error) {
|
||||
result := emptyTestFixtureFactory.
|
||||
result := GroupFixturePreparers(
|
||||
FixtureModifyContext(func(ctx *TestContext) {
|
||||
ctx.RegisterModuleType("test_module", newTestModule)
|
||||
ctx.RegisterModuleType("soong_namespace", NamespaceFactory)
|
||||
ctx.Context.RegisterModuleType("blueprint_test_module", newBlueprintTestModule)
|
||||
ctx.PreArchMutators(RegisterNamespaceMutator)
|
||||
ctx.PreDepsMutators(func(ctx RegisterMutatorsContext) {
|
||||
ctx.BottomUp("rename", renameMutator)
|
||||
})
|
||||
}),
|
||||
bps.AddToFixture(),
|
||||
).
|
||||
// Ignore errors for now so tests can check them later.
|
||||
ExtendWithErrorHandler(FixtureIgnoreErrors).
|
||||
RunTest(t,
|
||||
FixtureModifyContext(func(ctx *TestContext) {
|
||||
ctx.RegisterModuleType("test_module", newTestModule)
|
||||
ctx.RegisterModuleType("soong_namespace", NamespaceFactory)
|
||||
ctx.Context.RegisterModuleType("blueprint_test_module", newBlueprintTestModule)
|
||||
ctx.PreArchMutators(RegisterNamespaceMutator)
|
||||
ctx.PreDepsMutators(func(ctx RegisterMutatorsContext) {
|
||||
ctx.BottomUp("rename", renameMutator)
|
||||
})
|
||||
}),
|
||||
bps.AddToFixture(),
|
||||
)
|
||||
RunTest(t)
|
||||
|
||||
return result.TestContext, result.Errs
|
||||
}
|
||||
|
Reference in New Issue
Block a user