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))) |