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

Unified Diff: sdk/lib/_internal/pub/test/cache/add/already_cached_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/cache/add/already_cached_test.dart
diff --git a/sdk/lib/_internal/pub/test/cache/add/already_cached_test.dart b/sdk/lib/_internal/pub/test/cache/add/already_cached_test.dart
index ad68f6c7d1a6d65aaad637e3647737b0b8f39074..f6aaa921bf4f2c0acb4a869de79fcd2b3093b002 100644
--- a/sdk/lib/_internal/pub/test/cache/add/already_cached_test.dart
+++ b/sdk/lib/_internal/pub/test/cache/add/already_cached_test.dart
@@ -10,9 +10,9 @@ import '../../test_pub.dart';
main() {
initConfig();
integration('does nothing if the package is already cached', () {
- servePackages([
- packageMap("foo", "1.2.3")
- ]);
+ servePackages((builder) {
+ builder.serve("foo", "1.2.3");
+ });
// Run once to put it in the cache.
schedulePub(args: ["cache", "add", "foo"],

Powered by Google App Engine
This is Rietveld 408576698