diff options
author | 2021-03-20 00:36:55 +0000 | |
---|---|---|
committer | 2021-03-22 18:31:53 +0000 | |
commit | 89648f98faf46f4c9ae2b084167a79f7da2df567 (patch) | |
tree | 38c2561883b220b1ee671748d17c1657c42a77c9 /xml | |
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 'xml')
-rw-r--r-- | xml/xml_test.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xml/xml_test.go b/xml/xml_test.go index 83ae51c4a..a59a29318 100644 --- a/xml/xml_test.go +++ b/xml/xml_test.go @@ -26,8 +26,6 @@ func TestMain(m *testing.M) { os.Exit(m.Run()) } -var emptyFixtureFactory = android.NewFixtureFactory(nil) - func testXml(t *testing.T, bp string) *android.TestResult { fs := android.MockFS{ "foo.xml": nil, @@ -37,13 +35,13 @@ func testXml(t *testing.T, bp string) *android.TestResult { "baz.xml": nil, } - return emptyFixtureFactory.RunTest(t, + return android.GroupFixturePreparers( android.PrepareForTestWithArchMutator, etc.PrepareForTestWithPrebuiltEtc, PreparerForTestWithXmlBuildComponents, fs.AddToFixture(), android.FixtureWithRootAndroidBp(bp), - ) + ).RunTest(t) } // Minimal test |