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

Side by Side Diff: sdk/lib/_internal/pub/test/version_solver_test.dart

Issue 22941002: Remove unused imports in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 pub_update_test; 5 library pub_update_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io';
9 8
10 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
11 10
12 import '../lib/src/lock_file.dart'; 11 import '../lib/src/lock_file.dart';
13 import '../lib/src/log.dart' as log; 12 import '../lib/src/log.dart' as log;
14 import '../lib/src/package.dart'; 13 import '../lib/src/package.dart';
15 import '../lib/src/pubspec.dart'; 14 import '../lib/src/pubspec.dart';
16 import '../lib/src/sdk.dart' as sdk; 15 import '../lib/src/sdk.dart' as sdk;
17 import '../lib/src/source.dart'; 16 import '../lib/src/source.dart';
18 import '../lib/src/source_registry.dart'; 17 import '../lib/src/source_registry.dart';
19 import '../lib/src/system_cache.dart'; 18 import '../lib/src/system_cache.dart';
20 import '../lib/src/utils.dart';
21 import '../lib/src/version.dart'; 19 import '../lib/src/version.dart';
22 import '../lib/src/solver/version_solver.dart'; 20 import '../lib/src/solver/version_solver.dart';
23 import 'test_pub.dart'; 21 import 'test_pub.dart';
24 22
25 MockSource source1; 23 MockSource source1;
26 MockSource source2; 24 MockSource source2;
27 25
28 main() { 26 main() {
29 initConfig(); 27 initConfig();
30 28
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 var source = "mock1"; 1189 var source = "mock1";
1192 var match = new RegExp(r"(.*) from (.*)").firstMatch(description); 1190 var match = new RegExp(r"(.*) from (.*)").firstMatch(description);
1193 if (match != null) { 1191 if (match != null) {
1194 name = match[1]; 1192 name = match[1];
1195 source = match[2]; 1193 source = match[2];
1196 if (source == "root") source = null; 1194 if (source == "root") source = null;
1197 } 1195 }
1198 1196
1199 callback(isDev, name, source); 1197 callback(isDev, name, source);
1200 } 1198 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/test/validator/size_test.dart ('k') | sdk/lib/_internal/pub/test/version_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698