Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: tests/standalone/io/network_interface_test.dart

Issue 1916223003: Fixes NetworkInterface.list crash on Android (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sdk/lib/io/socket.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « sdk/lib/io/socket.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698