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

Unified Diff: net/http/http_transaction_test_util.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/http/http_transaction_test_util.cc
diff --git a/net/http/http_transaction_test_util.cc b/net/http/http_transaction_test_util.cc
index df259de330a55a1a195e7179ab00d1602dad5a45..0e027a2ab2ff30d1f63b05d06fc11683728fea6c 100644
--- a/net/http/http_transaction_test_util.cc
+++ b/net/http/http_transaction_test_util.cc
@@ -391,7 +391,7 @@ bool MockNetworkTransaction::GetLoadTimingInfo(
bool MockNetworkTransaction::GetRemoteEndpoint(IPEndPoint* endpoint) const {
IPAddress ip_address;
- CHECK(IPAddress::FromIPLiteral("127.0.0.1", &ip_address));
+ CHECK(ip_address.AssignFromIPLiteral("127.0.0.1"));
*endpoint = IPEndPoint(ip_address, 80);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698