diff options
author | 2021-03-20 00:36:55 +0000 | |
---|---|---|
committer | 2021-03-22 18:31:53 +0000 | |
commit | 89648f98faf46f4c9ae2b084167a79f7da2df567 (patch) | |
tree | 38c2561883b220b1ee671748d17c1657c42a77c9 /sdk/testing.go | |
parent | 30ac3e7ca75106d7f883558c46501296d4bffcfc (diff) |
Remove usages of FixtureFactory from misc packages
These packages have already been migrated to use per test build
directory so have no need for a FixtureFactory.
Bug: 183235980
Test: m nothing
Change-Id: I667d1d992caaf0f615de91f89efdae11c44986c2
Diffstat (limited to 'sdk/testing.go')
-rw-r--r-- | sdk/testing.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sdk/testing.go b/sdk/testing.go index 6df402cff..c319895f5 100644 --- a/sdk/testing.go +++ b/sdk/testing.go @@ -27,8 +27,7 @@ import ( "android/soong/java" ) -var sdkFixtureFactory = android.NewFixtureFactory( - nil, +var prepareForSdkTest = android.GroupFixturePreparers( apex.PrepareForTestWithApexBuildComponents, cc.PrepareForTestWithCcDefaultModules, genrule.PrepareForTestWithGenRuleBuildComponents, @@ -77,12 +76,12 @@ var PrepareForTestWithSdkBuildComponents = android.GroupFixturePreparers( func testSdkWithFs(t *testing.T, bp string, fs android.MockFS) *android.TestResult { t.Helper() - return sdkFixtureFactory.RunTest(t, fs.AddToFixture(), android.FixtureWithRootAndroidBp(bp)) + return prepareForSdkTest.RunTest(t, fs.AddToFixture(), android.FixtureWithRootAndroidBp(bp)) } func testSdkError(t *testing.T, pattern, bp string) { t.Helper() - sdkFixtureFactory. + prepareForSdkTest. ExtendWithErrorHandler(android.FixtureExpectsAtLeastOneErrorMatchingPattern(pattern)). RunTestWithBp(t, bp) } |