diff options
| author | 2019-02-20 20:14:31 -0800 | |
|---|---|---|
| committer | 2019-02-20 20:14:31 -0800 | |
| commit | 4ebb84d392613cea88ea3a71cce83188c40da34b (patch) | |
| tree | 9b1600a4074db578fe062834312d9ae9a212cdc9 /java/testing.go | |
| parent | e9c5455e5b2b593a2e0c4d42ba79099e685566c8 (diff) | |
| parent | 4bb6764de99488010b75dd546bada98435729f49 (diff) | |
Merge "Make RuleBuilder methods take Paths"
am: 4bb6764de9
Change-Id: I905a87bca40ab7ba696ce0b81003e0f5f97f1278
Diffstat (limited to 'java/testing.go')
| -rw-r--r-- | java/testing.go | 4 |
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 } |