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

Unified Diff: webrtc/base/messagequeue_unittest.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/messagequeue.cc ('k') | webrtc/base/network.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/messagequeue_unittest.cc
diff --git a/webrtc/base/messagequeue_unittest.cc b/webrtc/base/messagequeue_unittest.cc
index 50c2ad0ba2efe372415858d4c340c5a8410da8c8..fc3a8f781d2b581638ff81d562279eddd7877408 100644
--- a/webrtc/base/messagequeue_unittest.cc
+++ b/webrtc/base/messagequeue_unittest.cc
@@ -35,7 +35,7 @@ class MessageQueueTest: public testing::Test, public MessageQueue {
Thread worker;
worker.Start();
return worker.Invoke<bool>(
- rtc::Bind(&MessageQueueTest::IsLocked_Worker, this));
+ RTC_FROM_HERE, rtc::Bind(&MessageQueueTest::IsLocked_Worker, this));
}
};
@@ -55,11 +55,11 @@ static void DelayedPostsWithIdenticalTimesAreProcessedInFifoOrder(
MessageQueue* q) {
EXPECT_TRUE(q != NULL);
int64_t now = TimeMillis();
- q->PostAt(now, NULL, 3);
- q->PostAt(now - 2, NULL, 0);
- q->PostAt(now - 1, NULL, 1);
- q->PostAt(now, NULL, 4);
- q->PostAt(now - 1, NULL, 2);
+ q->PostAt(RTC_FROM_HERE, now, NULL, 3);
+ q->PostAt(RTC_FROM_HERE, now - 2, NULL, 0);
+ q->PostAt(RTC_FROM_HERE, now - 1, NULL, 1);
+ q->PostAt(RTC_FROM_HERE, now, NULL, 4);
+ q->PostAt(RTC_FROM_HERE, now - 1, NULL, 2);
Message msg;
for (size_t i=0; i<5; ++i) {
@@ -109,7 +109,7 @@ TEST_F(MessageQueueTest, DiposeHandlerWithPostedMessagePending) {
// First, post a dispose.
Dispose(handler);
// Now, post a message, which should *not* be returned by Get().
- Post(handler, 1);
+ Post(RTC_FROM_HERE, handler, 1);
Message msg;
EXPECT_FALSE(Get(&msg, 0));
EXPECT_TRUE(deleted);
« no previous file with comments | « webrtc/base/messagequeue.cc ('k') | webrtc/base/network.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698