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

Unified Diff: pkg/oauth2/test/handle_access_token_response_test.dart

Issue 11412083: Fix OAuth2 tests, and disable them on non-dart:io platforms. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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/test/authorization_code_grant_test.dart ('k') | pkg/pkg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/oauth2/test/handle_access_token_response_test.dart
diff --git a/pkg/oauth2/test/handle_access_token_response_test.dart b/pkg/oauth2/test/handle_access_token_response_test.dart
index d5fed3a1873f3865e89ea7079536f3fd70907a21..4757dc1b16090899f551bd4eae62c0946ae173f8 100644
--- a/pkg/oauth2/test/handle_access_token_response_test.dart
+++ b/pkg/oauth2/test/handle_access_token_response_test.dart
@@ -18,7 +18,7 @@ final Uri tokenEndpoint = new Uri.fromString("https://example.com/token");
final Date startTime = new Date.now();
-Credentials handle(http.Response response) =>
+oauth2.Credentials handle(http.Response response) =>
handleAccessTokenResponse(response, tokenEndpoint, startTime, ["scope"]);
void main() {
@@ -102,11 +102,11 @@ void main() {
group('a success response', () {
oauth2.Credentials handleSuccess(
{String contentType: "application/json",
- String accessToken: 'access token',
- String tokenType: 'bearer',
- String expiresIn,
- String refreshToken,
- String scope}) {
+ accessToken: 'access token',
+ tokenType: 'bearer',
+ expiresIn,
+ refreshToken,
+ scope}) {
return handle(new http.Response(JSON.stringify({
'access_token': accessToken,
'token_type': tokenType,
« no previous file with comments | « pkg/oauth2/test/authorization_code_grant_test.dart ('k') | pkg/pkg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698