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

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

Issue 1309743006: Move common URIs to common/names.dart (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 | « pkg/compiler/lib/src/library_loader.dart ('k') | no next file » | 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 3f33c7e9d497e0ae58e9a006c170e91d950ebafb..2a9a39fa6a0eb86fed6b6c4ba61bb75c2560a63c 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -9,6 +9,8 @@ import 'dart:async';
import 'dart:collection';
import 'package:compiler/compiler.dart' as api;
+import 'package:compiler/src/common/names.dart' show
+ Uris;
import 'package:compiler/src/constants/expressions.dart';
import 'package:compiler/src/diagnostics/messages.dart';
import 'package:compiler/src/diagnostics/source_span.dart';
@@ -110,7 +112,7 @@ class MockCompiler extends Compiler {
clearMessages();
- registerSource(Compiler.DART_CORE,
+ registerSource(Uris.dart_core,
buildLibrarySource(DEFAULT_CORE_LIBRARY, coreSource));
registerSource(PATCH_CORE, DEFAULT_PATCH_CORE_SOURCE);
@@ -122,7 +124,7 @@ class MockCompiler extends Compiler {
buildLibrarySource(DEFAULT_INTERCEPTORS_LIBRARY));
registerSource(JavaScriptBackend.DART_ISOLATE_HELPER,
buildLibrarySource(DEFAULT_ISOLATE_HELPER_LIBRARY));
- registerSource(Compiler.DART_MIRRORS,
+ registerSource(Uris.dart_mirrors,
buildLibrarySource(DEFAULT_MIRRORS_LIBRARY));
Map<String, String> asyncLibrarySource = <String, String>{};
@@ -130,7 +132,7 @@ class MockCompiler extends Compiler {
if (enableAsyncAwait) {
asyncLibrarySource.addAll(ASYNC_AWAIT_LIBRARY);
}
- registerSource(Compiler.DART_ASYNC,
+ registerSource(Uris.dart_async,
buildLibrarySource(asyncLibrarySource));
}
« no previous file with comments | « pkg/compiler/lib/src/library_loader.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698