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 import 'dart:uri'; | 9 import 'dart:uri'; |
10 | 10 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 static var NAN = 0; | 153 static var NAN = 0; |
154 static parse(s) {} | 154 static parse(s) {} |
155 } | 155 } |
156 class bool {} | 156 class bool {} |
157 class String implements Pattern {} | 157 class String implements Pattern {} |
158 class Object { | 158 class Object { |
159 operator ==(other) { return true; } | 159 operator ==(other) { return true; } |
160 String toString() { return null; } | 160 String toString() { return null; } |
161 noSuchMethod(im) { throw im; } | 161 noSuchMethod(im) { throw im; } |
162 } | 162 } |
| 163 abstract class StackTrace {} |
163 class Type {} | 164 class Type {} |
164 class Function {} | 165 class Function {} |
165 class List<E> {} | 166 class List<E> {} |
166 abstract class Map<K,V> {} | 167 abstract class Map<K,V> {} |
167 class DateTime { | 168 class DateTime { |
168 DateTime(year); | 169 DateTime(year); |
169 DateTime.utc(year); | 170 DateTime.utc(year); |
170 } | 171 } |
171 abstract class Pattern {} | 172 abstract class Pattern {} |
172 bool identical(Object a, Object b) { return true; }'''; | 173 bool identical(Object a, Object b) { return true; }'''; |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 } | 424 } |
424 } | 425 } |
425 | 426 |
426 class MockDeferredLoadTask extends DeferredLoadTask { | 427 class MockDeferredLoadTask extends DeferredLoadTask { |
427 MockDeferredLoadTask(Compiler compiler) : super(compiler); | 428 MockDeferredLoadTask(Compiler compiler) : super(compiler); |
428 | 429 |
429 void registerMainApp(LibraryElement mainApp) { | 430 void registerMainApp(LibraryElement mainApp) { |
430 // Do nothing. | 431 // Do nothing. |
431 } | 432 } |
432 } | 433 } |
OLD | NEW |