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

Unified Diff: sdk/lib/_internal/pub/test/get/hosted/unlock_if_new_is_unsatisfied_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_new_is_unsatisfied_test.dart
diff --git a/sdk/lib/_internal/pub/test/get/hosted/unlock_if_new_is_unsatisfied_test.dart b/sdk/lib/_internal/pub/test/get/hosted/unlock_if_new_is_unsatisfied_test.dart
index d8ceb4256ee9e935ff7256fe394161a721c5d0e1..c3f1793b0a81d30ab81fdf48193f195d72d1170f 100644
--- a/sdk/lib/_internal/pub/test/get/hosted/unlock_if_new_is_unsatisfied_test.dart
+++ b/sdk/lib/_internal/pub/test/get/hosted/unlock_if_new_is_unsatisfied_test.dart
@@ -11,12 +11,12 @@ main() {
initConfig();
integration("unlocks dependencies if necessary to ensure that a new "
"dependency is satisfied", () {
- servePackages([
- packageMap("foo", "1.0.0", {"bar": "<2.0.0"}),
- packageMap("bar", "1.0.0", {"baz": "<2.0.0"}),
- packageMap("baz", "1.0.0", {"qux": "<2.0.0"}),
- packageMap("qux", "1.0.0")
- ]);
+ servePackages((builder) {
+ builder.serve("foo", "1.0.0", deps: {"bar": "<2.0.0"});
+ builder.serve("bar", "1.0.0", deps: {"baz": "<2.0.0"});
+ builder.serve("baz", "1.0.0", deps: {"qux": "<2.0.0"});
+ builder.serve("qux", "1.0.0");
+ });
d.appDir({"foo": "any"}).create();
@@ -29,13 +29,13 @@ main() {
"qux": "1.0.0"
}).validate();
- servePackages([
- packageMap("foo", "2.0.0", {"bar": "<3.0.0"}),
- packageMap("bar", "2.0.0", {"baz": "<3.0.0"}),
- packageMap("baz", "2.0.0", {"qux": "<3.0.0"}),
- packageMap("qux", "2.0.0"),
- packageMap("newdep", "2.0.0", {"baz": ">=1.5.0"})
- ]);
+ servePackages((builder) {
+ builder.serve("foo", "2.0.0", deps: {"bar": "<3.0.0"});
+ builder.serve("bar", "2.0.0", deps: {"baz": "<3.0.0"});
+ builder.serve("baz", "2.0.0", deps: {"qux": "<3.0.0"});
+ builder.serve("qux", "2.0.0");
+ builder.serve("newdep", "2.0.0", deps: {"baz": ">=1.5.0"});
+ });
d.appDir({"foo": "any", "newdep": "any"}).create();

Powered by Google App Engine
This is Rietveld 408576698