diff options
author | Ulya Trafimovich <skvadrik@google.com> | 2020-08-20 11:33:12 +0100 |
---|---|---|
committer | Ulya Trafimovich <skvadrik@google.com> | 2020-08-20 12:37:03 +0100 |
commit | b8063c6a86b46ca5f4cb3f35d25c846ea6647d91 (patch) | |
tree | be273efbf9c59f12a34c2d2ec7b0ef9a73c68652 /java/java_test.go | |
parent | 9ce22217915c9fa3da6a23634e83f24705417cd1 (diff) |
Use common helper functions for getting sorted map keys.
Add a new helper SortedIntKeys similar to SortedStringKeys.
Test: lunch aosp_cf_x86_phone-userdebug && m
Change-Id: I08a43ec2cae7d1a82531295aca1a0658e3a0dd6f
Diffstat (limited to 'java/java_test.go')
-rw-r--r-- | java/java_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/java_test.go b/java/java_test.go index 0089545ca..0e936118c 100644 --- a/java/java_test.go +++ b/java/java_test.go @@ -1495,7 +1495,7 @@ func TestJavaSdkLibrary(t *testing.T) { // test if baz has exported SDK lib names foo and bar to qux qux := ctx.ModuleForTests("qux", "android_common") if quxLib, ok := qux.Module().(*Library); ok { - sdkLibs := quxLib.ExportedSdkLibs().Names() + sdkLibs := android.SortedStringKeys(quxLib.ExportedSdkLibs()) if w := []string{"bar", "foo", "fred", "quuz"}; !reflect.DeepEqual(w, sdkLibs) { t.Errorf("qux should export %q but exports %q", w, sdkLibs) } |