| 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/untrusted_server_chain.pem | 5 // OtherResources=certificates/untrusted_server_chain.pem |
| 6 // OtherResources=certificates/untrusted_server_key.pem | 6 // OtherResources=certificates/untrusted_server_key.pem |
| 7 // OtherResources=certificates/untrusted_server_chain.pem | |
| 8 // OtherResources=certificates/trusted_certs.pem | 7 // OtherResources=certificates/trusted_certs.pem |
| 9 // OtherResources=secure_unauthorized_client.dart | 8 // OtherResources=secure_unauthorized_client.dart |
| 10 | 9 |
| 11 // This test verifies that failing secure connection attempts always complete | 10 // This test verifies that failing secure connection attempts always complete |
| 12 // their returned future. | 11 // their returned future. |
| 13 | 12 |
| 14 import "package:expect/expect.dart"; | 13 import "package:expect/expect.dart"; |
| 15 import "package:path/path.dart"; | 14 import "package:path/path.dart"; |
| 16 import "dart:async"; | 15 import "dart:async"; |
| 17 import "dart:io"; | 16 import "dart:io"; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 } | 53 } |
| 55 }); | 54 }); |
| 56 } | 55 } |
| 57 | 56 |
| 58 runServer().then((server) { | 57 runServer().then((server) { |
| 59 clientProcess(server.port).then((_) { | 58 clientProcess(server.port).then((_) { |
| 60 server.close(); | 59 server.close(); |
| 61 }); | 60 }); |
| 62 }); | 61 }); |
| 63 } | 62 } |
| OLD | NEW |