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

Unified Diff: tests/standalone/debugger/debug_lib.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 | « tests/standalone/coverage_test.dart ('k') | tests/standalone/io/file_error_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/debugger/debug_lib.dart
diff --git a/tests/standalone/debugger/debug_lib.dart b/tests/standalone/debugger/debug_lib.dart
index 7be6854ee083d58516030e5f180af41b396c979d..0377ae9711bb4450985352b555d5299fc32b8c0a 100644
--- a/tests/standalone/debugger/debug_lib.dart
+++ b/tests/standalone/debugger/debug_lib.dart
@@ -393,7 +393,7 @@ class Debugger {
Debugger(this.targetProcess, this.script) {
var stdoutStringStream = targetProcess.stdout
- .transform(new StringDecoder())
+ .transform(UTF8.decoder)
.transform(new LineSplitter());
stdoutStringStream.listen((line) {
print("TARG: $line");
@@ -406,7 +406,7 @@ class Debugger {
});
var stderrStringStream = targetProcess.stderr
- .transform(new StringDecoder())
+ .transform(UTF8.decoder)
.transform(new LineSplitter());
stderrStringStream.listen((line) {
print("TARG: $line");
@@ -542,7 +542,7 @@ class Debugger {
Socket.connect("127.0.0.1", portNumber).then((s) {
s.setOption(SocketOption.TCP_NODELAY, true);
this.socket = s;
- var stringStream = socket.transform(new StringDecoder());
+ var stringStream = socket.transform(UTF8.decoder);
stringStream.listen((str) {
try {
responses.append(str);
« no previous file with comments | « tests/standalone/coverage_test.dart ('k') | tests/standalone/io/file_error_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698