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

Unified Diff: tests/standalone/io/network_interface_test.dart

Issue 95183002: Add the index information to network interface (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/io/socket.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/network_interface_test.dart
diff --git a/tests/standalone/io/network_interface_test.dart b/tests/standalone/io/network_interface_test.dart
index ee6a25e9f9d7b092488b5b1f84f2368d13ff6f25..2d49ce01643ee9c2267c61ac3528b07bfd96e716 100644
--- a/tests/standalone/io/network_interface_test.dart
+++ b/tests/standalone/io/network_interface_test.dart
@@ -33,7 +33,21 @@ void testListLinkLocal() {
}
+void testListIndex() {
+ var set = new Set();
+ NetworkInterface.list(includeLoopback: true).then((list) {
+ for (var i in list) {
+ Expect.isNotNull(i.index);
+ Expect.isFalse(set.contains(i.index));
+ set.add(i.index);
+ Expect.isTrue(set.contains(i.index));
+ }
+ });
+}
+
+
void main() {
testListLoopback();
testListLinkLocal();
+ testListIndex();
}
« 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