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

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

Issue 10837070: Remove old isolate API and update all code in the repository to use (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 5 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/io/socket_stream_close_test.dart ('k') | tests/standalone/io/testing_server.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/stream_pipe_test.dart
diff --git a/tests/standalone/io/stream_pipe_test.dart b/tests/standalone/io/stream_pipe_test.dart
index 84dc0d064db2bb27203d2e937af0f677f15ccfb3..6f77e4650c3ae065a8da983b63b5bf39da104b53 100644
--- a/tests/standalone/io/stream_pipe_test.dart
+++ b/tests/standalone/io/stream_pipe_test.dart
@@ -68,10 +68,8 @@ class PipeServerGame {
: _receivePort = new ReceivePort(),
_sendPort = null,
_messages = 0 {
- new PipeServer().spawn().then((SendPort port) {
- _sendPort = port;
- start();
- });
+ _sendPort = spawnFunction(startPipeServer);
+ start();
}
void runTest() {
@@ -147,6 +145,12 @@ class PipeServerGame {
}
+void startPipeServer() {
+ var server = new PipeServer();
+ port.receive(server.dispatch);
+}
+
+
// The testing server will simply pipe each connecting sockets input
// stream to its output stream.
class PipeServer extends TestingServer {
« no previous file with comments | « tests/standalone/io/socket_stream_close_test.dart ('k') | tests/standalone/io/testing_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698