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

Unified Diff: net/dns/host_resolver_impl_unittest.cc

Issue 754433003: Update from https://crrev.com/305340 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « net/dns/host_resolver_impl.cc ('k') | net/dns/mock_host_resolver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/host_resolver_impl_unittest.cc
diff --git a/net/dns/host_resolver_impl_unittest.cc b/net/dns/host_resolver_impl_unittest.cc
index 7b6a3918ba321504da66b3fdbd1c663b6c847911..7a46a1c4dc4e3cfc1998858a5fb8bc75bd9b0fe7 100644
--- a/net/dns/host_resolver_impl_unittest.cc
+++ b/net/dns/host_resolver_impl_unittest.cc
@@ -181,7 +181,7 @@ class MockHostResolverProc : public HostResolverProc {
};
bool AddressListContains(const AddressList& list, const std::string& address,
- int port) {
+ uint16 port) {
IPAddressNumber ip;
bool rv = ParseIPLiteralToNumber(address, &ip);
DCHECK(rv);
@@ -249,7 +249,7 @@ class Request {
bool completed() const { return result_ != ERR_IO_PENDING; }
bool pending() const { return handle_ != NULL; }
- bool HasAddress(const std::string& address, int port) const {
+ bool HasAddress(const std::string& address, uint16 port) const {
return AddressListContains(list_, address, port);
}
@@ -258,7 +258,7 @@ class Request {
return list_.size();
}
- bool HasOneAddress(const std::string& address, int port) const {
+ bool HasOneAddress(const std::string& address, uint16 port) const {
return HasAddress(address, port) && (NumberOfAddresses() == 1u);
}
« no previous file with comments | « net/dns/host_resolver_impl.cc ('k') | net/dns/mock_host_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698