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

Unified Diff: webrtc/base/virtualsocket_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/base/virtualsocket_unittest.cc
diff --git a/webrtc/base/virtualsocket_unittest.cc b/webrtc/base/virtualsocket_unittest.cc
index e63310423f03bd400dcc405f87fd08aff942e495..9d1fbfe23a5aa4f257c4f9046b6af74d58305d52 100644
--- a/webrtc/base/virtualsocket_unittest.cc
+++ b/webrtc/base/virtualsocket_unittest.cc
@@ -36,7 +36,7 @@ struct Sender : public MessageHandler {
rate(rt),
count(0) {
last_send = rtc::TimeMillis();
- thread->PostDelayed(NextDelay(), this, 1);
+ thread->PostDelayed(FROM_HERE, NextDelay(), this, 1);
}
uint32_t NextDelay() {
@@ -61,7 +61,7 @@ struct Sender : public MessageHandler {
socket->Send(dummy, size, options);
last_send = cur_time;
- thread->PostDelayed(NextDelay(), this, 1);
+ thread->PostDelayed(FROM_HERE, NextDelay(), this, 1);
}
Thread* thread;
@@ -86,7 +86,7 @@ struct Receiver : public MessageHandler, public sigslot::has_slots<> {
sum_sq(0),
samples(0) {
socket->SignalReadPacket.connect(this, &Receiver::OnReadPacket);
- thread->PostDelayed(1000, this, 1);
+ thread->PostDelayed(FROM_HERE, 1000, this, 1);
}
~Receiver() {
@@ -121,7 +121,7 @@ struct Receiver : public MessageHandler, public sigslot::has_slots<> {
if (bandwidth > 0)
ASSERT_TRUE(sec_count <= 5 * bandwidth / 4);
sec_count = 0;
- thread->PostDelayed(1000, this, 1);
+ thread->PostDelayed(FROM_HERE, 1000, this, 1);
}
Thread* thread;

Powered by Google App Engine
This is Rietveld 408576698