aboutsummaryrefslogtreecommitdiff
path: root/sdk/java_sdk_test.go
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2020-06-24 14:24:03 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-06-24 14:24:03 +0000
commit29abfb7fd159fadc2305814222b8db41115c877c (patch)
tree80097970d5537e83d15dd67147793577cbd59015 /sdk/java_sdk_test.go
parentc487ae15ba747ba06c0c72f357228bb933811629 (diff)
parent4e77284ab45ff1e49b8ca7993516c32152467d10 (diff)
Merge "Include resources in sdk snapshot of java library impl"
Diffstat (limited to 'sdk/java_sdk_test.go')
-rw-r--r--sdk/java_sdk_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/sdk/java_sdk_test.go b/sdk/java_sdk_test.go
index 77a4e94b3..7496b207d 100644
--- a/sdk/java_sdk_test.go
+++ b/sdk/java_sdk_test.go
@@ -23,6 +23,7 @@ func testSdkWithJava(t *testing.T, bp string) *testSdkResult {
fs := map[string][]byte{
"Test.java": nil,
+ "resource.test": nil,
"aidl/foo/bar/Test.aidl": nil,
// For java_sdk_library
@@ -348,6 +349,7 @@ func TestSnapshotWithJavaImplLibrary(t *testing.T) {
java_library {
name: "myjavalib",
srcs: ["Test.java"],
+ java_resources: ["resource.txt"],
aidl: {
export_include_dirs: ["aidl"],
},
@@ -381,7 +383,7 @@ module_exports_snapshot {
`),
checkAllCopyRules(`
-.intermediates/myjavalib/android_common/javac/myjavalib.jar -> java/myjavalib.jar
+.intermediates/myjavalib/android_common/withres/myjavalib.jar -> java/myjavalib.jar
aidl/foo/bar/Test.aidl -> aidl/aidl/foo/bar/Test.aidl
`),
)