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

Unified Diff: runtime/tests/vm/dart/hello_fuchsia_test.dart

Issue 2962383002: [Fuchsia] Implements NetworkInterface.list() (Closed)
Patch Set: Don't fail on empty list Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/socket_base_fuchsia.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/tests/vm/dart/hello_fuchsia_test.dart
diff --git a/runtime/tests/vm/dart/hello_fuchsia_test.dart b/runtime/tests/vm/dart/hello_fuchsia_test.dart
index cc5363ad856ddef6c813413224962b8bbc1b9857..8ca65633261175daffd3517fb6db4f17049b119e 100644
--- a/runtime/tests/vm/dart/hello_fuchsia_test.dart
+++ b/runtime/tests/vm/dart/hello_fuchsia_test.dart
@@ -486,6 +486,15 @@ bool testFileOpenDirectoryFails() {
}
}
+
+Future testListInterfaces() async {
+ List<NetworkInterface> interfaces = await NetworkInterface.list();
+ print('Found ${interfaces.length} interfaces:');
+ for (var iface in interfaces) {
+ print('\t$iface');
+ }
+}
+
main(List<String> args) async {
if (args.length >= 1) {
if (args[0] == "infinite-loop") {
@@ -559,5 +568,9 @@ main(List<String> args) async {
print("testFileOpenDirectoryFails FAILED");
}
+ print('testListInterfaces');
+ await testListInterfaces();
+ print('testListInterfaces done');
+
print("Goodbyte, Fuchsia!");
}
« no previous file with comments | « runtime/bin/socket_base_fuchsia.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698