| Index: dart/tests/compiler/dart2js/mock_compiler.dart
|
| diff --git a/dart/tests/compiler/dart2js/mock_compiler.dart b/dart/tests/compiler/dart2js/mock_compiler.dart
|
| index 39ab91232eb9da882767195b047b918d494137bd..7ddd2e45d82e26ca2a238b6982a3cd7540ee2165 100644
|
| --- a/dart/tests/compiler/dart2js/mock_compiler.dart
|
| +++ b/dart/tests/compiler/dart2js/mock_compiler.dart
|
| @@ -25,6 +25,10 @@ import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart'
|
|
|
| import '../../../sdk/lib/_internal/compiler/implementation/dart_types.dart';
|
|
|
| +import '../../../sdk/lib/_internal/compiler/implementation/deferred_load.dart'
|
| + show DeferredLoadTask;
|
| +
|
| +
|
| class WarningMessage {
|
| Node node;
|
| Message message;
|
| @@ -167,6 +171,8 @@ class MockCompiler extends Compiler {
|
| // Our unit tests check code generation output that is affected by
|
| // inlining support.
|
| disableInlining = true;
|
| +
|
| + deferredLoadTask = new MockDeferredLoadTask(this);
|
| }
|
|
|
| /**
|
| @@ -342,3 +348,11 @@ class CollectingTreeElements extends TreeElementMapping {
|
| map.remove(node);
|
| }
|
| }
|
| +
|
| +class MockDeferredLoadTask extends DeferredLoadTask {
|
| + MockDeferredLoadTask(Compiler compiler) : super(compiler);
|
| +
|
| + void registerMainApp(LibraryElement mainApp) {
|
| + // Do nothing.
|
| + }
|
| +}
|
|
|