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

Unified Diff: utils/tests/pub/version_solver_test.dart

Issue 12047096: Get rid of RootSource. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« utils/pub/package.dart ('K') | « utils/pub/version_solver.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/version_solver_test.dart
diff --git a/utils/tests/pub/version_solver_test.dart b/utils/tests/pub/version_solver_test.dart
index 7b023757267b217bc2fac742bfbd4b7bf8c1b31b..97d7eb6673eade78623ac01e71f3dd9ecd3b177d 100644
--- a/utils/tests/pub/version_solver_test.dart
+++ b/utils/tests/pub/version_solver_test.dart
@@ -10,7 +10,6 @@ import 'dart:io';
import '../../pub/lock_file.dart';
import '../../pub/package.dart';
import '../../pub/pubspec.dart';
-import '../../pub/root_source.dart';
import '../../pub/source.dart';
import '../../pub/source_registry.dart';
import '../../pub/system_cache.dart';
@@ -69,7 +68,6 @@ Matcher sourceMismatch(String package1, String package2) {
MockSource source1;
MockSource source2;
Source versionlessSource;
-Source rootSource;
main() {
testResolve('no dependencies', {
@@ -405,8 +403,6 @@ testResolve(description, packages, {lockfile, result, Matcher error}) {
// doesn't try to look up information about the local package on the
// remote server.
root = package;
- rootSource = new RootSource(root);
- cache.register(rootSource);
} else {
source.addPackage(package);
}
@@ -545,7 +541,7 @@ Pair<String, Source> parseSource(String name) {
switch (match[2]) {
case 'mock1': return new Pair<String, Source>(match[1], source1);
case 'mock2': return new Pair<String, Source>(match[1], source2);
- case 'root': return new Pair<String, Source>(match[1], rootSource);
+ case 'root': return new Pair<String, Source>(match[1], null);
case 'versionless':
return new Pair<String, Source>(match[1], versionlessSource);
}
« utils/pub/package.dart ('K') | « utils/pub/version_solver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698