Index: net/test/spawned_test_server/base_test_server.cc |
diff --git a/net/test/spawned_test_server/base_test_server.cc b/net/test/spawned_test_server/base_test_server.cc |
index f45ef4a6fc140b4915f412702d8ae7ec5900ed91..d245cc2e21879e8801408a7c352f66ed57d1d4c1 100644 |
--- a/net/test/spawned_test_server/base_test_server.cc |
+++ b/net/test/spawned_test_server/base_test_server.cc |
@@ -4,9 +4,6 @@ |
#include "net/test/spawned_test_server/base_test_server.h" |
-#include <stdint.h> |
- |
-#include <limits> |
#include <string> |
#include <vector> |
@@ -288,11 +285,11 @@ |
return true; |
} |
-uint16_t BaseTestServer::GetPort() { |
+uint16 BaseTestServer::GetPort() { |
return host_port_pair_.port(); |
} |
-void BaseTestServer::SetPort(uint16_t port) { |
+void BaseTestServer::SetPort(uint16 port) { |
host_port_pair_.set_port(port); |
} |
@@ -417,7 +414,7 @@ |
LOG(ERROR) << "Could not find port value"; |
return false; |
} |
- if ((port <= 0) || (port > std::numeric_limits<uint16_t>::max())) { |
+ if ((port <= 0) || (port > kuint16max)) { |
LOG(ERROR) << "Invalid port value: " << port; |
return false; |
} |