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:async"; | 5 import "dart:async"; |
6 import "dart:io"; | 6 import "dart:io"; |
7 import "dart:typed_data"; | 7 import "dart:typed_data"; |
8 | 8 |
9 import "package:async_helper/async_helper.dart"; | 9 import "package:async_helper/async_helper.dart"; |
10 import "package:expect/expect.dart"; | 10 import "package:expect/expect.dart"; |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
315 main() { | 315 main() { |
316 testDatagramBroadcastOptions(); | 316 testDatagramBroadcastOptions(); |
317 testDatagramMulticastOptions(); | 317 testDatagramMulticastOptions(); |
318 if (!Platform.isMacOS) { | 318 if (!Platform.isMacOS) { |
319 testDatagramSocketReuseAddress(); | 319 testDatagramSocketReuseAddress(); |
320 } | 320 } |
321 testBroadcast(); | 321 testBroadcast(); |
322 testLoopbackMulticast(); | 322 testLoopbackMulticast(); |
323 testSendReceive(InternetAddress.LOOPBACK_IP_V4, 1000); | 323 testSendReceive(InternetAddress.LOOPBACK_IP_V4, 1000); |
324 testSendReceive(InternetAddress.LOOPBACK_IP_V6, 1000); | 324 testSendReceive(InternetAddress.LOOPBACK_IP_V6, 1000); |
325 testSendReceive(InternetAddress.LOOPBACK_IP_V4, 32 * 1024); | 325 if (!Platform.isMacOS) { |
kustermann
2015/10/06 08:21:29
Maybe add a comment about why they fail (I assume
| |
326 testSendReceive(InternetAddress.LOOPBACK_IP_V6, 32 * 1024); | 326 testSendReceive(InternetAddress.LOOPBACK_IP_V4, 32 * 1024); |
327 testSendReceive(InternetAddress.LOOPBACK_IP_V4, 64 * 1024 - 32); | 327 testSendReceive(InternetAddress.LOOPBACK_IP_V6, 32 * 1024); |
328 testSendReceive(InternetAddress.LOOPBACK_IP_V6, 64 * 1024 - 32); | 328 testSendReceive(InternetAddress.LOOPBACK_IP_V4, 64 * 1024 - 32); |
329 testSendReceive(InternetAddress.LOOPBACK_IP_V6, 64 * 1024 - 32); | |
330 } | |
329 } | 331 } |
OLD | NEW |