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 // |
| 5 // OtherResources=certificates/server_chain.pem |
| 6 // OtherResources=certificates/server_key.pem |
4 | 7 |
5 // This test verifies that secure connections that fail due to | 8 // This test verifies that secure connections that fail due to |
6 // unauthenticated certificates throw exceptions in HttpClient. | 9 // unauthenticated certificates throw exceptions in HttpClient. |
7 | 10 |
8 import "package:expect/expect.dart"; | 11 import "package:expect/expect.dart"; |
9 import "package:path/path.dart"; | 12 import "package:path/path.dart"; |
10 import "dart:async"; | 13 import "dart:async"; |
11 import "dart:io"; | 14 import "dart:io"; |
12 | 15 |
13 const HOST_NAME = "localhost"; | 16 const HOST_NAME = "localhost"; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 } | 55 } |
53 }); | 56 }); |
54 } | 57 } |
55 | 58 |
56 runServer().then((server) { | 59 runServer().then((server) { |
57 clientProcess(server.port).then((_) { | 60 clientProcess(server.port).then((_) { |
58 server.close(); | 61 server.close(); |
59 }); | 62 }); |
60 }); | 63 }); |
61 } | 64 } |
OLD | NEW |