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

Unified Diff: pkg/oauth2/test/authorization_code_grant_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 | « pkg/oauth2/lib/src/handle_access_token_response.dart ('k') | pkg/oauth2/test/client_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/oauth2/test/authorization_code_grant_test.dart
diff --git a/pkg/oauth2/test/authorization_code_grant_test.dart b/pkg/oauth2/test/authorization_code_grant_test.dart
index 7614bcd5e83eaaff3dbe8d0e2bf8f8cab99f5e4b..0bc3433a8df044e3e37723adf87a3c590dfd250f 100644
--- a/pkg/oauth2/test/authorization_code_grant_test.dart
+++ b/pkg/oauth2/test/authorization_code_grant_test.dart
@@ -15,7 +15,7 @@ import '../../http/lib/testing.dart';
import '../lib/oauth2.dart' as oauth2;
import 'utils.dart';
-final redirectUrl = new Uri.fromString('http://example.com/redirect');
+final redirectUrl = Uri.parse('http://example.com/redirect');
ExpectClient client;
@@ -26,8 +26,8 @@ void createGrant() {
grant = new oauth2.AuthorizationCodeGrant(
'identifier',
'secret',
- new Uri.fromString('https://example.com/authorization'),
- new Uri.fromString('https://example.com/token'),
+ Uri.parse('https://example.com/authorization'),
+ Uri.parse('https://example.com/token'),
httpClient: client);
}
@@ -75,8 +75,8 @@ void main() {
grant = new oauth2.AuthorizationCodeGrant(
'identifier',
'secret',
- new Uri.fromString('https://example.com/authorization?query=value'),
- new Uri.fromString('https://example.com/token'),
+ Uri.parse('https://example.com/authorization?query=value'),
+ Uri.parse('https://example.com/token'),
httpClient: client);
var authorizationUrl = grant.getAuthorizationUrl(redirectUrl);
« no previous file with comments | « pkg/oauth2/lib/src/handle_access_token_response.dart ('k') | pkg/oauth2/test/client_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698