| OLD | NEW |
| 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 "dart:async"; | 10 import "dart:async"; |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 | 206 |
| 207 connectClient(server.port).then(runClient).then((socket) { | 207 connectClient(server.port).then(runClient).then((socket) { |
| 208 asyncEnd(); | 208 asyncEnd(); |
| 209 }); | 209 }); |
| 210 } | 210 } |
| 211 | 211 |
| 212 ServerSocket.bind(HOST_NAME, 0).then(serverReady); | 212 ServerSocket.bind(HOST_NAME, 0).then(serverReady); |
| 213 } | 213 } |
| 214 | 214 |
| 215 main() { | 215 main() { |
| 216 var certificateDatabase = join(dirname(Platform.script), 'pkcert'); | 216 var certificateDatabase = Platform.script.resolve('pkcert').toFilePath(); |
| 217 SecureSocket.initialize(database: certificateDatabase, | 217 SecureSocket.initialize(database: certificateDatabase, |
| 218 password: 'dartdart', | 218 password: 'dartdart', |
| 219 useBuiltinRoots: false); | 219 useBuiltinRoots: false); |
| 220 test(false, false); | 220 test(false, false); |
| 221 test(true, false); | 221 test(true, false); |
| 222 test(false, true); | 222 test(false, true); |
| 223 test(true, true); | 223 test(true, true); |
| 224 test(false, true, true); | 224 test(false, true, true); |
| 225 test(true, true, true); | 225 test(true, true, true); |
| 226 } | 226 } |
| OLD | NEW |