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

Unified Diff: sdk/lib/_internal/pub/test/get/hosted/unlock_if_incompatible_test.dart

Issue 488323002: Make servePackages's contents argument saner. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 6 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
Index: sdk/lib/_internal/pub/test/get/hosted/unlock_if_incompatible_test.dart
diff --git a/sdk/lib/_internal/pub/test/get/hosted/unlock_if_incompatible_test.dart b/sdk/lib/_internal/pub/test/get/hosted/unlock_if_incompatible_test.dart
index 4621703ce71d3cc91b72be0523209edd0e262bbf..77eeca6023a6fa7862e45ff46d212ef373751f5b 100644
--- a/sdk/lib/_internal/pub/test/get/hosted/unlock_if_incompatible_test.dart
+++ b/sdk/lib/_internal/pub/test/get/hosted/unlock_if_incompatible_test.dart
@@ -11,14 +11,14 @@ main() {
initConfig();
integration('upgrades a locked pub server package with a new incompatible '
'constraint', () {
- servePackages([packageMap("foo", "1.0.0")]);
+ servePackages((builder) => builder.serve("foo", "1.0.0"));
d.appDir({"foo": "any"}).create();
pubGet();
d.packagesDir({"foo": "1.0.0"}).validate();
- servePackages([packageMap("foo", "1.0.1")]);
+ servePackages((builder) => builder.serve("foo", "1.0.1"));
d.appDir({"foo": ">1.0.0"}).create();
pubGet();

Powered by Google App Engine
This is Rietveld 408576698