| 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'; |
| 11 import 'package:analyzer/src/generated/source.dart'; | 11 import 'package:analyzer/src/generated/source.dart'; |
| 12 import 'package:path/path.dart'; | |
| 13 | 12 |
| 14 | 13 |
| 15 class MockSdk implements DartSdk { | 14 class MockSdk implements DartSdk { |
| 16 static const _MockSdkLibrary LIB_CORE = | 15 static const _MockSdkLibrary LIB_CORE = |
| 17 const _MockSdkLibrary('core', '/lib/core/core.dart', ''' | 16 const _MockSdkLibrary('core', '/lib/core/core.dart', ''' |
| 18 library dart.core; | 17 library dart.core; |
| 19 | 18 |
| 20 class Object { | 19 class Object { |
| 21 bool operator ==(other) => identical(this, other); | 20 bool operator ==(other) => identical(this, other); |
| 22 } | 21 } |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 bool get isInternal => throw unimplemented; | 211 bool get isInternal => throw unimplemented; |
| 213 | 212 |
| 214 @override | 213 @override |
| 215 bool get isShared => throw unimplemented; | 214 bool get isShared => throw unimplemented; |
| 216 | 215 |
| 217 @override | 216 @override |
| 218 bool get isVmLibrary => throw unimplemented; | 217 bool get isVmLibrary => throw unimplemented; |
| 219 | 218 |
| 220 UnimplementedError get unimplemented => new UnimplementedError(); | 219 UnimplementedError get unimplemented => new UnimplementedError(); |
| 221 } | 220 } |
| OLD | NEW |