summaryrefslogtreecommitdiff
path: root/java/testing.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2020-02-15 11:00:10 -0800
committer Colin Cross <ccross@android.com> 2020-02-19 18:59:15 -0800
commitf28329de73e00f5ccb3d71880dd56235362b08df (patch)
tree290cc21f9abb9d918e370b1df7db81cd343d7fc9 /java/testing.go
parenteb9b9f23ec9bedd34541af0dce2c848dee59b6ee (diff)
Move NDK test modules into cc/testing.go
Move the NDK modules defined in app_test.go into cc/testing.go in preparation for using sdk_version: "current" in more tests. Test: all soong tests Change-Id: I80bc31225fb4562fce42781219cefbbd6affae06
Diffstat (limited to 'java/testing.go')
-rw-r--r--java/testing.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/testing.go b/java/testing.go
index 3111109a5..5b6a39b2a 100644
--- a/java/testing.go
+++ b/java/testing.go
@@ -18,6 +18,7 @@ import (
"fmt"
"android/soong/android"
+ "android/soong/cc"
)
func TestConfig(buildDir string, env map[string]string, bp string, fs map[string][]byte) android.Config {
@@ -52,8 +53,6 @@ func TestConfig(buildDir string, env map[string]string, bp string, fs map[string
"assets_a/a": nil,
"assets_b/b": nil,
- "prebuilts/ndk/current/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_shared.so": nil,
-
"prebuilts/sdk/14/public/android.jar": nil,
"prebuilts/sdk/14/public/framework.aidl": nil,
"prebuilts/sdk/14/system/android.jar": nil,
@@ -122,6 +121,8 @@ func TestConfig(buildDir string, env map[string]string, bp string, fs map[string
"stubs/sources/foo/Foo.java": nil,
}
+ cc.GatherRequiredFilesForTest(mockFS)
+
for k, v := range fs {
mockFS[k] = v
}