| 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);
|
|
|