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

Unified Diff: remoting/test/fake_socket_factory.cc

Issue 1542203002: Switch to standard integer types in remoting/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-remoting-host
Patch Set: Created 5 years 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 | « remoting/test/fake_socket_factory.h ('k') | remoting/test/host_list_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/fake_socket_factory.cc
diff --git a/remoting/test/fake_socket_factory.cc b/remoting/test/fake_socket_factory.cc
index 0f0d418ac230da0d58717c00df440c1204797021..0e576cf9122fc9ed7c994e320ad300a41ff9107b 100644
--- a/remoting/test/fake_socket_factory.cc
+++ b/remoting/test/fake_socket_factory.cc
@@ -8,10 +8,12 @@
#include "remoting/test/fake_socket_factory.h"
#include <math.h>
+#include <stddef.h>
#include "base/bind.h"
#include "base/callback.h"
#include "base/location.h"
+#include "base/macros.h"
#include "base/rand_util.h"
#include "base/single_thread_task_runner.h"
#include "base/thread_task_runner_handle.h"
@@ -200,12 +202,13 @@ void FakePacketSocketFactory::SetLatency(base::TimeDelta average,
rtc::AsyncPacketSocket* FakePacketSocketFactory::CreateUdpSocket(
const rtc::SocketAddress& local_address,
- uint16 min_port, uint16 max_port) {
+ uint16_t min_port,
+ uint16_t max_port) {
DCHECK(task_runner_->BelongsToCurrentThread());
int port = -1;
if (min_port > 0 && max_port > 0) {
- for (uint16 i = min_port; i <= max_port; ++i) {
+ for (uint16_t i = min_port; i <= max_port; ++i) {
if (udp_sockets_.find(i) == udp_sockets_.end()) {
port = i;
break;
@@ -235,7 +238,8 @@ rtc::AsyncPacketSocket* FakePacketSocketFactory::CreateUdpSocket(
rtc::AsyncPacketSocket* FakePacketSocketFactory::CreateServerTcpSocket(
const rtc::SocketAddress& local_address,
- uint16 min_port, uint16 max_port,
+ uint16_t min_port,
+ uint16_t max_port,
int opts) {
return nullptr;
}
« no previous file with comments | « remoting/test/fake_socket_factory.h ('k') | remoting/test/host_list_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698