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

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

Issue 11574032: Make unit testing of the compiler work with the new isolate helper library. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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
===================================================================
--- tests/compiler/dart2js/mock_compiler.dart (revision 16156)
+++ tests/compiler/dart2js/mock_compiler.dart (working copy)
@@ -89,6 +89,9 @@
class Dynamic_ {}
bool identical(Object a, Object b) {}''';
+const String DEFAULT_ISOLATE_HELPERLIB = r'''
+ class _WorkerBase {}''';
+
class MockCompiler extends Compiler {
List<WarningMessage> warnings;
List<WarningMessage> errors;
@@ -98,6 +101,7 @@
MockCompiler({String coreSource: DEFAULT_CORELIB,
String helperSource: DEFAULT_HELPERLIB,
String interceptorsSource: DEFAULT_INTERCEPTORSLIB,
+ String isolateHelperSource: DEFAULT_ISOLATE_HELPERLIB,
bool enableTypeAssertions: false,
bool enableMinification: false,
bool enableConcreteTypeInference: false,
@@ -117,6 +121,7 @@
assertMethod = jsHelperLibrary.find(buildSourceString('assert'));
interceptorsLibrary = createLibrary("interceptors", interceptorsSource);
+ isolateHelperLibrary = createLibrary("isolate_helper", isolateHelperSource);
mainApp = mockLibrary(this, "");
initializeSpecialClasses();

Powered by Google App Engine
This is Rietveld 408576698