diff options
author | 2021-03-22 13:41:36 +0000 | |
---|---|---|
committer | 2021-03-22 22:09:53 +0000 | |
commit | 42da69d78439ffaaa1ce857837e5123360bd2c22 (patch) | |
tree | d4cd7e65fcacfa2d805e71fdd8da05d7c4e75cfa /java/testing.go | |
parent | 97d8b40fec62135fde2c3aa40d453a16c1f4eda8 (diff) |
Add preparer for overlay pre-singleton registration
It appears as though this is the first pre-singleton type to actually
be registered with the InitRegistrationContext as it failed due to an
uninitialized map, so this change also fixes that.
Bug: 182885307
Test: m nothing
Change-Id: Ibbf6d0db5f3c2fcc89291a16aa5f16b8b5009bd3
Diffstat (limited to 'java/testing.go')
-rw-r--r-- | java/testing.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/java/testing.go b/java/testing.go index 4b8b84924..2343294c6 100644 --- a/java/testing.go +++ b/java/testing.go @@ -54,6 +54,8 @@ var PrepareForTestWithJavaDefaultModules = android.GroupFixturePreparers( android.FixtureAddTextFile(defaultJavaDir+"/Android.bp", GatherRequiredDepsForTest()), ) +var PrepareForTestWithOverlayBuildComponents = android.FixtureRegisterWithContext(registerOverlayBuildComponents) + // Prepare a fixture to use all java module types, mutators and singletons fully. // // This should only be used by tests that want to run with as much of the build enabled as possible. |