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

Unified Diff: net/dns/mock_host_resolver.cc

Issue 718273002: Use uint16 for port numbers, net/ edition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review Created 6 years, 1 month 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/dns/mock_host_resolver.cc
diff --git a/net/dns/mock_host_resolver.cc b/net/dns/mock_host_resolver.cc
index 48e004e2dec5e2ebae9463d30f88f6674ccf0621..6d8cba38ba074233a9148a2fb3a54afa791bde03 100644
--- a/net/dns/mock_host_resolver.cc
+++ b/net/dns/mock_host_resolver.cc
@@ -48,7 +48,7 @@ int ParseAddressList(const std::string& host_list,
LOG(WARNING) << "Not a supported IP literal: " << addresses[index];
return ERR_UNEXPECTED;
}
- addrlist->push_back(IPEndPoint(ip_number, -1));
+ addrlist->push_back(IPEndPoint(ip_number, 0));
Peter Kasting 2014/11/12 23:54:31 The port number here isn't actually used -- MockHo
}
return OK;
}

Powered by Google App Engine
This is Rietveld 408576698