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

Unified Diff: pkg/scheduled_test/lib/scheduled_process.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/utils.dart ('k') | pkg/scheduled_test/test/scheduled_process_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/scheduled_test/lib/scheduled_process.dart
diff --git a/pkg/scheduled_test/lib/scheduled_process.dart b/pkg/scheduled_test/lib/scheduled_process.dart
index 27ebc17ef285309637ab0ef3ab498507f81269ab..4768c684fefe3ef83f668fe41e432224ec48a100 100644
--- a/pkg/scheduled_test/lib/scheduled_process.dart
+++ b/pkg/scheduled_test/lib/scheduled_process.dart
@@ -82,7 +82,7 @@ class ScheduledProcess {
/// may be a [List] containing a mix of strings and [Future]s.
ScheduledProcess.start(executable, arguments,
{workingDirectory, environment, String description,
- Encoding encoding: Encoding.UTF_8})
+ Encoding encoding: UTF8})
: _encoding = encoding,
_explicitDescription = description != null,
_description = description {
@@ -152,7 +152,7 @@ class ScheduledProcess {
arguments,
workingDirectory: workingDirectory,
environment: environment).then((process) {
- process.stdin.encoding = Encoding.UTF_8;
+ process.stdin.encoding = UTF8;
return process;
});
});
@@ -203,7 +203,7 @@ class ScheduledProcess {
currentSchedule.heartbeat();
return chunk;
})
- .transform(new StringDecoder(_encoding))
+ .transform(_encoding.decoder)
.transform(new LineSplitter()));
}
« no previous file with comments | « pkg/http_server/test/utils.dart ('k') | pkg/scheduled_test/test/scheduled_process_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698