diff options
author | Daniel Norman <danielnorman@google.com> | 2021-02-08 11:11:01 -0800 |
---|---|---|
committer | Daniel Norman <danielnorman@google.com> | 2021-02-08 11:11:01 -0800 |
commit | f0f884fbb30c5ab3b2cc9edd99aa03478197526a (patch) | |
tree | d7017afa12d6975a395e50759d27782f26ee4b97 /java/java_test.go | |
parent | 5181c6370dd5650a88507d17e75003d32ab5ad54 (diff) | |
parent | 10641b9dbd2ec16d4ff7055fd4e3152af5c6b3da (diff) |
Merge SP1A.210208.001
Change-Id: Id4cc0aa42e3b22fc90b687179db99af5f576f759
Diffstat (limited to 'java/java_test.go')
-rw-r--r-- | java/java_test.go | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/java/java_test.go b/java/java_test.go index 1c0738fa4..e7776c35d 100644 --- a/java/java_test.go +++ b/java/java_test.go @@ -59,35 +59,16 @@ func TestMain(m *testing.M) { } func testConfig(env map[string]string, bp string, fs map[string][]byte) android.Config { - bp += dexpreopt.BpToolModulesForTest() - - config := TestConfig(buildDir, env, bp, fs) - - // Set up the global Once cache used for dexpreopt.GlobalSoongConfig, so that - // it doesn't create a real one, which would fail. - _ = dexpreopt.GlobalSoongConfigForTests(config) - - return config + return TestConfig(buildDir, env, bp, fs) } func testContext(config android.Config) *android.TestContext { ctx := android.NewTestArchContext(config) - RegisterJavaBuildComponents(ctx) - RegisterAppBuildComponents(ctx) - RegisterAppImportBuildComponents(ctx) - RegisterAppSetBuildComponents(ctx) - RegisterAARBuildComponents(ctx) - RegisterGenRuleBuildComponents(ctx) - RegisterRuntimeResourceOverlayBuildComponents(ctx) - RegisterSystemModulesBuildComponents(ctx) + RegisterRequiredBuildComponentsForTest(ctx) ctx.RegisterModuleType("java_plugin", PluginFactory) ctx.RegisterModuleType("filegroup", android.FileGroupFactory) ctx.RegisterModuleType("python_binary_host", python.PythonBinaryHostFactory) - RegisterDocsBuildComponents(ctx) - RegisterStubsBuildComponents(ctx) - RegisterPrebuiltApisBuildComponents(ctx) - RegisterSdkLibraryBuildComponents(ctx) ctx.PreArchMutators(android.RegisterDefaultsPreArchMutators) ctx.PreArchMutators(android.RegisterComponentsMutator) @@ -101,8 +82,6 @@ func testContext(config android.Config) *android.TestContext { // Register module types and mutators from cc needed for JNI testing cc.RegisterRequiredBuildComponentsForTest(ctx) - dexpreopt.RegisterToolModulesForTest(ctx) - ctx.PostDepsMutators(func(ctx android.RegisterMutatorsContext) { ctx.TopDown("propagate_rro_enforcement", propagateRROEnforcementMutator).Parallel() }) |