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

Unified Diff: utils/tests/pub/test_pub.dart

Issue 11931040: adds file path source to pub (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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: utils/tests/pub/test_pub.dart
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart
index 87053b9a3f1b4ae0e6e09a2e6c44b570b8d27f5b..19c4f224edce497f524f53038fe442a29538a41b 100644
--- a/utils/tests/pub/test_pub.dart
+++ b/utils/tests/pub/test_pub.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -22,6 +22,7 @@ import '../../lib/file_system.dart' as fs;
import '../../pub/entrypoint.dart';
import '../../pub/git_source.dart';
import '../../pub/hosted_source.dart';
+import '../../pub/path_source.dart';
import '../../pub/http.dart';
import '../../pub/io.dart';
import '../../pub/sdk_source.dart';
@@ -378,6 +379,9 @@ Future<Map> _dependencyListToMap(List<Map> dependencies) {
case "sdk":
source = new SdkSource('');
break;
+ case "path":
+ source = new PathSource();
+ break;
default:
throw 'Unknown source "$sourceName"';
}

Powered by Google App Engine
This is Rietveld 408576698