| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 external bool identical(Object a, Object b); | 68 external bool identical(Object a, Object b); |
| 69 | 69 |
| 70 void print(Object object) {} | 70 void print(Object object) {} |
| 71 | 71 |
| 72 typedef int Comparator<T>(T a, T b); | 72 typedef int Comparator<T>(T a, T b); |
| 73 '''); | 73 '''); |
| 74 | 74 |
| 75 static const _MockSdkLibrary LIB_ASYNC = | 75 static const _MockSdkLibrary LIB_ASYNC = |
| 76 const _MockSdkLibrary('async', '/lib/async/async.dart', ''' | 76 const _MockSdkLibrary('async', '/lib/async/async.dart', ''' |
| 77 library dart.async; | 77 library dart.async; |
| 78 class Future { | 78 class Future<T> { |
| 79 static Future wait(List<Future> futures) => null; | 79 static Future wait(List<Future> futures) => null; |
| 80 } | 80 } |
| 81 | 81 |
| 82 class Stream<T> {} | 82 class Stream<T> {} |
| 83 '''); | 83 '''); |
| 84 | 84 |
| 85 static const _MockSdkLibrary LIB_MATH = | 85 static const _MockSdkLibrary LIB_MATH = |
| 86 const _MockSdkLibrary('math', '/lib/math/math.dart', ''' | 86 const _MockSdkLibrary('math', '/lib/math/math.dart', ''' |
| 87 library dart.math; | 87 library dart.math; |
| 88 const double E = 2.718281828459045; | 88 const double E = 2.718281828459045; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 bool get isInternal => throw unimplemented; | 239 bool get isInternal => throw unimplemented; |
| 240 | 240 |
| 241 @override | 241 @override |
| 242 bool get isShared => throw unimplemented; | 242 bool get isShared => throw unimplemented; |
| 243 | 243 |
| 244 @override | 244 @override |
| 245 bool get isVmLibrary => throw unimplemented; | 245 bool get isVmLibrary => throw unimplemented; |
| 246 | 246 |
| 247 UnimplementedError get unimplemented => new UnimplementedError(); | 247 UnimplementedError get unimplemented => new UnimplementedError(); |
| 248 } | 248 } |
| OLD | NEW |