| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 void print(Object object) {} | 83 void print(Object object) {} |
| 84 '''); | 84 '''); |
| 85 | 85 |
| 86 static const _MockSdkLibrary LIB_ASYNC = | 86 static const _MockSdkLibrary LIB_ASYNC = |
| 87 const _MockSdkLibrary('dart:async', '/lib/async/async.dart', ''' | 87 const _MockSdkLibrary('dart:async', '/lib/async/async.dart', ''' |
| 88 library dart.async; | 88 library dart.async; |
| 89 | 89 |
| 90 import 'dart:math'; | 90 import 'dart:math'; |
| 91 | 91 |
| 92 class Future { | 92 class Future<T> { |
| 93 static Future wait(List<Future> futures) => null; | 93 static Future wait(List<Future> futures) => null; |
| 94 } | 94 } |
| 95 | 95 |
| 96 class Stream<T> {} | 96 class Stream<T> {} |
| 97 '''); | 97 '''); |
| 98 | 98 |
| 99 static const _MockSdkLibrary LIB_MATH = | 99 static const _MockSdkLibrary LIB_MATH = |
| 100 const _MockSdkLibrary('dart:math', '/lib/math/math.dart', ''' | 100 const _MockSdkLibrary('dart:math', '/lib/math/math.dart', ''' |
| 101 library dart.math; | 101 library dart.math; |
| 102 const double E = 2.718281828459045; | 102 const double E = 2.718281828459045; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 bool get isInternal => throw unimplemented; | 253 bool get isInternal => throw unimplemented; |
| 254 | 254 |
| 255 @override | 255 @override |
| 256 bool get isShared => throw unimplemented; | 256 bool get isShared => throw unimplemented; |
| 257 | 257 |
| 258 @override | 258 @override |
| 259 bool get isVmLibrary => throw unimplemented; | 259 bool get isVmLibrary => throw unimplemented; |
| 260 | 260 |
| 261 UnimplementedError get unimplemented => new UnimplementedError(); | 261 UnimplementedError get unimplemented => new UnimplementedError(); |
| 262 } | 262 } |
| OLD | NEW |