diff options
author | Paul Duffin <paulduffin@google.com> | 2020-05-12 11:50:28 +0100 |
---|---|---|
committer | Paul Duffin <paulduffin@google.com> | 2020-05-13 13:09:23 +0100 |
commit | 87a05a389d9edfa3b83d90aa4c08cb66a29e4caf (patch) | |
tree | 692b3babc703ba0d59faa81b3e5da2ce7d649cbb /java/java_test.go | |
parent | 717e50c630cae63df241eebb41b7f4ca028c2888 (diff) |
java_sdk_library: Add sdk_version for API scopes
Allow the sdk_version against which the stubs for a scope are compiled
to be specified in the module on a per scope basis.
Bug: 155164730
Test: m nothing
Change-Id: I5881e5ee7c2169c30f544882344a60a602dae917
Diffstat (limited to 'java/java_test.go')
-rw-r--r-- | java/java_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/java/java_test.go b/java/java_test.go index 5e43ce5c4..f61f4bb20 100644 --- a/java/java_test.go +++ b/java/java_test.go @@ -1247,6 +1247,20 @@ func TestJavaSdkLibrary_InvalidScopes(t *testing.T) { `) } +func TestJavaSdkLibrary_SdkVersion_ForScope(t *testing.T) { + testJava(t, ` + java_sdk_library { + name: "foo", + srcs: ["a.java", "b.java"], + api_packages: ["foo"], + system: { + enabled: true, + sdk_version: "module_current", + }, + } + `) +} + var compilerFlagsTestCases = []struct { in string out bool |