webrtc/rtc_base/task_utils
Tommi 3c9bcc1f7a Reland of the test portion of:
https://webrtc-review.googlesource.com/c/src/+/172847

------------ original description --------------

Preparation for ReceiveStatisticsProxy lock reduction.

Update tests to call VideoReceiveStream::GetStats() in the same or at
least similar way it gets called in production (construction thread,
same TQ/thread).

Mapped out threads and context for ReceiveStatisticsProxy,
VideoQualityObserver and VideoReceiveStream. Added
follow-up TODOs for webrtc:11489.

One functional change in ReceiveStatisticsProxy is that when sender
side RtcpPacketTypesCounterUpdated calls are made, the counter is
updated asynchronously since the sender calls the method on a different
thread than the receiver.

Make CallClient::SendTask public to allow tests to run tasks in the
right context. CallClient already does this internally for GetStats.

Remove 10 sec sleep in StopSendingKeyframeRequestsForInactiveStream.

Bug: webrtc:11489
Change-Id: I491e13344b9fa714de0741dd927d907de7e39e83
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/173583
Commit-Queue: Tommi <tommi@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#31077}
2020-04-15 16:09:44 +00:00
..
BUILD.gn Reland of the test portion of: 2020-04-15 16:09:44 +00:00
pending_task_safety_flag_unittest.cc Reland of the test portion of: 2020-04-15 16:09:44 +00:00
pending_task_safety_flag.cc Reland of the test portion of: 2020-04-15 16:09:44 +00:00
pending_task_safety_flag.h Reland of the test portion of: 2020-04-15 16:09:44 +00:00
repeating_task_unittest.cc Use newer version of TimeDelta and TimeStamp factories in webrtc 2020-02-10 12:21:17 +00:00
repeating_task.cc Use newer version of TimeDelta and TimeStamp factories in webrtc 2020-02-10 12:21:17 +00:00
repeating_task.h Use std::make_unique instead of absl::make_unique. 2019-09-17 15:47:29 +00:00
to_queued_task_unittest.cc Move rtc::NewClosure into own build target as ToQueuedTask 2019-03-04 09:00:38 +00:00
to_queued_task.h Use std::make_unique instead of absl::make_unique. 2019-09-17 15:47:29 +00:00