Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: tests/compiler/dart2js/library_resolution_test.dart

Issue 2760923004: Eliminate multi-callback structure for LibraryLoader. (Closed)
Patch Set: . Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js/library_resolution_test.dart
diff --git a/tests/compiler/dart2js/library_resolution_test.dart b/tests/compiler/dart2js/library_resolution_test.dart
index 2482ccae8f21fe8eff4f705b0c24b30d7076a448..aecf827d6cf61807f1ae151df6f0769a60601d45 100644
--- a/tests/compiler/dart2js/library_resolution_test.dart
+++ b/tests/compiler/dart2js/library_resolution_test.dart
@@ -21,6 +21,8 @@ import 'package:compiler/src/diagnostics/messages.dart'
import 'package:compiler/src/elements/elements.dart' show LibraryElement;
+import 'package:compiler/src/library_loader.dart' show LoadedLibraries;
+
import 'package:compiler/src/null_compiler_output.dart' show NullCompilerOutput;
import 'package:compiler/src/old_to_new_api.dart'
@@ -71,7 +73,7 @@ main() async {
}
}
- checkLibrary(LibraryElement library) {
+ checkLibrary(LoadedLibraries libraries) {
Siggi Cherem (dart-lang) 2017/03/24 17:40:28 checkLibrary => checkLibraries?
Emily Fortuna 2017/03/24 18:30:20 Done.
Expect.equals(1, actualMessageCount);
}
@@ -86,9 +88,9 @@ main() async {
// TODO(het): Find cleaner way to do this
compiler.resolvedUriTranslator.sdkLibraries['m_o_c_k_1'] = mock1LibraryUri;
compiler.resolvedUriTranslator.sdkLibraries['m_o_c_k_2'] = mock2LibraryUri;
- var library =
+ var libraries =
await compiler.libraryLoader.loadLibrary(Uri.parse("dart:m_o_c_k_1"));
- await checkLibrary(library);
+ await checkLibrary(libraries);
asyncSuccess(null);
}

Powered by Google App Engine
This is Rietveld 408576698