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 // OtherResources=certificates/server_chain.pem |
| 10 // OtherResources=certificates/server_key.pem |
9 | 11 |
10 library dart.io; | 12 library dart.io; |
11 | 13 |
12 import "dart:async"; | 14 import "dart:async"; |
13 import "dart:io"; | 15 import "dart:io"; |
14 import "dart:math"; | 16 import "dart:math"; |
15 import "dart:typed_data"; | 17 import "dart:typed_data"; |
16 | 18 |
17 import "package:async_helper/async_helper.dart"; | 19 import "package:async_helper/async_helper.dart"; |
18 import "package:expect/expect.dart"; | 20 import "package:expect/expect.dart"; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 103 |
102 | 104 |
103 main() { | 105 main() { |
104 asyncStart(); | 106 asyncStart(); |
105 new SecurityConfiguration(secure: false).runTests(); | 107 new SecurityConfiguration(secure: false).runTests(); |
106 // TODO(whesse): WebSocket.connect needs an optional context: parameter | 108 // TODO(whesse): WebSocket.connect needs an optional context: parameter |
107 // new SecurityConfiguration(secure: true).runTests(); | 109 // new SecurityConfiguration(secure: true).runTests(); |
108 asyncEnd(); | 110 asyncEnd(); |
109 } | 111 } |
110 | 112 |
OLD | NEW |