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

Unified Diff: net/base/ip_endpoint_unittest.cc

Issue 1565303002: Change IPEndpoint::address() to return a net::IPAddress (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback eroman Created 4 years, 11 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/ip_endpoint_unittest.cc
diff --git a/net/base/ip_endpoint_unittest.cc b/net/base/ip_endpoint_unittest.cc
index a2b647c8723dc4bd2ba7af4b4b8aea44d938d6e6..12dff00ae82ac58e747c23b41fcc20532781b6f4 100644
--- a/net/base/ip_endpoint_unittest.cc
+++ b/net/base/ip_endpoint_unittest.cc
@@ -54,7 +54,7 @@ struct TestData {
std::string host;
std::string host_normalized;
bool ipv6;
- IPAddressNumber ip_address;
+ IPAddress ip_address;
} tests[] = {
{ "127.0.00.1", "127.0.0.1", false},
{ "192.168.1.1", "192.168.1.1", false },
@@ -68,8 +68,8 @@ class IPEndPointTest : public PlatformTest {
void SetUp() override {
// This is where we populate the TestData.
for (int index = 0; index < test_count; ++index) {
- EXPECT_TRUE(ParseIPLiteralToNumber(tests[index].host,
- &tests[index].ip_address));
+ EXPECT_TRUE(IPAddress::FromIPLiteral(tests[index].host,
+ &tests[index].ip_address));
}
}
};

Powered by Google App Engine
This is Rietveld 408576698