diff options
author | 2021-07-09 16:47:38 +0100 | |
---|---|---|
committer | 2021-07-09 23:54:01 +0100 | |
commit | 4fbfb59d3e43d92a2ef5c50049210dfcb634fc9e (patch) | |
tree | d61443e9748d161003e3b1786e83f008654b9ee8 /android/testing.go | |
parent | 1a0e2d20b313ca38ef149513af2deb1a0a0aaa46 (diff) |
Extract preparer for namespace
Bug: 193228441
Test: m nothing
Change-Id: If00b0595edd48be8c8d3308b87fb920dfb0340ee
Diffstat (limited to 'android/testing.go')
-rw-r--r-- | android/testing.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/android/testing.go b/android/testing.go index b36f62cce..17a812ea1 100644 --- a/android/testing.go +++ b/android/testing.go @@ -110,6 +110,11 @@ var PrepareForTestWithLicenseDefaultModules = GroupFixturePreparers( FixtureAddFile("build/soong/licenses/LICENSE", nil), ) +var PrepareForTestWithNamespace = FixtureRegisterWithContext(func(ctx RegistrationContext) { + registerNamespaceBuildComponents(ctx) + ctx.PreArchMutators(RegisterNamespaceMutator) +}) + // Test fixture preparer that will register most java build components. // // Singletons and mutators should only be added here if they are needed for a majority of java |