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

Unified Diff: utils/tests/pub/curl_client_test.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 | « utils/pub/oauth2.dart ('k') | utils/tests/pub/oauth2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/curl_client_test.dart
diff --git a/utils/tests/pub/curl_client_test.dart b/utils/tests/pub/curl_client_test.dart
index a5f9dea2747d719c462643eb82d0b3d17c53e765..ba57e21937838eb2d7062e02d6c694f7314b2a42 100644
--- a/utils/tests/pub/curl_client_test.dart
+++ b/utils/tests/pub/curl_client_test.dart
@@ -52,10 +52,10 @@ String decodeString(List<int> bytes, Encoding encoding) {
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() {
@@ -70,7 +70,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 | « utils/pub/oauth2.dart ('k') | utils/tests/pub/oauth2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698