Chromium Code Reviews| 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 import 'dart:io'; | 5 import 'dart:io'; |
| 6 | 6 |
| 7 import "package:async_helper/async_helper.dart"; | 7 import "package:async_helper/async_helper.dart"; |
| 8 import "package:expect/expect.dart"; | 8 import "package:expect/expect.dart"; |
| 9 | 9 |
| 10 const ANY = InternetAddressType.ANY; | 10 const ANY = InternetAddressType.ANY; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 117 }); | 117 }); |
| 118 Socket.connect("127.0.0.1", server.port).catchError((error) { | 118 Socket.connect("127.0.0.1", server.port).catchError((error) { |
| 119 server.close(); | 119 server.close(); |
| 120 asyncEnd(); | 120 asyncEnd(); |
| 121 }); | 121 }); |
| 122 }); | 122 }); |
| 123 }); | 123 }); |
| 124 } | 124 } |
| 125 | 125 |
| 126 void main() { | 126 void main() { |
| 127 testIPv6toIPv6(); | 127 testIPv6toIPv6(); /// none: ok |
|
Florian Schneider
2016/12/12 21:05:14
Unrelated, but seems good in general to split up t
| |
| 128 testIPv4toIPv6(); | 128 testIPv4toIPv6(); /// 01: ok |
| 129 testIPv6toIPv4(); | 129 testIPv6toIPv4(); /// 02: ok |
| 130 testIPv4toIPv4(); | 130 testIPv4toIPv4(); /// 03: ok |
| 131 testIPv6Lookup(); | 131 testIPv6Lookup(); /// 04: ok |
| 132 testIPv4Lookup(); | 132 testIPv4Lookup(); /// 05: ok |
| 133 | 133 |
| 134 testIPv4toIPv6_IPV6Only(); | 134 testIPv4toIPv6_IPV6Only(); /// 06: ok |
| 135 } | 135 } |
| OLD | NEW |