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

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

Issue 11747010: Process handled exports correctly. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 7 years, 11 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/mock_compiler.dart
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
index 18102295ea8d7de3ada6d0ad68de76ae61eedd7b..b587f5665925171fd94354473d30feff4b67b65e 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -145,6 +145,14 @@ class MockCompiler extends Compiler {
}
/**
+ * Registers the [source] with [uri] making it possible load [source] as a
+ * library.
+ */
+ void registerSource(Uri uri, String source) {
+ sourceFiles[uri.toString()] = new MockFile(source);
+ }
+
+ /**
* Used internally to create a library from a source text. The created library
* is fixed to export its top-level declarations.
*/
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/library_loader.dart ('k') | tests/compiler/dart2js/reexport_handled_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698