diff options
| author | 2019-02-22 20:35:45 -0800 | |
|---|---|---|
| committer | 2019-02-22 20:35:45 -0800 | |
| commit | 4bff473af28b6efa318dc3ee6be1d0f43f48e408 (patch) | |
| tree | c928d5e37ebae182c01f4ed6dd1a0a483112f673 /java/testing.go | |
| parent | 395d1b0ecb19648469f9abe38ed308d72b9f495d (diff) | |
| parent | d123cd7459acb569d0f8ada745c059c6bf2dec61 (diff) | |
Make RuleBuilder methods take Paths am: 69f59a3327 am: fafab5c1ec
am: d123cd7459
Change-Id: I5277142b7486c80c1c93d2ecd9a90b387d93c4a9
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 713eca1a3..a55a1eef4 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 } |