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

Unified Diff: dart/tools/testing/dart/android.dart

Issue 23568002: Update checked-in binary to 0.6.21.3_r26639 (M6) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | « dart/tools/testing/bin/windows/dart.exe ('k') | dart/tools/testing/dart/browser_controller.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/testing/dart/android.dart
diff --git a/dart/tools/testing/dart/android.dart b/dart/tools/testing/dart/android.dart
index 8f79ab4a063b178282491f77e50da4b6bb96af64..82bdfa9609295557b0a47a54ed77eeea00064650 100644
--- a/dart/tools/testing/dart/android.dart
+++ b/dart/tools/testing/dart/android.dart
@@ -4,9 +4,10 @@
library android;
-import "dart:io";
import "dart:async";
+import "dart:convert" show LineSplitter, UTF8;
import "dart:core";
+import "dart:io";
import "dart:utf";
import "utils.dart";
@@ -35,7 +36,7 @@ Future _executeCommandRaw(String executable,
List<String> args,
[String stdin = ""]) {
Future<String> getOutput(Stream<List<int>> stream) {
- return stream.transform(new StringDecoder()).toList()
+ return stream.transform(UTF8.decoder).toList()
.then((data) => data.join(""));
}
@@ -112,7 +113,7 @@ class AndroidEmulator {
AndroidEmulator._private(this._port, this._adbDevice, this._emulatorProcess) {
Stream<String> getLines(Stream s) {
- return s.transform(new StringDecoder()).transform(new LineTransformer());
+ return s.transform(UTF8.decoder).transform(new LineSplitter());
}
getLines(_emulatorProcess.stdout).listen((line) {
« no previous file with comments | « dart/tools/testing/bin/windows/dart.exe ('k') | dart/tools/testing/dart/browser_controller.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698