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

Side by Side Diff: pkg/analyzer/test/src/summary/pub_summary_test.dart

Issue 2391423003: Switch 'analyzer' to 'package:test' and test_reflective_loader ^0.1.0. (Closed)
Patch Set: Created 4 years, 2 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/test.dart';
14 import 'package:test_reflective_loader/test_reflective_loader.dart'; 15 import 'package:test_reflective_loader/test_reflective_loader.dart';
15 import 'package:unittest/unittest.dart' hide ERROR;
16 16
17 import '../../utils.dart';
18 import '../context/abstract_context.dart'; 17 import '../context/abstract_context.dart';
19 import '../context/mock_sdk.dart'; 18 import '../context/mock_sdk.dart';
20 19
21 main() { 20 main() {
22 initializeTestEnvironment(); 21 defineReflectiveSuite(() {
23 defineReflectiveTests(PubSummaryManagerTest); 22 defineReflectiveTests(PubSummaryManagerTest);
23 });
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 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1359 } 1359 }
1360 } 1360 }
1361 1361
1362 static PackageBundle _getBundleByPackageName( 1362 static PackageBundle _getBundleByPackageName(
1363 Map<PubPackage, PackageBundle> bundles, String name) { 1363 Map<PubPackage, PackageBundle> bundles, String name) {
1364 PubPackage package = 1364 PubPackage package =
1365 bundles.keys.singleWhere((package) => package.name == name); 1365 bundles.keys.singleWhere((package) => package.name == name);
1366 return bundles[package]; 1366 return bundles[package];
1367 } 1367 }
1368 } 1368 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698