Index: sdk/lib/_internal/pub/test/oauth2/with_an_expired_credentials_refreshes_and_saves_test.dart |
diff --git a/sdk/lib/_internal/pub/test/oauth2/with_an_expired_credentials_refreshes_and_saves_test.dart b/sdk/lib/_internal/pub/test/oauth2/with_an_expired_credentials_refreshes_and_saves_test.dart |
index 2155a89a3412b6056a228a654f6962e33655f292..ac6fc55082bd188ca215db394f22386ff257cfbc 100644 |
--- a/sdk/lib/_internal/pub/test/oauth2/with_an_expired_credentials_refreshes_and_saves_test.dart |
+++ b/sdk/lib/_internal/pub/test/oauth2/with_an_expired_credentials_refreshes_and_saves_test.dart |
@@ -2,8 +2,8 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
+import 'dart:convert'; |
import 'dart:io'; |
-import 'dart:json' as json; |
import 'package:scheduled_test/scheduled_test.dart'; |
import 'package:scheduled_test/scheduled_server.dart'; |
@@ -35,7 +35,7 @@ main() { |
request.response.headers.contentType = |
new ContentType("application", "json"); |
- request.response.write(json.stringify({ |
+ request.response.write(JSON.encode({ |
"access_token": "new access token", |
"token_type": "bearer" |
})); |