| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library mock_compiler; | 5 library mock_compiler; |
| 6 | 6 |
| 7 import "package:expect/expect.dart"; | 7 import "package:expect/expect.dart"; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api; | 10 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 class bool {} | 161 class bool {} |
| 162 class String implements Pattern {} | 162 class String implements Pattern {} |
| 163 class Object { | 163 class Object { |
| 164 operator ==(other) { return true; } | 164 operator ==(other) { return true; } |
| 165 String toString() { return null; } | 165 String toString() { return null; } |
| 166 noSuchMethod(im) { throw im; } | 166 noSuchMethod(im) { throw im; } |
| 167 } | 167 } |
| 168 abstract class StackTrace {} | 168 abstract class StackTrace {} |
| 169 class Type {} | 169 class Type {} |
| 170 class Function {} | 170 class Function {} |
| 171 class List<E> { List([length]); } | 171 class List<E> { |
| 172 List([length]); |
| 173 List.filled(length, element); |
| 174 } |
| 172 abstract class Map<K,V> {} | 175 abstract class Map<K,V> {} |
| 173 class DateTime { | 176 class DateTime { |
| 174 DateTime(year); | 177 DateTime(year); |
| 175 DateTime.utc(year); | 178 DateTime.utc(year); |
| 176 } | 179 } |
| 177 abstract class Pattern {} | 180 abstract class Pattern {} |
| 178 bool identical(Object a, Object b) { return true; }'''; | 181 bool identical(Object a, Object b) { return true; }'''; |
| 179 | 182 |
| 180 const String DEFAULT_ISOLATE_HELPERLIB = r''' | 183 const String DEFAULT_ISOLATE_HELPERLIB = r''' |
| 181 class _WorkerBase {}'''; | 184 class _WorkerBase {}'''; |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 } | 434 } |
| 432 } | 435 } |
| 433 | 436 |
| 434 class MockDeferredLoadTask extends DeferredLoadTask { | 437 class MockDeferredLoadTask extends DeferredLoadTask { |
| 435 MockDeferredLoadTask(Compiler compiler) : super(compiler); | 438 MockDeferredLoadTask(Compiler compiler) : super(compiler); |
| 436 | 439 |
| 437 void registerMainApp(LibraryElement mainApp) { | 440 void registerMainApp(LibraryElement mainApp) { |
| 438 // Do nothing. | 441 // Do nothing. |
| 439 } | 442 } |
| 440 } | 443 } |
| OLD | NEW |