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

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

Issue 14640008: Change the signature for all network bind calls. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments by whesse@ Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/standalone/io/socket_test.dart ('k') | tests/standalone/io/testing_server.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 "package:expect/expect.dart"; 10 import "package:expect/expect.dart";
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 }); 202 });
203 }); 203 });
204 } 204 }
205 }); 205 });
206 206
207 connectClient(server.port).then(runClient).then((socket) { 207 connectClient(server.port).then(runClient).then((socket) {
208 port.close(); 208 port.close();
209 }); 209 });
210 } 210 }
211 211
212 ServerSocket.bind(HOST_NAME, 0, 5).then(serverReady); 212 ServerSocket.bind(HOST_NAME, 0).then(serverReady);
213 } 213 }
214 214
215 main() { 215 main() {
216 Path scriptDir = new Path(new Options().script).directoryPath; 216 Path scriptDir = new Path(new Options().script).directoryPath;
217 Path certificateDatabase = scriptDir.append('pkcert'); 217 Path certificateDatabase = scriptDir.append('pkcert');
218 SecureSocket.initialize(database: certificateDatabase.toNativePath(), 218 SecureSocket.initialize(database: certificateDatabase.toNativePath(),
219 password: 'dartdart', 219 password: 'dartdart',
220 useBuiltinRoots: false); 220 useBuiltinRoots: false);
221 test(false, false); 221 test(false, false);
222 test(true, false); 222 test(true, false);
223 test(false, true); 223 test(false, true);
224 test(true, true); 224 test(true, true);
225 test(false, true, true); 225 test(false, true, true);
226 test(true, true, true); 226 test(true, true, true);
227 } 227 }
OLDNEW
« no previous file with comments | « tests/standalone/io/socket_test.dart ('k') | tests/standalone/io/testing_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698