Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: pkg/analyzer/test/generated/package_test.dart

Issue 2298913003: Pull in test_reflective_loader 0.0.4 and switch analyzer to it. (Closed)
Patch Set: Fixes for review comments. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/file_system/memory_file_system.dart'; 8 import 'package:analyzer/file_system/memory_file_system.dart';
9 import 'package:analyzer/src/generated/engine.dart'; 9 import 'package:analyzer/src/generated/engine.dart';
10 import 'package:analyzer/src/generated/package.dart'; 10 import 'package:analyzer/src/generated/package.dart';
11 import 'package:analyzer/src/generated/sdk.dart'; 11 import 'package:analyzer/src/generated/sdk.dart';
12 import 'package:analyzer/src/generated/source.dart'; 12 import 'package:analyzer/src/generated/source.dart';
13 import 'package:package_config/packages.dart'; 13 import 'package:package_config/packages.dart';
14 import 'package:test_reflective_loader/test_reflective_loader.dart';
14 import 'package:unittest/unittest.dart'; 15 import 'package:unittest/unittest.dart';
15 16
16 import '../reflective_tests.dart';
17 import '../src/context/mock_sdk.dart'; 17 import '../src/context/mock_sdk.dart';
18 import '../utils.dart'; 18 import '../utils.dart';
19 import 'resolver_test_case.dart'; 19 import 'resolver_test_case.dart';
20 20
21 main() { 21 main() {
22 initializeTestEnvironment(); 22 initializeTestEnvironment();
23 runReflectiveTests(DependencyFinderTest); 23 defineReflectiveTests(DependencyFinderTest);
24 runReflectiveTests(PackageDescriptionTest); 24 defineReflectiveTests(PackageDescriptionTest);
25 runReflectiveTests(PackageManagerTest); 25 defineReflectiveTests(PackageManagerTest);
26 } 26 }
27 27
28 /** 28 /**
29 * The name of the pubspec.yaml file. 29 * The name of the pubspec.yaml file.
30 */ 30 */
31 const String pubspecName = 'pubspec.yaml'; 31 const String pubspecName = 'pubspec.yaml';
32 32
33 @reflectiveTest 33 @reflectiveTest
34 class DependencyFinderTest extends ResolverTestCase { 34 class DependencyFinderTest extends ResolverTestCase {
35 /** 35 /**
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 285
286 @override 286 @override
287 Map<String, Uri> asMap() => map; 287 Map<String, Uri> asMap() => map;
288 288
289 @override 289 @override
290 Uri resolve(Uri packageUri, {Uri notFound(Uri packageUri)}) { 290 Uri resolve(Uri packageUri, {Uri notFound(Uri packageUri)}) {
291 fail('Unexpected invocation of resolve'); 291 fail('Unexpected invocation of resolve');
292 return null; 292 return null;
293 } 293 }
294 } 294 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698