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

Unified Diff: tests/standalone/src/io/StreamPipeTest.dart

Issue 9652001: SendPort + ReceivePort changes: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 | « tests/standalone/src/io/FileTest.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/io/StreamPipeTest.dart
diff --git a/tests/standalone/src/io/StreamPipeTest.dart b/tests/standalone/src/io/StreamPipeTest.dart
index bf332b2b8e4db63cde58969175ed87cd4b7cce88..221a656bce6f53753646718f919e2e75133c562f 100644
--- a/tests/standalone/src/io/StreamPipeTest.dart
+++ b/tests/standalone/src/io/StreamPipeTest.dart
@@ -163,8 +163,8 @@ class PipeServer extends TestingServer {
testFileToFilePipe1() {
// Force test to timeout if one of the handlers is
// not called.
- ReceivePort donePort = new ReceivePort.singleShot();
- donePort.receive((message, ignore) {});
+ ReceivePort donePort = new ReceivePort();
+ donePort.receive((message, ignore) { donePort.close(); });
String srcFileName =
getDataFilename("tests/standalone/src/io/readline_test1.dat");
@@ -193,8 +193,8 @@ testFileToFilePipe1() {
testFileToFilePipe2() {
// Force test to timeout if one of the handlers is
// not called.
- ReceivePort donePort = new ReceivePort.singleShot();
- donePort.receive((message, ignore) {});
+ ReceivePort donePort = new ReceivePort();
+ donePort.receive((message, ignore) { donePort.close(); });
String srcFileName =
getDataFilename("tests/standalone/src/io/readline_test1.dat");
@@ -240,8 +240,8 @@ testFileToFilePipe2() {
testFileToFilePipe3() {
// Force test to timeout if one of the handlers is
// not called.
- ReceivePort donePort = new ReceivePort.singleShot();
- donePort.receive((message, ignore) {});
+ ReceivePort donePort = new ReceivePort();
+ donePort.receive((message, ignore) { donePort.close(); });
String srcFileName =
getDataFilename("tests/standalone/src/io/readline_test1.dat");
« no previous file with comments | « tests/standalone/src/io/FileTest.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698