Chromium Code Reviews

Side by Side Diff: test/version_solver_test.dart

Issue 1153643002: Use "package:" imports for pub. (Closed) Base URL: git@github.com:dart-lang/pub_test@master
Patch Set: Code review changes Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « test/validator/utf8_readme_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_upgrade_test; 5 library pub_upgrade_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:pub/src/lock_file.dart';
10 import 'package:pub/src/log.dart' as log;
11 import 'package:pub/src/package.dart';
12 import 'package:pub/src/pubspec.dart';
13 import 'package:pub/src/sdk.dart' as sdk;
14 import 'package:pub/src/solver/version_solver.dart';
15 import 'package:pub/src/source/cached.dart';
16 import 'package:pub/src/system_cache.dart';
17 import 'package:pub/src/utils.dart';
9 import 'package:pub_semver/pub_semver.dart'; 18 import 'package:pub_semver/pub_semver.dart';
10 import 'package:unittest/unittest.dart'; 19 import 'package:unittest/unittest.dart';
11 20
12 import '../lib/src/lock_file.dart';
13 import '../lib/src/log.dart' as log;
14 import '../lib/src/package.dart';
15 import '../lib/src/pubspec.dart';
16 import '../lib/src/sdk.dart' as sdk;
17 import '../lib/src/source/cached.dart';
18 import '../lib/src/system_cache.dart';
19 import '../lib/src/utils.dart';
20 import '../lib/src/solver/version_solver.dart';
21 import 'test_pub.dart'; 21 import 'test_pub.dart';
22 22
23 MockSource source1; 23 MockSource source1;
24 MockSource source2; 24 MockSource source2;
25 25
26 main() { 26 main() {
27 initConfig(); 27 initConfig();
28 28
29 // Uncomment this to debug failing tests. 29 // Uncomment this to debug failing tests.
30 // log.verbosity = log.Verbosity.SOLVER; 30 // log.verbosity = log.Verbosity.SOLVER;
(...skipping 1502 matching lines...)
1533 } 1533 }
1534 1534
1535 var source = "mock1"; 1535 var source = "mock1";
1536 if (match[7] != null) { 1536 if (match[7] != null) {
1537 source = match[7]; 1537 source = match[7];
1538 if (source == "root") source = null; 1538 if (source == "root") source = null;
1539 } 1539 }
1540 1540
1541 return new PackageId(name, source, parsedVersion, description); 1541 return new PackageId(name, source, parsedVersion, description);
1542 } 1542 }
OLDNEW
« no previous file with comments | « test/validator/utf8_readme_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine