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

Side by Side Diff: tests/standalone/io/stream_pipe_test.dart

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // 4 //
5 // VMOptions= 5 // VMOptions=
6 // VMOptions=--short_socket_read 6 // VMOptions=--short_socket_read
7 // VMOptions=--short_socket_write 7 // VMOptions=--short_socket_write
8 // VMOptions=--short_socket_read --short_socket_write 8 // VMOptions=--short_socket_read --short_socket_write
9 9
10 #import("dart:io"); 10 #import("dart:io");
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 }; 110 };
111 111
112 socketInput.pipe(fileOutput); 112 socketInput.pipe(fileOutput);
113 }; 113 };
114 114
115 fileInput.pipe(socketOutput); 115 fileInput.pipe(socketOutput);
116 } 116 }
117 117
118 // Connect to the server. 118 // Connect to the server.
119 _socket = new Socket(TestingServer.HOST, _port); 119 _socket = new Socket(TestingServer.HOST, _port);
120 if (_socket !== null) { 120 if (_socket != null) {
121 _socket.onConnect = connectHandler; 121 _socket.onConnect = connectHandler;
122 } else { 122 } else {
123 Expect.fail("socket creation failed"); 123 Expect.fail("socket creation failed");
124 } 124 }
125 } 125 }
126 126
127 void initialize() { 127 void initialize() {
128 _receivePort.receive((var message, SendPort replyTo) { 128 _receivePort.receive((var message, SendPort replyTo) {
129 _port = message; 129 _port = message;
130 runTest(); 130 runTest();
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 srcStream.pipe(dstStream, close: false); 285 srcStream.pipe(dstStream, close: false);
286 } 286 }
287 287
288 288
289 main() { 289 main() {
290 testFileToFilePipe1(); 290 testFileToFilePipe1();
291 testFileToFilePipe2(); 291 testFileToFilePipe2();
292 testFileToFilePipe3(); 292 testFileToFilePipe3();
293 PipeServerGame echoServerGame = new PipeServerGame.start(); 293 PipeServerGame echoServerGame = new PipeServerGame.start();
294 } 294 }
OLDNEW
« 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