| 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 |
| 11 // OtherResources=certificates/trusted_certs.pem |
| 12 // OtherResources=certificates/server_chain.p12 |
| 13 // OtherResources=certificates/server_key.p12 |
| 14 // OtherResources=certificates/trusted_certs.p12 |
| 9 | 15 |
| 10 import "package:async_helper/async_helper.dart"; | 16 import "package:async_helper/async_helper.dart"; |
| 11 import "package:expect/expect.dart"; | 17 import "package:expect/expect.dart"; |
| 12 import "package:path/path.dart"; | 18 import "package:path/path.dart"; |
| 13 import "dart:async"; | 19 import "dart:async"; |
| 14 import "dart:io"; | 20 import "dart:io"; |
| 15 | 21 |
| 16 String localFile(path) => Platform.script.resolve(path).toFilePath(); | 22 String localFile(path) => Platform.script.resolve(path).toFilePath(); |
| 17 | 23 |
| 18 SecurityContext serverContext(String certType, String password) => | 24 SecurityContext serverContext(String certType, String password) => |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 }); | 84 }); |
| 79 return completer.future; | 85 return completer.future; |
| 80 } | 86 } |
| 81 | 87 |
| 82 main() async { | 88 main() async { |
| 83 asyncStart(); | 89 asyncStart(); |
| 84 await test('pem', 'dartdart'); | 90 await test('pem', 'dartdart'); |
| 85 await test('p12', 'dartdart'); | 91 await test('p12', 'dartdart'); |
| 86 asyncEnd(); | 92 asyncEnd(); |
| 87 } | 93 } |
| OLD | NEW |