OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 analyzer.test.generated.package_test; | 5 library analyzer.test.generated.package_test; |
6 | 6 |
7 import 'package:analyzer/file_system/file_system.dart'; | 7 import 'package:analyzer/file_system/file_system.dart'; |
8 import 'package:analyzer/src/generated/engine.dart'; | 8 import 'package:analyzer/src/generated/engine.dart'; |
9 import 'package:analyzer/src/generated/package.dart'; | 9 import 'package:analyzer/src/generated/package.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:package_config/packages.dart'; | 12 import 'package:package_config/packages.dart'; |
13 import 'package:test/test.dart'; | 13 import 'package:test/test.dart'; |
14 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 14 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
15 | 15 |
16 import '../src/context/mock_sdk.dart'; | 16 import '../src/context/mock_sdk.dart'; |
17 import '../utils.dart'; | |
18 import 'resolver_test_case.dart'; | 17 import 'resolver_test_case.dart'; |
19 | 18 |
20 main() { | 19 main() { |
21 initializeTestEnvironment(); | |
22 defineReflectiveSuite(() { | 20 defineReflectiveSuite(() { |
23 defineReflectiveTests(DependencyFinderTest); | 21 defineReflectiveTests(DependencyFinderTest); |
24 defineReflectiveTests(PackageDescriptionTest); | 22 defineReflectiveTests(PackageDescriptionTest); |
25 defineReflectiveTests(PackageManagerTest); | 23 defineReflectiveTests(PackageManagerTest); |
26 }); | 24 }); |
27 } | 25 } |
28 | 26 |
29 /** | 27 /** |
30 * The name of the pubspec.yaml file. | 28 * The name of the pubspec.yaml file. |
31 */ | 29 */ |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 | 264 |
267 @override | 265 @override |
268 Map<String, Uri> asMap() => map; | 266 Map<String, Uri> asMap() => map; |
269 | 267 |
270 @override | 268 @override |
271 Uri resolve(Uri packageUri, {Uri notFound(Uri packageUri)}) { | 269 Uri resolve(Uri packageUri, {Uri notFound(Uri packageUri)}) { |
272 fail('Unexpected invocation of resolve'); | 270 fail('Unexpected invocation of resolve'); |
273 return null; | 271 return null; |
274 } | 272 } |
275 } | 273 } |
OLD | NEW |