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

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

Issue 1413213004: Move remaining helpers to BackendHelpers (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 287e734278b7e75450bd8c0223ef13e5af3ce6ad..b55804f7d8b9f09995fb22a1dd69aca8876439d4 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -17,8 +17,10 @@ import 'package:compiler/src/diagnostics/messages.dart';
import 'package:compiler/src/diagnostics/source_span.dart';
import 'package:compiler/src/diagnostics/spannable.dart';
import 'package:compiler/src/elements/elements.dart';
-import 'package:compiler/src/js_backend/js_backend.dart'
- show JavaScriptBackend;
+import 'package:compiler/src/js_backend/backend_helpers.dart'
+ show BackendHelpers;
+import 'package:compiler/src/js_backend/lookup_map_analysis.dart'
+ show LookupMapAnalysis;
import 'package:compiler/src/io/source_file.dart';
import 'package:compiler/src/resolution/members.dart';
import 'package:compiler/src/resolution/registry.dart';
@@ -119,16 +121,16 @@ class MockCompiler extends Compiler {
buildLibrarySource(DEFAULT_CORE_LIBRARY, coreSource));
registerSource(PATCH_CORE, DEFAULT_PATCH_CORE_SOURCE);
- registerSource(JavaScriptBackend.DART_JS_HELPER,
+ registerSource(BackendHelpers.DART_JS_HELPER,
buildLibrarySource(DEFAULT_JS_HELPER_LIBRARY));
- registerSource(JavaScriptBackend.DART_FOREIGN_HELPER,
+ registerSource(BackendHelpers.DART_FOREIGN_HELPER,
buildLibrarySource(DEFAULT_FOREIGN_HELPER_LIBRARY));
- registerSource(JavaScriptBackend.DART_INTERCEPTORS,
+ registerSource(BackendHelpers.DART_INTERCEPTORS,
buildLibrarySource(DEFAULT_INTERCEPTORS_LIBRARY));
- registerSource(JavaScriptBackend.DART_ISOLATE_HELPER,
+ registerSource(BackendHelpers.DART_ISOLATE_HELPER,
buildLibrarySource(DEFAULT_ISOLATE_HELPER_LIBRARY));
registerSource(Uris.dart_mirrors, DEFAULT_MIRRORS_SOURCE);
- registerSource(JavaScriptBackend.DART_JS_MIRRORS,
+ registerSource(BackendHelpers.DART_JS_MIRRORS,
DEFAULT_JS_MIRRORS_SOURCE);
Map<String, String> asyncLibrarySource = <String, String>{};
@@ -138,7 +140,7 @@ class MockCompiler extends Compiler {
}
registerSource(Uris.dart_async,
buildLibrarySource(asyncLibrarySource));
- registerSource(JavaScriptBackend.PACKAGE_LOOKUP_MAP,
+ registerSource(LookupMapAnalysis.PACKAGE_LOOKUP_MAP,
buildLibrarySource(DEFAULT_LOOKUP_MAP_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