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

Unified Diff: net/base/net_util_unittest.cc

Issue 23726043: Added NetworkInterface::network_prefix (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove LOG before commit Created 7 years, 3 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
Index: net/base/net_util_unittest.cc
diff --git a/net/base/net_util_unittest.cc b/net/base/net_util_unittest.cc
index 207e05a1cc077909f78c1a703d434d3b1f23bff9..5a123f9cd2d76224a826ae074b6f6d3b84dfc277 100644
--- a/net/base/net_util_unittest.cc
+++ b/net/base/net_util_unittest.cc
@@ -3309,6 +3309,11 @@ TEST(NetUtilTest, GetNetworkList) {
}
}
EXPECT_FALSE(all_zeroes);
+ // TODO remove before commit.
+ LOG(WARNING) << IPAddressToString(it->address) << " " << it->network_prefix;
szym 2013/09/23 17:26:55 Don't forget to remove.
+ EXPECT_GE(it->network_prefix, 1u);
+ EXPECT_TRUE(it->address.size() != kIPv4AddressSize ||
+ it->network_prefix <= 32u);
}
}

Powered by Google App Engine
This is Rietveld 408576698