summaryrefslogtreecommitdiff
path: root/java/testing.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2019-02-22 20:29:33 -0800
committer android-build-merger <android-build-merger@google.com> 2019-02-22 20:29:33 -0800
commitd123cd7459acb569d0f8ada745c059c6bf2dec61 (patch)
tree40394b911919904edbaf771896fcbd62b7de0880 /java/testing.go
parentec60a92074d289ddbf4c65541c58e32926a42f7c (diff)
parentfafab5c1ec3cbc68f6d892dab5a6af1193fbcc8d (diff)
Make RuleBuilder methods take Paths am: 69f59a3327
am: fafab5c1ec Change-Id: I3767d53ea5b8921614b1fbb208eadce3f08607b2
Diffstat (limited to 'java/testing.go')
-rw-r--r--java/testing.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/java/testing.go b/java/testing.go
index 6febfa1d3..bec3c0b2c 100644
--- a/java/testing.go
+++ b/java/testing.go
@@ -18,6 +18,7 @@ import (
"fmt"
"android/soong/android"
+ "android/soong/dexpreopt"
)
func TestConfig(buildDir string, env map[string]string) android.Config {
@@ -30,6 +31,9 @@ func TestConfig(buildDir string, env map[string]string) android.Config {
config := android.TestArchConfig(buildDir, env)
config.TestProductVariables.DeviceSystemSdkVersions = []string{"14", "15"}
+ pathCtx := android.PathContextForTesting(config, nil)
+ setDexpreoptGlobalConfig(config, dexpreopt.GlobalConfigForTests(pathCtx))
+
return config
}