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

Unified Diff: webrtc/base/virtualsocketserver.cc

Issue 2019423006: Adding more detail to MessageQueue::Dispatch logging. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixing one more place where RTC_FROM_HERE wasn't used. Created 4 years, 6 months 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 | « webrtc/base/virtualsocket_unittest.cc ('k') | webrtc/base/worker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/virtualsocketserver.cc
diff --git a/webrtc/base/virtualsocketserver.cc b/webrtc/base/virtualsocketserver.cc
index baeeb8e2044fe747c37889dc7defc788f0944517..8b8d050728d2c04829d64305b700062258de0014 100644
--- a/webrtc/base/virtualsocketserver.cc
+++ b/webrtc/base/virtualsocketserver.cc
@@ -156,7 +156,7 @@ int VirtualSocket::Bind(const SocketAddress& addr) {
was_any_ = addr.IsAnyIP();
// Post a message here such that test case could have chance to
// process the local address. (i.e. SetAlternativeLocalAddress).
- server_->msg_queue_->Post(this, MSG_ID_ADDRESS_BOUND);
+ server_->msg_queue_->Post(RTC_FROM_HERE, this, MSG_ID_ADDRESS_BOUND);
}
return result;
}
@@ -760,11 +760,11 @@ int VirtualSocketServer::Connect(VirtualSocket* socket,
}
if (remote != NULL) {
SocketAddress addr = socket->GetLocalAddress();
- msg_queue_->PostDelayed(delay, remote, MSG_ID_CONNECT,
+ msg_queue_->PostDelayed(RTC_FROM_HERE, delay, remote, MSG_ID_CONNECT,
new MessageAddress(addr));
} else {
LOG(LS_INFO) << "No one listening at " << remote_addr;
- msg_queue_->PostDelayed(delay, socket, MSG_ID_DISCONNECT);
+ msg_queue_->PostDelayed(RTC_FROM_HERE, delay, socket, MSG_ID_DISCONNECT);
}
return 0;
}
@@ -772,7 +772,7 @@ int VirtualSocketServer::Connect(VirtualSocket* socket,
bool VirtualSocketServer::Disconnect(VirtualSocket* socket) {
if (socket) {
// Remove the mapping.
- msg_queue_->Post(socket, MSG_ID_DISCONNECT);
+ msg_queue_->Post(RTC_FROM_HERE, socket, MSG_ID_DISCONNECT);
return true;
}
return false;
@@ -920,7 +920,7 @@ void VirtualSocketServer::AddPacketToNetwork(VirtualSocket* sender,
// introduces artificial delay.
ts = std::max(ts, network_delay_);
}
- msg_queue_->PostAt(ts, recipient, MSG_ID_PACKET, p);
+ msg_queue_->PostAt(RTC_FROM_HERE, ts, recipient, MSG_ID_PACKET, p);
network_delay_ = std::max(ts, network_delay_);
}
« no previous file with comments | « webrtc/base/virtualsocket_unittest.cc ('k') | webrtc/base/worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698