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

Unified Diff: tests/compiler/dart2js/exit_code_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/exit_code_test.dart
diff --git a/tests/compiler/dart2js/exit_code_test.dart b/tests/compiler/dart2js/exit_code_test.dart
index b8631cdd84c847b9e8430ff3237280a04c742def..a3da75996d2ada304ed634c5769e3890e716b3b8 100644
--- a/tests/compiler/dart2js/exit_code_test.dart
+++ b/tests/compiler/dart2js/exit_code_test.dart
@@ -74,14 +74,9 @@ class TestCompiler extends apiimpl.CompilerImpl {
return super.run(uri);
}
- Future onLibraryScanned(LibraryElement element, LibraryLoader loader) {
- test('Compiler.onLibraryScanned');
- return super.onLibraryScanned(element, loader);
- }
-
- Future onLibrariesLoaded(LoadedLibraries loadedLibraries) {
- test('Compiler.onLibrariesLoaded');
- return super.onLibrariesLoaded(loadedLibraries);
+ LoadedLibraries processLoadedLibraries(LoadedLibraries loadedLibraries) {
+ test('Compiler.processLoadedLibraries');
+ return super.processLoadedLibraries(loadedLibraries);
}
test(String marker) {
@@ -296,8 +291,7 @@ void main() {
final tests = {
'Compiler': beforeRun,
'Compiler.run': beforeRun,
- 'Compiler.onLibraryScanned': beforeRun,
- 'Compiler.onLibrariesLoaded': beforeRun,
+ 'Compiler.processLoadedLibraries': beforeRun,
'ScannerTask.scanElements': duringRun,
'Compiler.withCurrentElement': duringRun,
'Compiler.analyzeElement': duringRun,

Powered by Google App Engine
This is Rietveld 408576698