diff options
author | 2021-03-20 00:36:14 +0000 | |
---|---|---|
committer | 2021-03-22 18:31:53 +0000 | |
commit | 30ac3e7ca75106d7f883558c46501296d4bffcfc (patch) | |
tree | 8fb0fadf5f85ff592c7ff56bdfb0a915d9ffa1b1 /android/mutator_test.go | |
parent | ff2aa69a86e46429255ed812b2796a89635b9f26 (diff) |
Remove uses of FixtureFactory from android package
Bug: 183235980
Test: m nothing
Change-Id: I72898ada020ee1a73fd534c61afb5c22fa00c1e5
Diffstat (limited to 'android/mutator_test.go')
-rw-r--r-- | android/mutator_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/android/mutator_test.go b/android/mutator_test.go index 46d26d1be..21eebd2c8 100644 --- a/android/mutator_test.go +++ b/android/mutator_test.go @@ -65,7 +65,7 @@ func TestMutatorAddMissingDependencies(t *testing.T) { } ` - result := emptyTestFixtureFactory.RunTest(t, + result := GroupFixturePreparers( PrepareForTestWithAllowMissingDependencies, FixtureRegisterWithContext(func(ctx RegistrationContext) { ctx.RegisterModuleType("test", mutatorTestModuleFactory) @@ -74,7 +74,7 @@ func TestMutatorAddMissingDependencies(t *testing.T) { }) }), FixtureWithRootAndroidBp(bp), - ) + ).RunTest(t) foo := result.ModuleForTests("foo", "").Module().(*mutatorTestModule) @@ -90,7 +90,7 @@ func TestModuleString(t *testing.T) { var moduleStrings []string - emptyTestFixtureFactory.RunTest(t, + GroupFixturePreparers( FixtureRegisterWithContext(func(ctx RegistrationContext) { ctx.PreArchMutators(func(ctx RegisterMutatorsContext) { @@ -128,7 +128,7 @@ func TestModuleString(t *testing.T) { ctx.RegisterModuleType("test", mutatorTestModuleFactory) }), FixtureWithRootAndroidBp(bp), - ) + ).RunTest(t) want := []string{ // Initial name. @@ -187,7 +187,7 @@ func TestFinalDepsPhase(t *testing.T) { finalGot := map[string]int{} - emptyTestFixtureFactory.RunTest(t, + GroupFixturePreparers( FixtureRegisterWithContext(func(ctx RegistrationContext) { dep1Tag := struct { blueprint.BaseDependencyTag @@ -224,7 +224,7 @@ func TestFinalDepsPhase(t *testing.T) { ctx.RegisterModuleType("test", mutatorTestModuleFactory) }), FixtureWithRootAndroidBp(bp), - ) + ).RunTest(t) finalWant := map[string]int{ "common_dep_1{variant:a}": 1, @@ -249,7 +249,7 @@ func TestNoCreateVariationsInFinalDeps(t *testing.T) { } } - emptyTestFixtureFactory.RunTest(t, + GroupFixturePreparers( FixtureRegisterWithContext(func(ctx RegistrationContext) { ctx.FinalDepsMutators(func(ctx RegisterMutatorsContext) { ctx.BottomUp("vars", func(ctx BottomUpMutatorContext) { @@ -265,5 +265,5 @@ func TestNoCreateVariationsInFinalDeps(t *testing.T) { ctx.RegisterModuleType("test", mutatorTestModuleFactory) }), FixtureWithRootAndroidBp(`test {name: "foo"}`), - ) + ).RunTest(t) } |