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

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

Issue 16514010: Add NetworkAdaptor to dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add test file. Created 7 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
« sdk/lib/io/socket.dart ('K') | « tests/standalone/io/internet_address_test.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_adaptor_test.dart
diff --git a/tests/language/private_selector_test.dart b/tests/standalone/io/network_adaptor_test.dart
similarity index 63%
copy from tests/language/private_selector_test.dart
copy to tests/standalone/io/network_adaptor_test.dart
index 5d00c940eaccebfa7aad3b869e6d1e5f338a1c0a..94fd29b9119fb6e5fba2dda7fa30c139263bcf9d 100644
--- a/tests/language/private_selector_test.dart
+++ b/tests/standalone/io/network_adaptor_test.dart
@@ -2,14 +2,16 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library private_selector_test;
+import 'dart:io';
+
import "package:expect/expect.dart";
-import 'private_selector_lib.dart';
-class B extends A {
+
+void testList() {
+ NetworkAdaptor.list(includeLoopback: false).then((list) => list.forEach(print));
}
-main() {
- new A().public();
- Expect.isTrue(executed);
+
+void main() {
+ testList();
}
« sdk/lib/io/socket.dart ('K') | « tests/standalone/io/internet_address_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698