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

Unified Diff: net/http/http_server_properties_impl_unittest.cc

Issue 1809863002: Update some callers to use more direct ways of constructing IPAddress from well known literals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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_server_properties_impl_unittest.cc
diff --git a/net/http/http_server_properties_impl_unittest.cc b/net/http/http_server_properties_impl_unittest.cc
index d06574f30891050472f1ab15c0b5b56fea275b67..f48289e5bbd7607e5fa8ae6aea5be527c9ae9aec 100644
--- a/net/http/http_server_properties_impl_unittest.cc
+++ b/net/http/http_server_properties_impl_unittest.cc
@@ -1271,7 +1271,7 @@ TEST_F(SupportsQuicServerPropertiesTest, Initialize) {
EXPECT_TRUE(address.empty());
// Check by initializing with a valid address.
- CHECK(initial_address.AssignFromIPLiteral("127.0.0.1"));
+ initial_address = IPAddress::IPv4Localhost();
impl_.InitializeSupportsQuic(&initial_address);
EXPECT_TRUE(impl_.GetSupportsQuic(&address));

Powered by Google App Engine
This is Rietveld 408576698