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

Unified Diff: tests/standalone/io/dart_std_io_pipe_test.dart

Issue 10392023: Change dart:io to use Future for one-shot operations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minor cleanup Created 8 years, 7 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
Index: tests/standalone/io/dart_std_io_pipe_test.dart
diff --git a/tests/standalone/io/dart_std_io_pipe_test.dart b/tests/standalone/io/dart_std_io_pipe_test.dart
index ad218bc188e8c5e4ec55987ef021f9f66bcf412a..ef5b84ffa34a9c08a149afac5043c3170a48e695 100644
--- a/tests/standalone/io/dart_std_io_pipe_test.dart
+++ b/tests/standalone/io/dart_std_io_pipe_test.dart
@@ -31,8 +31,7 @@ void checkFileContent(String fileName, String content) {
void test(String shellScript, String dartScript, String type) {
- Directory dir = new Directory("");
- dir.createTempSync();
+ Directory dir = new Directory("").createTempSync();
// The shell script will run the dart executable passed with a
// number of different redirections of stdio.
@@ -41,7 +40,7 @@ void test(String shellScript, String dartScript, String type) {
String executable = new Options().executable;
List args =
[executable, dartScript, type, pipeOutFile, redirectOutFile];
- Process process = new Process.start(shellScript, args);
+ InteractiveProcess process = Process.start(shellScript, args);
// Wait for the process to exit and then check result.
process.onExit = (exitCode) {

Powered by Google App Engine
This is Rietveld 408576698