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

Side by Side Diff: pkg/analyzer/test/src/summary/pub_summary_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 import 'package:analyzer/file_system/file_system.dart'; 5 import 'package:analyzer/file_system/file_system.dart';
6 import 'package:analyzer/source/package_map_resolver.dart'; 6 import 'package:analyzer/source/package_map_resolver.dart';
7 import 'package:analyzer/src/generated/source.dart'; 7 import 'package:analyzer/src/generated/source.dart';
8 import 'package:analyzer/src/summary/format.dart'; 8 import 'package:analyzer/src/summary/format.dart';
9 import 'package:analyzer/src/summary/idl.dart'; 9 import 'package:analyzer/src/summary/idl.dart';
10 import 'package:analyzer/src/summary/pub_summary.dart'; 10 import 'package:analyzer/src/summary/pub_summary.dart';
11 import 'package:analyzer/src/summary/summarize_elements.dart'; 11 import 'package:analyzer/src/summary/summarize_elements.dart';
12 import 'package:analyzer/src/util/fast_uri.dart'; 12 import 'package:analyzer/src/util/fast_uri.dart';
13 import 'package:path/path.dart' as pathos; 13 import 'package:path/path.dart' as pathos;
14 import 'package:test_reflective_loader/test_reflective_loader.dart';
14 import 'package:unittest/unittest.dart' hide ERROR; 15 import 'package:unittest/unittest.dart' hide ERROR;
15 16
16 import '../../reflective_tests.dart';
17 import '../../utils.dart'; 17 import '../../utils.dart';
18 import '../context/abstract_context.dart'; 18 import '../context/abstract_context.dart';
19 import '../context/mock_sdk.dart'; 19 import '../context/mock_sdk.dart';
20 20
21 main() { 21 main() {
22 initializeTestEnvironment(); 22 initializeTestEnvironment();
23 runReflectiveTests(PubSummaryManagerTest); 23 defineReflectiveTests(PubSummaryManagerTest);
24 } 24 }
25 25
26 @reflectiveTest 26 @reflectiveTest
27 class PubSummaryManagerTest extends AbstractContextTest { 27 class PubSummaryManagerTest extends AbstractContextTest {
28 static const String CACHE = '/home/.pub-cache/hosted/pub.dartlang.org'; 28 static const String CACHE = '/home/.pub-cache/hosted/pub.dartlang.org';
29 29
30 PubSummaryManager manager; 30 PubSummaryManager manager;
31 31
32 void setUp() { 32 void setUp() {
33 super.setUp(); 33 super.setUp();
(...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 .singleWhere((linkedPackage) => linkedPackage.package.name == name); 1135 .singleWhere((linkedPackage) => linkedPackage.package.name == name);
1136 } 1136 }
1137 1137
1138 static PackageBundle _getBundleByPackageName( 1138 static PackageBundle _getBundleByPackageName(
1139 Map<PubPackage, PackageBundle> bundles, String name) { 1139 Map<PubPackage, PackageBundle> bundles, String name) {
1140 PubPackage package = 1140 PubPackage package =
1141 bundles.keys.singleWhere((package) => package.name == name); 1141 bundles.keys.singleWhere((package) => package.name == name);
1142 return bundles[package]; 1142 return bundles[package];
1143 } 1143 }
1144 } 1144 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698