| 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 "package:expect/expect.dart"; | 10 import "package:expect/expect.dart"; |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 testNoUpgrade(); | 398 testNoUpgrade(); |
| 399 testUsePOST(); | 399 testUsePOST(); |
| 400 testConnections(10, 3002, "Got tired"); | 400 testConnections(10, 3002, "Got tired"); |
| 401 testIndivitualUpgrade(5); | 401 testIndivitualUpgrade(5); |
| 402 } | 402 } |
| 403 } | 403 } |
| 404 | 404 |
| 405 | 405 |
| 406 void initializeSSL() { | 406 void initializeSSL() { |
| 407 var testPkcertDatabase = | 407 var testPkcertDatabase = |
| 408 new Path(new Options().script).directoryPath.append("pkcert/"); | 408 new Path(Platform.script).directoryPath.append("pkcert/"); |
| 409 SecureSocket.initialize(database: testPkcertDatabase.toNativePath(), | 409 SecureSocket.initialize(database: testPkcertDatabase.toNativePath(), |
| 410 password: "dartdart"); | 410 password: "dartdart"); |
| 411 } | 411 } |
| 412 | 412 |
| 413 | 413 |
| 414 main() { | 414 main() { |
| 415 new SecurityConfiguration(secure: false).runTests(); | 415 new SecurityConfiguration(secure: false).runTests(); |
| 416 initializeSSL(); | 416 initializeSSL(); |
| 417 new SecurityConfiguration(secure: true).runTests(); | 417 new SecurityConfiguration(secure: true).runTests(); |
| 418 } | 418 } |
| OLD | NEW |