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

Unified Diff: webrtc/p2p/base/pseudotcp_unittest.cc

Issue 2019423006: Adding more detail to MessageQueue::Dispatch logging. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 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
Index: webrtc/p2p/base/pseudotcp_unittest.cc
diff --git a/webrtc/p2p/base/pseudotcp_unittest.cc b/webrtc/p2p/base/pseudotcp_unittest.cc
index a635bcef16957374754238fb34b128ebe9a4dc85..4bde055ce4642d6485b7af51be82fb6fcbb8aa17 100644
--- a/webrtc/p2p/base/pseudotcp_unittest.cc
+++ b/webrtc/p2p/base/pseudotcp_unittest.cc
@@ -147,8 +147,8 @@ class PseudoTcpTestBase : public testing::Test,
} else {
int id = (tcp == &local_) ? MSG_RPACKET : MSG_LPACKET;
std::string packet(buffer, len);
- rtc::Thread::Current()->PostDelayed(delay_, this, id,
- rtc::WrapMessageData(packet));
+ rtc::Thread::Current()->PostDelayed(FROM_HERE, delay_, this, id,
+ rtc::WrapMessageData(packet));
}
return WR_SUCCESS;
}
@@ -160,7 +160,7 @@ class PseudoTcpTestBase : public testing::Test,
tcp->GetNextClock(PseudoTcp::Now(), interval);
interval = std::max<int>(interval, 0L); // sometimes interval is < 0
rtc::Thread::Current()->Clear(this, message);
- rtc::Thread::Current()->PostDelayed(interval, this, message);
+ rtc::Thread::Current()->PostDelayed(FROM_HERE, interval, this, message);
}
virtual void OnMessage(rtc::Message* message) {
@@ -457,7 +457,7 @@ class PseudoTcpTestReceiveWindow : public PseudoTcpTestBase {
EXPECT_EQ(0, Connect());
EXPECT_TRUE_WAIT(have_connected_, kConnectTimeoutMs);
- rtc::Thread::Current()->Post(this, MSG_WRITE);
+ rtc::Thread::Current()->Post(FROM_HERE, this, MSG_WRITE);
EXPECT_TRUE_WAIT(have_disconnected_, kTransferTimeoutMs);
ASSERT_EQ(2u, send_position_.size());
@@ -563,7 +563,7 @@ class PseudoTcpTestReceiveWindow : public PseudoTcpTestBase {
// If there are non-clock messages remaining, attempt to continue sending
// after giving those messages time to process, which should free up the
// send buffer.
- rtc::Thread::Current()->PostDelayed(10, this, MSG_WRITE);
+ rtc::Thread::Current()->PostDelayed(FROM_HERE, 10, this, MSG_WRITE);
} else {
if (!remote_.isReceiveBufferFull()) {
LOG(LS_ERROR) << "This shouldn't happen - the send buffer is full, "

Powered by Google App Engine
This is Rietveld 408576698