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

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

Issue 14619008: Add static getters for common internet addresses (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 years, 8 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 | « 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/socket_ipv6_test.dart
diff --git a/tests/standalone/io/socket_ipv6_test.dart b/tests/standalone/io/socket_ipv6_test.dart
index 4fe25fc86302f7fd8534a42727a2562733afcd01..032bd9c08a17a7d9f98bc86b10dffdf990b32d02 100644
--- a/tests/standalone/io/socket_ipv6_test.dart
+++ b/tests/standalone/io/socket_ipv6_test.dart
@@ -67,7 +67,7 @@ void testIPv6Lookup() {
InternetAddress.lookup("::0", type: ANY).then((list) {
if (list.length < 0) throw "no address";
for (var entry in list) {
- if (entry.type != InternetAddressType.IPv6) {
+ if (entry.type != InternetAddressType.IP_V6) {
throw "Wrong IP type";
}
}
@@ -80,7 +80,7 @@ void testIPv4Lookup() {
InternetAddress.lookup("127.0.0.1").then((list) {
if (list.length < 0) throw "no addresse";
for (var entry in list) {
- if (entry.type != InternetAddressType.IPv4) {
+ if (entry.type != InternetAddressType.IP_V4) {
throw "Wrong IP type";
}
}
« no previous file with comments | « 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