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

Unified Diff: pkg/http_server/test/utils.dart

Issue 22872012: Remove Encoding-enum from dart:io and add interface in dart:convert. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typo. Created 7 years, 4 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/http_server/test/http_body_test.dart ('k') | pkg/scheduled_test/lib/scheduled_process.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http_server/test/utils.dart
diff --git a/pkg/http_server/test/utils.dart b/pkg/http_server/test/utils.dart
index 6a46696cff4cbee8dc586181660fed24dc046889..c9e39c7c61bdefb0f2001cea742e6366c2ac0984 100644
--- a/pkg/http_server/test/utils.dart
+++ b/pkg/http_server/test/utils.dart
@@ -5,6 +5,7 @@
library utils;
import 'dart:async';
+import 'dart:convert';
import 'dart:io';
import "package:path/path.dart";
@@ -49,7 +50,7 @@ Future<HttpHeaders> getHeaders(int port, String path) {
Future<String> getAsString(int port, String path) {
return new HttpClient().get('localhost', port, path)
.then((request) => request.close())
- .then((response) => StringDecoder.decode(response));
+ .then((response) => UTF8.decodeStream(response));
}
« no previous file with comments | « pkg/http_server/test/http_body_test.dart ('k') | pkg/scheduled_test/lib/scheduled_process.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698