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

Unified Diff: net/quic/test_tools/quic_test_utils.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: rch feedbak 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
« no previous file with comments | « net/quic/quic_connection_test.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/quic_test_utils.cc
diff --git a/net/quic/test_tools/quic_test_utils.cc b/net/quic/test_tools/quic_test_utils.cc
index 1041569067a60245d42d7ac76eba2d7440187874..bc9fbc460422c7373e6e4ce20ad50d2da5b7c8d4 100644
--- a/net/quic/test_tools/quic_test_utils.cc
+++ b/net/quic/test_tools/quic_test_utils.cc
@@ -456,17 +456,15 @@ QuicVersion QuicVersionMin() {
}
IPAddress Loopback4() {
- return IPAddress(127, 0, 0, 1);
+ return IPAddress::IPv4Localhost();
}
IPAddress Loopback6() {
- IPAddress addr;
- CHECK(addr.AssignFromIPLiteral("::1"));
- return addr;
+ return IPAddress::IPv6Localhost();
}
IPAddress Any4() {
- return IPAddress(0, 0, 0, 0);
+ return IPAddress::IPv4AllZeros();
}
void GenerateBody(string* body, int length) {
« no previous file with comments | « net/quic/quic_connection_test.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698