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

Unified Diff: net/base/ip_endpoint_unittest.cc

Issue 1676023002: Make IPAddress::FromIPLiteral a member function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 12dff00ae82ac58e747c23b41fcc20532781b6f4..9f7c0f0b21b6c5222309d5666ce87750a90c6043 100644
--- a/net/base/ip_endpoint_unittest.cc
+++ b/net/base/ip_endpoint_unittest.cc
@@ -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(IPAddress::FromIPLiteral(tests[index].host,
- &tests[index].ip_address));
+ EXPECT_TRUE(
+ tests[index].ip_address.AssignFromIPLiteral(tests[index].host));
}
}
};

Powered by Google App Engine
This is Rietveld 408576698