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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 testImmediateCloseClient(); | 401 testImmediateCloseClient(); |
402 testNoUpgrade(); | 402 testNoUpgrade(); |
403 testUsePOST(); | 403 testUsePOST(); |
404 testConnections(10, 3002, "Got tired"); | 404 testConnections(10, 3002, "Got tired"); |
405 testIndividualUpgrade(5); | 405 testIndividualUpgrade(5); |
406 } | 406 } |
407 } | 407 } |
408 | 408 |
409 | 409 |
410 void initializeSSL() { | 410 void initializeSSL() { |
411 var testPkcertDatabase = Platform.script.resolve('pkcert').toFilePath(); | 411 var testPkcertDatabase = join(dirname(Platform.script), 'pkcert'); |
412 SecureSocket.initialize(database: testPkcertDatabase, | 412 SecureSocket.initialize(database: testPkcertDatabase, |
413 password: "dartdart"); | 413 password: "dartdart"); |
414 } | 414 } |
415 | 415 |
416 | 416 |
417 main() { | 417 main() { |
418 asyncStart(); | 418 asyncStart(); |
419 new SecurityConfiguration(secure: false).runTests(); | 419 new SecurityConfiguration(secure: false).runTests(); |
420 initializeSSL(); | 420 initializeSSL(); |
421 new SecurityConfiguration(secure: true).runTests(); | 421 new SecurityConfiguration(secure: true).runTests(); |
422 asyncEnd(); | 422 asyncEnd(); |
423 } | 423 } |
OLD | NEW |