Merge "Use common helper functions for getting sorted map keys." am: 49b1e9b6ce
am: d972866eb5
am: 9f3062747a
am: 4334875793
am: 6f53dedf85
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1404519 Change-Id: I6dcb6c6e271802ce91ded52c3b2e689dcb3d671d
This commit is contained in:
committed by
Automerger Merge Worker
commit
03c201fe18
@@ -121,7 +121,7 @@ func (library *Library) AndroidMkEntries() []android.AndroidMkEntries {
|
||||
entries.SetPath("LOCAL_SOONG_JACOCO_REPORT_CLASSES_JAR", library.jacocoReportClassesFile)
|
||||
}
|
||||
|
||||
entries.AddStrings("LOCAL_EXPORT_SDK_LIBRARIES", library.exportedSdkLibs.Names()...)
|
||||
entries.AddStrings("LOCAL_EXPORT_SDK_LIBRARIES", android.SortedStringKeys(library.exportedSdkLibs)...)
|
||||
|
||||
if len(library.additionalCheckedModules) != 0 {
|
||||
entries.AddStrings("LOCAL_ADDITIONAL_CHECKED_MODULE", library.additionalCheckedModules.Strings()...)
|
||||
|
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user