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

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

Issue 1884793002: dart2js: remove references to compiler in ResolvedUriTranslator (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
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 c5a5fa7a04fa1e66d8ea3bfa705b677aa98c784a..93a039e66f3db5483c74576e592f3f8afc1162c1 100644
--- a/tests/compiler/dart2js/library_resolution_test.dart
+++ b/tests/compiler/dart2js/library_resolution_test.dart
@@ -37,12 +37,6 @@ class CustomCompiler extends CompilerImpl {
new CompilerOptions(
libraryRoot: libraryRoot,
packageRoot: packageRoot));
-
- Uri lookupLibraryUri(String libraryName) {
- if (libraryName == "m_o_c_k_1") return mock1LibraryUri;
- if (libraryName == "m_o_c_k_2") return mock2LibraryUri;
- return super.lookupLibraryUri(libraryName);
- }
}
main() async {
@@ -87,6 +81,9 @@ main() async {
asyncStart();
await compiler.setupSdk();
+ // 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 =
await compiler.libraryLoader.loadLibrary(Uri.parse("dart:m_o_c_k_1"));
await checkLibrary(library);

Powered by Google App Engine
This is Rietveld 408576698