| 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 test.src.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 | 12 |
| 13 class MockSdk implements DartSdk { | 13 class MockSdk implements DartSdk { |
| 14 static const _MockSdkLibrary LIB_CORE = const _MockSdkLibrary('dart:core', | 14 static const _MockSdkLibrary LIB_CORE = const _MockSdkLibrary('dart:core', |
| 15 '/lib/core/core.dart', ''' | 15 '/lib/core/core.dart', ''' |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 bool get isInternal => throw unimplemented; | 301 bool get isInternal => throw unimplemented; |
| 302 | 302 |
| 303 @override | 303 @override |
| 304 bool get isShared => throw unimplemented; | 304 bool get isShared => throw unimplemented; |
| 305 | 305 |
| 306 @override | 306 @override |
| 307 bool get isVmLibrary => throw unimplemented; | 307 bool get isVmLibrary => throw unimplemented; |
| 308 | 308 |
| 309 UnimplementedError get unimplemented => new UnimplementedError(); | 309 UnimplementedError get unimplemented => new UnimplementedError(); |
| 310 } | 310 } |
| OLD | NEW |