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

Side by Side Diff: utils/tests/pub/version_solver_test.dart

Issue 11301046: Restructure pkg/unittest and pkg/webdriver to follow the pub conventions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « utils/tests/pub/update/pub_update_test.dart ('k') | utils/tests/pub/version_test.dart » ('j') | 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_update_test; 5 library pub_update_test;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 import 'dart:isolate'; 8 import 'dart:isolate';
9 9
10 import '../../pub/lock_file.dart'; 10 import '../../pub/lock_file.dart';
11 import '../../pub/package.dart'; 11 import '../../pub/package.dart';
12 import '../../pub/pubspec.dart'; 12 import '../../pub/pubspec.dart';
13 import '../../pub/root_source.dart'; 13 import '../../pub/root_source.dart';
14 import '../../pub/source.dart'; 14 import '../../pub/source.dart';
15 import '../../pub/source_registry.dart'; 15 import '../../pub/source_registry.dart';
16 import '../../pub/utils.dart'; 16 import '../../pub/utils.dart';
17 import '../../pub/version.dart'; 17 import '../../pub/version.dart';
18 import '../../pub/version_solver.dart'; 18 import '../../pub/version_solver.dart';
19 import '../../../pkg/unittest/unittest.dart'; 19 import '../../../pkg/unittest/lib/unittest.dart';
20 20
21 final noVersion = 'no version'; 21 final noVersion = 'no version';
22 final disjointConstraint = 'disjoint'; 22 final disjointConstraint = 'disjoint';
23 final sourceMismatch = 'source mismatch'; 23 final sourceMismatch = 'source mismatch';
24 final descriptionMismatch = 'description mismatch'; 24 final descriptionMismatch = 'description mismatch';
25 final couldNotSolve = 'unsolved'; 25 final couldNotSolve = 'unsolved';
26 26
27 Source source1; 27 Source source1;
28 Source source2; 28 Source source2;
29 Source versionlessSource; 29 Source versionlessSource;
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 var match = new RegExp(r"(.*) from (.*)").firstMatch(name); 538 var match = new RegExp(r"(.*) from (.*)").firstMatch(name);
539 if (match == null) return new Pair<String, Source>(name, source1); 539 if (match == null) return new Pair<String, Source>(name, source1);
540 switch (match[2]) { 540 switch (match[2]) {
541 case 'mock1': return new Pair<String, Source>(match[1], source1); 541 case 'mock1': return new Pair<String, Source>(match[1], source1);
542 case 'mock2': return new Pair<String, Source>(match[1], source2); 542 case 'mock2': return new Pair<String, Source>(match[1], source2);
543 case 'root': return new Pair<String, Source>(match[1], rootSource); 543 case 'root': return new Pair<String, Source>(match[1], rootSource);
544 case 'versionless': 544 case 'versionless':
545 return new Pair<String, Source>(match[1], versionlessSource); 545 return new Pair<String, Source>(match[1], versionlessSource);
546 } 546 }
547 } 547 }
OLDNEW
« no previous file with comments | « utils/tests/pub/update/pub_update_test.dart ('k') | utils/tests/pub/version_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698