| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 testing.mock_sdk; | 5 library testing.mock_sdk; |
| 6 | 6 |
| 7 import 'package:analyzer/file_system/file_system.dart' as resource; | 7 import 'package:analyzer/file_system/file_system.dart' as resource; |
| 8 import 'package:analyzer/file_system/memory_file_system.dart' as resource; | 8 import 'package:analyzer/file_system/memory_file_system.dart' as resource; |
| 9 import 'package:analyzer/src/generated/engine.dart'; | 9 import 'package:analyzer/src/generated/engine.dart'; |
| 10 import 'package:analyzer/src/generated/sdk.dart'; | 10 import 'package:analyzer/src/generated/sdk.dart'; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 } | 59 } |
| 60 const Object deprecated = const Deprecated("next release"); | 60 const Object deprecated = const Deprecated("next release"); |
| 61 | 61 |
| 62 abstract class List<E> extends Object { | 62 abstract class List<E> extends Object { |
| 63 void add(E value); | 63 void add(E value); |
| 64 E operator [](int index); | 64 E operator [](int index); |
| 65 void operator []=(int index, E value); | 65 void operator []=(int index, E value); |
| 66 } | 66 } |
| 67 class Map<K, V> extends Object {} | 67 class Map<K, V> extends Object {} |
| 68 | 68 |
| 69 external bool identical(Object a, Object b); |
| 70 |
| 69 void print(Object object) {} | 71 void print(Object object) {} |
| 70 '''); | 72 '''); |
| 71 | 73 |
| 72 static const _MockSdkLibrary LIB_ASYNC = | 74 static const _MockSdkLibrary LIB_ASYNC = |
| 73 const _MockSdkLibrary('dart:async', '/lib/async/async.dart', ''' | 75 const _MockSdkLibrary('dart:async', '/lib/async/async.dart', ''' |
| 74 library dart.async; | 76 library dart.async; |
| 75 class Future { | 77 class Future { |
| 76 static Future wait(List<Future> futures) => null; | 78 static Future wait(List<Future> futures) => null; |
| 77 } | 79 } |
| 78 | 80 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 bool get isInternal => throw unimplemented; | 188 bool get isInternal => throw unimplemented; |
| 187 | 189 |
| 188 @override | 190 @override |
| 189 bool get isShared => throw unimplemented; | 191 bool get isShared => throw unimplemented; |
| 190 | 192 |
| 191 @override | 193 @override |
| 192 bool get isVmLibrary => throw unimplemented; | 194 bool get isVmLibrary => throw unimplemented; |
| 193 | 195 |
| 194 UnimplementedError get unimplemented => new UnimplementedError(); | 196 UnimplementedError get unimplemented => new UnimplementedError(); |
| 195 } | 197 } |
| OLD | NEW |