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

Unified Diff: tests/standalone/io/process_stderr_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/process_stderr_test.dart
diff --git a/tests/standalone/io/process_stderr_test.dart b/tests/standalone/io/process_stderr_test.dart
index 47a030b49dc098de6b3e2a47310250282c0a1410..b44df04a07a5a18baaeaf2f7c5c525a4ff523b03 100644
--- a/tests/standalone/io/process_stderr_test.dart
+++ b/tests/standalone/io/process_stderr_test.dart
@@ -12,7 +12,7 @@
#import("dart:io");
#source("process_test_util.dart");
-void test(Process process, int expectedExitCode) {
+void test(InteractiveProcess process, int expectedExitCode) {
// Wait for the process to start and then interact with it.
process.onStart = () {
List<int> data = "ABCDEFGHI\n".charCodes();
@@ -57,8 +57,8 @@ void test(Process process, int expectedExitCode) {
main() {
// Run the test using the process_test binary.
- test(new Process.start(getProcessTestFileName(),
- const ["1", "1", "99", "0"]), 99);
+ test(Process.start(getProcessTestFileName(),
+ const ["1", "1", "99", "0"]), 99);
// Run the test using the dart binary with an echo script.
// The test runner can be run from either the root or from runtime.
@@ -67,5 +67,5 @@ main() {
scriptFile = new File("../tests/standalone/io/process_std_io_script.dart");
}
Expect.isTrue(scriptFile.existsSync());
- test(new Process.start(new Options().executable, [scriptFile.name, "1"]), 0);
+ test(Process.start(new Options().executable, [scriptFile.name, "1"]), 0);
}

Powered by Google App Engine
This is Rietveld 408576698