From 4fbfb59d3e43d92a2ef5c50049210dfcb634fc9e Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Fri, 9 Jul 2021 16:47:38 +0100 Subject: Extract preparer for namespace Bug: 193228441 Test: m nothing Change-Id: If00b0595edd48be8c8d3308b87fb920dfb0340ee --- android/testing.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'android/testing.go') 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 -- cgit v1.2.3-59-g8ed1b