| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 class Stream<T> {} | 79 class Stream<T> {} |
| 80 '''); | 80 '''); |
| 81 | 81 |
| 82 static const _MockSdkLibrary LIB_MATH = | 82 static const _MockSdkLibrary LIB_MATH = |
| 83 const _MockSdkLibrary('math', '/lib/math/math.dart', ''' | 83 const _MockSdkLibrary('math', '/lib/math/math.dart', ''' |
| 84 library dart.math; | 84 library dart.math; |
| 85 const double E = 2.718281828459045; | 85 const double E = 2.718281828459045; |
| 86 const double PI = 3.1415926535897932; | 86 const double PI = 3.1415926535897932; |
| 87 num min(num a, num b) => 0; | 87 num min(num a, num b) => 0; |
| 88 num max(num a, num b) => 0; | 88 num max(num a, num b) => 0; |
| 89 class Random {} |
| 89 '''); | 90 '''); |
| 90 | 91 |
| 91 static const _MockSdkLibrary LIB_HTML = | 92 static const _MockSdkLibrary LIB_HTML = |
| 92 const _MockSdkLibrary('html', '/lib/html/dartium/html_dartium.dart', ''' | 93 const _MockSdkLibrary('html', '/lib/html/dartium/html_dartium.dart', ''' |
| 93 library dart.html; | 94 library dart.html; |
| 94 class HtmlElement {} | 95 class HtmlElement {} |
| 95 '''); | 96 '''); |
| 96 | 97 |
| 97 static const List<SdkLibrary> LIBRARIES = const [ | 98 static const List<SdkLibrary> LIBRARIES = const [ |
| 98 LIB_CORE, | 99 LIB_CORE, |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 bool get isInternal => throw unimplemented; | 212 bool get isInternal => throw unimplemented; |
| 212 | 213 |
| 213 @override | 214 @override |
| 214 bool get isShared => throw unimplemented; | 215 bool get isShared => throw unimplemented; |
| 215 | 216 |
| 216 @override | 217 @override |
| 217 bool get isVmLibrary => throw unimplemented; | 218 bool get isVmLibrary => throw unimplemented; |
| 218 | 219 |
| 219 UnimplementedError get unimplemented => new UnimplementedError(); | 220 UnimplementedError get unimplemented => new UnimplementedError(); |
| 220 } | 221 } |
| OLD | NEW |