summaryrefslogtreecommitdiff
path: root/java/sdk_library_test.go
diff options
context:
space:
mode:
author Aurimas Liutikas <aurimas@google.com> 2021-08-13 21:00:35 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-08-13 21:00:35 +0000
commit15c82a10de5ae41fccfdd96aa5046242de8b6588 (patch)
tree793d43b8e0414c91e11120b35d31c04995f04a59 /java/sdk_library_test.go
parent0ad64f50fd60c4b37c250d1011bad0bbeca978dd (diff)
parentfc0f6e34ce874eba4b1f852c6b9ee92148379768 (diff)
Merge "Fix the way manifest fixer detects optional <uses-library> entries."
Diffstat (limited to 'java/sdk_library_test.go')
-rw-r--r--java/sdk_library_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/sdk_library_test.go b/java/sdk_library_test.go
index 8e0618e31..eeec50482 100644
--- a/java/sdk_library_test.go
+++ b/java/sdk_library_test.go
@@ -156,8 +156,9 @@ func TestJavaSdkLibrary(t *testing.T) {
// test if baz has exported SDK lib names foo and bar to qux
qux := result.ModuleForTests("qux", "android_common")
if quxLib, ok := qux.Module().(*Library); ok {
- sdkLibs := quxLib.ClassLoaderContexts().UsesLibs()
- android.AssertDeepEquals(t, "qux exports", []string{"foo", "bar", "fred", "quuz"}, sdkLibs)
+ requiredSdkLibs, optionalSdkLibs := quxLib.ClassLoaderContexts().UsesLibs()
+ android.AssertDeepEquals(t, "qux exports (required)", []string{"foo", "bar", "fred", "quuz"}, requiredSdkLibs)
+ android.AssertDeepEquals(t, "qux exports (optional)", []string{}, optionalSdkLibs)
}
}