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:expect/expect.dart"; | 7 import "package:expect/expect.dart"; |
8 | 8 |
9 | 9 |
10 void testListLoopback() { | 10 void testListLoopback() { |
(...skipping 29 matching lines...) Expand all Loading... |
40 Expect.isNotNull(i.index); | 40 Expect.isNotNull(i.index); |
41 Expect.isFalse(set.contains(i.index)); | 41 Expect.isFalse(set.contains(i.index)); |
42 set.add(i.index); | 42 set.add(i.index); |
43 Expect.isTrue(set.contains(i.index)); | 43 Expect.isTrue(set.contains(i.index)); |
44 } | 44 } |
45 }); | 45 }); |
46 } | 46 } |
47 | 47 |
48 | 48 |
49 void main() { | 49 void main() { |
| 50 if (!NetworkInterface.listSupported) { |
| 51 return; |
| 52 } |
50 testListLoopback(); | 53 testListLoopback(); |
51 testListLinkLocal(); | 54 testListLinkLocal(); |
52 testListIndex(); | 55 testListIndex(); |
53 } | 56 } |
OLD | NEW |