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

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

Issue 2814453005: Merge CommonElements and BackendHelpers! (Closed)
Patch Set: comments and re-merge, take two Created 3 years, 8 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
« no previous file with comments | « tests/compiler/dart2js/minimal_resolution_test.dart ('k') | tests/compiler/dart2js/resolution_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/mock_compiler.dart
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
index c80a3cb95eae6cbf7f0ae5900381793446767d8c..f38f38956a7dfc4260ab44a424a16c28234657a0 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -18,8 +18,7 @@ import 'package:compiler/src/diagnostics/spannable.dart';
import 'package:compiler/src/elements/elements.dart';
import 'package:compiler/src/elements/visitor.dart';
import 'package:compiler/src/library_loader.dart' show LoadedLibraries;
-import 'package:compiler/src/js_backend/backend_helpers.dart'
- show BackendHelpers;
+import 'package:compiler/src/js_backend/backend.dart' show JavaScriptBackend;
import 'package:compiler/src/js_backend/lookup_map_analysis.dart'
show LookupMapResolutionAnalysis;
import 'package:compiler/src/io/source_file.dart';
@@ -115,16 +114,16 @@ class MockCompiler extends Compiler {
Uris.dart_core, buildLibrarySource(DEFAULT_CORE_LIBRARY, coreSource));
registerSource(PATCH_CORE, DEFAULT_PATCH_CORE_SOURCE);
- registerSource(BackendHelpers.DART_JS_HELPER,
- buildLibrarySource(DEFAULT_JS_HELPER_LIBRARY));
- registerSource(BackendHelpers.DART_FOREIGN_HELPER,
+ registerSource(
+ Uris.dart__js_helper, buildLibrarySource(DEFAULT_JS_HELPER_LIBRARY));
+ registerSource(Uris.dart__foreign_helper,
buildLibrarySource(DEFAULT_FOREIGN_HELPER_LIBRARY));
- registerSource(BackendHelpers.DART_INTERCEPTORS,
+ registerSource(Uris.dart__interceptors,
buildLibrarySource(DEFAULT_INTERCEPTORS_LIBRARY));
- registerSource(BackendHelpers.DART_ISOLATE_HELPER,
+ registerSource(Uris.dart__isolate_helper,
buildLibrarySource(DEFAULT_ISOLATE_HELPER_LIBRARY));
registerSource(Uris.dart_mirrors, DEFAULT_MIRRORS_SOURCE);
- registerSource(BackendHelpers.DART_JS_MIRRORS, DEFAULT_JS_MIRRORS_SOURCE);
+ registerSource(Uris.dart__js_mirrors, DEFAULT_JS_MIRRORS_SOURCE);
Map<String, String> asyncLibrarySource = <String, String>{};
asyncLibrarySource.addAll(DEFAULT_ASYNC_LIBRARY);
« no previous file with comments | « tests/compiler/dart2js/minimal_resolution_test.dart ('k') | tests/compiler/dart2js/resolution_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698