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

Unified Diff: test/package_server.dart

Issue 1664903003: Properly include the hosted URL in all IDs. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 4 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
« no previous file with comments | « test/get/hosted/get_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/package_server.dart
diff --git a/test/package_server.dart b/test/package_server.dart
index 22aa83c1a927c3ff99c149459f11982e6aab5924..bfe294058736322836a32f117648e39abd7c0c18 100644
--- a/test/package_server.dart
+++ b/test/package_server.dart
@@ -37,7 +37,7 @@ void servePackages(void callback(PackageServerBuilder builder)) {
/// registered.
///
/// This will always replace a previous server.
-void serveNoPackages() => servePackages((_) {}, replace: true);
+void serveNoPackages() => servePackages((_) {});
/// A shortcut for [servePackages] that serves the version of barback used by
/// pub.
@@ -71,6 +71,9 @@ class PackageServer {
/// This is preserved so that additional packages can be added.
var _builder = new PackageServerBuilder._();
+ /// A future that will complete to the port used for the server.
+ Future<int> get port => _inner.port;
+
/// Creates an HTTP server that replicates the structure of pub.dartlang.org.
///
/// Calls [callback] with a [PackageServerBuilder] that's used to specify
« no previous file with comments | « test/get/hosted/get_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698