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

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

Issue 10916034: Rename "repo" source to "hosted". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/tests/pub/pub_update_repo_test.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/test_pub.dart
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart
index afc80010a8d9647c8592e1cc08f0a0bb391cf1cc..6fbee3042af1a98159cd708834f84d8c76837ba9 100644
--- a/utils/tests/pub/test_pub.dart
+++ b/utils/tests/pub/test_pub.dart
@@ -19,8 +19,8 @@
#import('../../../pkg/unittest/unittest.dart');
#import('../../lib/file_system.dart', prefix: 'fs');
#import('../../pub/git_source.dart');
+#import('../../pub/hosted_source.dart');
#import('../../pub/io.dart');
-#import('../../pub/repo_source.dart');
#import('../../pub/sdk_source.dart');
#import('../../pub/utils.dart');
#import('../../pub/yaml/yaml.dart');
@@ -265,7 +265,7 @@ Map package(String name, String version, [List dependencies]) {
*/
Map dependency(String name, [String versionConstraint]) {
var url = port.transform((p) => "http://localhost:$p");
- var dependency = {"repo": {"name": name, "url": url}};
+ var dependency = {"hosted": {"name": name, "url": url}};
if (versionConstraint != null) dependency["version"] = versionConstraint;
return dependency;
}
@@ -338,7 +338,7 @@ DirectoryDescriptor cacheDir(Map packages) {
}
});
return dir(cachePath, [
- dir('repo', [
+ dir('hosted', [
async(port.transform((p) => dir('localhost%58$p', contents)))
])
]);
@@ -366,8 +366,8 @@ Future<Map> _dependencyListToMap(List<Map> dependencies) {
case "git":
source = new GitSource();
break;
- case "repo":
- source = new RepoSource();
+ case "hosted":
+ source = new HostedSource();
break;
case "sdk":
source = new SdkSource('');
@@ -379,7 +379,7 @@ Future<Map> _dependencyListToMap(List<Map> dependencies) {
result[source.packageName(dependency[sourceName])] = dependency;
}
return result;
- });
+ });
}
/**
« no previous file with comments | « utils/tests/pub/pub_update_repo_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698