diff options
author | Daniel Norman <danielnorman@google.com> | 2021-02-19 00:13:26 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-02-19 00:13:26 +0000 |
commit | 5e569823b2be064c2db970992443ac6db9b7b479 (patch) | |
tree | d7017afa12d6975a395e50759d27782f26ee4b97 /java/java_test.go | |
parent | fb0259cb2fe186c2d07093d1d9d95889b5ea5e17 (diff) | |
parent | f0f884fbb30c5ab3b2cc9edd99aa03478197526a (diff) |
Merge "Merge SP1A.210208.001 Change-Id: Id4cc0aa42e3b22fc90b687179db99af5f576f759" into s-keystone-qcom-dev
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() }) |