| 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 library dart.io; | 10 library dart.io; |
| 11 | 11 |
| 12 import "dart:async"; | 12 import "dart:async"; |
| 13 import "dart:io"; | 13 import "dart:io"; |
| 14 import "dart:math"; |
| 14 import "dart:typed_data"; | 15 import "dart:typed_data"; |
| 15 | 16 |
| 16 import "package:async_helper/async_helper.dart"; | 17 import "package:async_helper/async_helper.dart"; |
| 17 import "package:expect/expect.dart"; | 18 import "package:expect/expect.dart"; |
| 18 import "package:path/path.dart"; | 19 import "package:path/path.dart"; |
| 19 | 20 |
| 20 part "../../../sdk/lib/io/crypto.dart"; | 21 part "../../../sdk/lib/io/crypto.dart"; |
| 21 | 22 |
| 22 | 23 |
| 23 const String webSocketGUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"; | 24 const String webSocketGUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 97 |
| 97 | 98 |
| 98 main() { | 99 main() { |
| 99 asyncStart(); | 100 asyncStart(); |
| 100 new SecurityConfiguration(secure: false).runTests(); | 101 new SecurityConfiguration(secure: false).runTests(); |
| 101 initializeSSL(); | 102 initializeSSL(); |
| 102 new SecurityConfiguration(secure: true).runTests(); | 103 new SecurityConfiguration(secure: true).runTests(); |
| 103 asyncEnd(); | 104 asyncEnd(); |
| 104 } | 105 } |
| 105 | 106 |
| OLD | NEW |