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

Unified Diff: pkg/http/test/utils.dart

Issue 12052038: Rename new Uri.fromString to Uri.parse. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload because of Error. 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
« no previous file with comments | « pkg/http/test/mock_client_test.dart ('k') | pkg/oauth2/lib/oauth2.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/test/utils.dart
diff --git a/pkg/http/test/utils.dart b/pkg/http/test/utils.dart
index 65e59e616e168d5cc4bde49f31628c1e5419a140..5fc267e947cf802566226e4417392294f82ae1ea 100644
--- a/pkg/http/test/utils.dart
+++ b/pkg/http/test/utils.dart
@@ -17,10 +17,10 @@ import 'package:http/src/utils.dart';
HttpServer _server;
/// The URL for the current server instance.
-Uri get serverUrl => new Uri.fromString('http://localhost:${_server.port}');
+Uri get serverUrl => Uri.parse('http://localhost:${_server.port}');
/// A dummy URL for constructing requests that won't be sent.
-Uri get dummyUrl => new Uri.fromString('http://dartlang.org/');
+Uri get dummyUrl => Uri.parse('http://dartlang.org/');
/// Starts a new HTTP server.
void startServer() {
@@ -35,7 +35,7 @@ void startServer() {
_server.addRequestHandler((request) => request.path == '/loop',
(request, response) {
- var n = int.parse(new Uri.fromString(request.uri).query);
+ var n = int.parse(Uri.parse(request.uri).query);
response.statusCode = 302;
response.headers.set('location',
serverUrl.resolve('/loop?${n + 1}').toString());
« no previous file with comments | « pkg/http/test/mock_client_test.dart ('k') | pkg/oauth2/lib/oauth2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698