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

Unified Diff: remoting/test/fake_socket_factory.cc

Issue 707713006: Update Chromium for webrtc r7656. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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 | « remoting/test/fake_socket_factory.h ('k') | no next file » | 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 967a7708276f9765d5c2f6543259322d2524d042..183595ee581f3d208c2cbb1eb4e0e8f236b02bbb 100644
--- a/remoting/test/fake_socket_factory.cc
+++ b/remoting/test/fake_socket_factory.cc
@@ -200,12 +200,12 @@ void FakePacketSocketFactory::SetLatency(base::TimeDelta average,
rtc::AsyncPacketSocket* FakePacketSocketFactory::CreateUdpSocket(
const rtc::SocketAddress& local_address,
- int min_port, int max_port) {
+ uint16 min_port, uint16 max_port) {
DCHECK(task_runner_->BelongsToCurrentThread());
int port = -1;
if (min_port > 0 && max_port > 0) {
- for (int i = min_port; i <= max_port; ++i) {
+ for (uint16 i = min_port; i <= max_port; ++i) {
if (udp_sockets_.find(i) == udp_sockets_.end()) {
port = i;
break;
@@ -235,7 +235,7 @@ rtc::AsyncPacketSocket* FakePacketSocketFactory::CreateUdpSocket(
rtc::AsyncPacketSocket* FakePacketSocketFactory::CreateServerTcpSocket(
const rtc::SocketAddress& local_address,
- int min_port, int max_port,
+ uint16 min_port, uint16 max_port,
int opts) {
return NULL;
}
« no previous file with comments | « remoting/test/fake_socket_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698