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

Unified Diff: webrtc/base/task_queue_unittest.cc

Issue 2716473002: Use TaskQueue in IncomingVideoStream (Closed)
Patch Set: Print render_time_ms instead of timestamp Created 3 years, 10 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 | « no previous file | webrtc/common_video/include/incoming_video_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/task_queue_unittest.cc
diff --git a/webrtc/base/task_queue_unittest.cc b/webrtc/base/task_queue_unittest.cc
index 4389d35f59258f36122d54b41b18fc715572ee20..c5faf8f5dcc3f5568aa91744af62b4547d4f6cd8 100644
--- a/webrtc/base/task_queue_unittest.cc
+++ b/webrtc/base/task_queue_unittest.cc
@@ -80,6 +80,15 @@ TEST(TaskQueueTest, PostLambda) {
EXPECT_TRUE(event.Wait(1000));
}
+TEST(TaskQueueTest, PostDelayedZero) {
+ static const char kQueueName[] = "PostDelayedZero";
+ Event event(false, false);
+ TaskQueue queue(kQueueName);
+
+ queue.PostDelayedTask([&event]() { event.Set(); }, 0);
+ EXPECT_TRUE(event.Wait(1000));
+}
+
TEST(TaskQueueTest, PostFromQueue) {
static const char kQueueName[] = "PostFromQueue";
Event event(false, false);
« no previous file with comments | « no previous file | webrtc/common_video/include/incoming_video_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698