summaryrefslogtreecommitdiff
path: root/android/androidmk_test.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2021-03-20 00:36:14 +0000
committer Paul Duffin <paulduffin@google.com> 2021-03-22 18:31:53 +0000
commit30ac3e7ca75106d7f883558c46501296d4bffcfc (patch)
tree8fb0fadf5f85ff592c7ff56bdfb0a915d9ffa1b1 /android/androidmk_test.go
parentff2aa69a86e46429255ed812b2796a89635b9f26 (diff)
Remove uses of FixtureFactory from android package
Bug: 183235980 Test: m nothing Change-Id: I72898ada020ee1a73fd534c61afb5c22fa00c1e5
Diffstat (limited to 'android/androidmk_test.go')
-rw-r--r--android/androidmk_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/android/androidmk_test.go b/android/androidmk_test.go
index 230b1ec0b..8eda9b247 100644
--- a/android/androidmk_test.go
+++ b/android/androidmk_test.go
@@ -141,14 +141,14 @@ func customModuleFactory() Module {
// bp module and then returns the config and the custom module called "foo".
func buildContextAndCustomModuleFoo(t *testing.T, bp string) (*TestContext, *customModule) {
t.Helper()
- result := emptyTestFixtureFactory.RunTest(t,
+ result := GroupFixturePreparers(
// Enable androidmk Singleton
PrepareForTestWithAndroidMk,
FixtureRegisterWithContext(func(ctx RegistrationContext) {
ctx.RegisterModuleType("custom", customModuleFactory)
}),
FixtureWithRootAndroidBp(bp),
- )
+ ).RunTest(t)
module := result.ModuleForTests("foo", "").Module().(*customModule)
return result.TestContext, module