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); |