OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 |
| 7 // OtherResources=certificates/trusted_certs.pem |
4 | 8 |
5 import "dart:async"; | 9 import "dart:async"; |
6 import "dart:io"; | 10 import "dart:io"; |
7 import "dart:isolate"; | 11 import "dart:isolate"; |
8 | 12 |
9 import "package:expect/expect.dart"; | 13 import "package:expect/expect.dart"; |
10 | 14 |
11 InternetAddress HOST; | 15 InternetAddress HOST; |
12 | 16 |
13 String localFile(path) => Platform.script.resolve(path).toFilePath(); | 17 String localFile(path) => Platform.script.resolve(path).toFilePath(); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 }); | 102 }); |
99 } | 103 } |
100 | 104 |
101 void main() { | 105 void main() { |
102 InternetAddress.lookup("localhost").then((hosts) { | 106 InternetAddress.lookup("localhost").then((hosts) { |
103 HOST = hosts.first; | 107 HOST = hosts.first; |
104 testListenOn(); | 108 testListenOn(); |
105 testEarlyClientClose(); | 109 testEarlyClientClose(); |
106 }); | 110 }); |
107 } | 111 } |
OLD | NEW |