| 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 // OtherResources=certificates/server_chain.pem |
| 6 // OtherResources=certificates/server_key.pem |
| 7 // OtherResources=certificates/trusted_certs.pem |
| 8 // OtherResources=certificates/client_authority.pem |
| 9 // OtherResources=certificates/client1.pem |
| 10 // OtherResources=certificates/client1_key.pem |
| 11 // OtherResources=certificates/server_chain.p12 |
| 12 // OtherResources=certificates/server_key.p12 |
| 13 // OtherResources=certificates/trusted_certs.p12 |
| 14 // OtherResources=certificates/client_authority.p12 |
| 15 // OtherResources=certificates/client1.p12 |
| 16 // OtherResources=certificates/client1_key.p12 |
| 17 |
| 5 import "dart:async"; | 18 import "dart:async"; |
| 6 import "dart:io"; | 19 import "dart:io"; |
| 7 | 20 |
| 8 import "package:async_helper/async_helper.dart"; | 21 import "package:async_helper/async_helper.dart"; |
| 9 import "package:expect/expect.dart"; | 22 import "package:expect/expect.dart"; |
| 10 | 23 |
| 11 InternetAddress HOST; | 24 InternetAddress HOST; |
| 12 | 25 |
| 13 String localFile(path) => Platform.script.resolve(path).toFilePath(); | 26 String localFile(path) => Platform.script.resolve(path).toFilePath(); |
| 14 | 27 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 await testClientCertificate( | 107 await testClientCertificate( |
| 95 required: false, sendCert: true, certType: 'p12', password: 'dartdart'); | 108 required: false, sendCert: true, certType: 'p12', password: 'dartdart'); |
| 96 await testClientCertificate( | 109 await testClientCertificate( |
| 97 required: true, sendCert: true, certType: 'p12', password: 'dartdart'); | 110 required: true, sendCert: true, certType: 'p12', password: 'dartdart'); |
| 98 await testClientCertificate( | 111 await testClientCertificate( |
| 99 required: false, sendCert: false, certType: 'p12', password: 'dartdart'); | 112 required: false, sendCert: false, certType: 'p12', password: 'dartdart'); |
| 100 await testClientCertificate( | 113 await testClientCertificate( |
| 101 required: true, sendCert: false, certType: 'p12', password: 'dartdart'); | 114 required: true, sendCert: false, certType: 'p12', password: 'dartdart'); |
| 102 asyncEnd(); | 115 asyncEnd(); |
| 103 } | 116 } |
| OLD | NEW |