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

Unified Diff: test/package_server.dart

Issue 2172523002: Refactor version_solver_test. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 4 years, 5 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 | « lib/src/solver/backtracking_solver.dart ('k') | test/test_pub.dart » ('j') | 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 bfe294058736322836a32f117648e39abd7c0c18..7561a5ae57192dad66d17186daa0bef985119d1a 100644
--- a/test/package_server.dart
+++ b/test/package_server.dart
@@ -74,6 +74,9 @@ class PackageServer {
/// A future that will complete to the port used for the server.
Future<int> get port => _inner.port;
+ /// A future that will complete to the URL for the server.
+ Future<String> get url async => 'http://localhost:${await 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 | « lib/src/solver/backtracking_solver.dart ('k') | test/test_pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698