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

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

Issue 23886004: Update dart:io tests to use asyncStart/asyncEnd (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 years, 3 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_pid_test.dart
diff --git a/tests/standalone/io/process_pid_test.dart b/tests/standalone/io/process_pid_test.dart
index 0016058a216c0735eae43b72136d792c70784605..b29c7f560e0479a05c1461340e5325a0d1141495 100644
--- a/tests/standalone/io/process_pid_test.dart
+++ b/tests/standalone/io/process_pid_test.dart
@@ -4,13 +4,14 @@
//
// Process test program to test process communication.
-import "package:expect/expect.dart";
import "dart:async";
import "dart:io";
-import "dart:isolate";
+
+import "package:async_helper/async_helper.dart";
+import "package:expect/expect.dart";
main() {
- var port = new ReceivePort();
+ asyncStart();
Expect.isTrue(pid > 0);
var futures = [];
futures.add(Process.start(Platform.executable,['--version']));
@@ -21,7 +22,7 @@ main() {
Expect.equals(0, results[1].exitCode);
results[0].exitCode.then((exitCode) {
Expect.equals(0, exitCode);
- port.close();
+ asyncEnd();
});
});
}
« no previous file with comments | « tests/standalone/io/process_non_ascii_test.dart ('k') | tests/standalone/io/raw_secure_server_closing_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698