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 import 'dart:async'; | 6 import 'dart:async'; |
7 | 7 |
8 import "package:async_helper/async_helper.dart"; | 8 import "package:async_helper/async_helper.dart"; |
9 import "package:expect/expect.dart"; | 9 import "package:expect/expect.dart"; |
10 import "test_utils.dart" show retry; | 10 import "test_utils.dart" show retry; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 throw "Unexpected connect"; | 123 throw "Unexpected connect"; |
124 }, onError: (e) {}).whenComplete(() { | 124 }, onError: (e) {}).whenComplete(() { |
125 server.close(); | 125 server.close(); |
126 asyncEnd(); | 126 asyncEnd(); |
127 }); | 127 }); |
128 }); | 128 }); |
129 }); | 129 }); |
130 } | 130 } |
131 | 131 |
132 main() async { | 132 main() async { |
133 await testIPv6toIPv6(); /// 01: ok | 133 await testIPv6toIPv6(); // /// 01: ok |
134 await testIPv4toIPv6(); /// 02: ok | 134 await testIPv4toIPv6(); // /// 02: ok |
135 await testIPv4toIPv4(); /// 03: ok | 135 await testIPv4toIPv4(); // /// 03: ok |
136 await testIPv6Lookup(); /// 04: ok | 136 await testIPv6Lookup(); // /// 04: ok |
137 await testIPv4Lookup(); /// 05: ok | 137 await testIPv4Lookup(); // /// 05: ok |
138 | 138 |
139 await retry(testIPv6toIPv4); /// 06: ok | 139 await retry(testIPv6toIPv4); // /// 06: ok |
140 await retry(testIPv4toIPv6_IPV6Only); /// 07: ok | 140 await retry(testIPv4toIPv6_IPV6Only); // /// 07: ok |
141 } | 141 } |
OLD | NEW |