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

Unified Diff: sdk/lib/_internal/pub/test/descriptor.dart

Issue 136063005: Add a "cache add" command to download packages to the cache. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 6 years, 10 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 | « sdk/lib/_internal/pub/test/cache/list_test.dart ('k') | sdk/lib/_internal/pub/test/pub_cache_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/test/descriptor.dart
diff --git a/sdk/lib/_internal/pub/test/descriptor.dart b/sdk/lib/_internal/pub/test/descriptor.dart
index d873997a89b82b215229d96e8036209f36b7a675..25991baf4e2e3f851d95cde7257e4a7326c2fdbf 100644
--- a/sdk/lib/_internal/pub/test/descriptor.dart
+++ b/sdk/lib/_internal/pub/test/descriptor.dart
@@ -137,6 +137,12 @@ Descriptor cacheDir(Map packages, {bool includePubspecs: false}) {
}
});
+ return hostedCache(contents);
+}
+
+/// Describes the main cache directory containing cached hosted packages
+/// downloaded from the mock package server.
+Descriptor hostedCache(Iterable<Descriptor> contents) {
return dir(cachePath, [
dir('hosted', [
async(port.then((p) => dir('127.0.0.1%58$p', contents)))
« no previous file with comments | « sdk/lib/_internal/pub/test/cache/list_test.dart ('k') | sdk/lib/_internal/pub/test/pub_cache_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698