Fixes race in SendSideCongestionControllerTest.OldFeedback.
This fixes an issue where SendSideCongestionControllerTest.OldFeedback calls a function that posts a task on a TaskQueue and immediately after changes the mocked observer that is called from that task. Bug: webrtc:10056 Change-Id: Ib1cca5bf695482e75106bfc715662e4f76c381d9 Reviewed-on: https://webrtc-review.googlesource.com/c/112940 Reviewed-by: Björn Terelius <terelius@webrtc.org> Commit-Queue: Sebastian Jansson <srte@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25882}
This commit is contained in:

committed by
Commit Bot

parent
ec0f45be11
commit
ec086d842c
@ -302,7 +302,7 @@ TEST_F(SendSideCongestionControllerTest, OldFeedback) {
|
|||||||
feedback.Build();
|
feedback.Build();
|
||||||
controller_->OnTransportFeedback(feedback);
|
controller_->OnTransportFeedback(feedback);
|
||||||
}
|
}
|
||||||
|
controller_->WaitOnTasks();
|
||||||
// If the bitrate is reset to -1, the new starting bitrate will be
|
// If the bitrate is reset to -1, the new starting bitrate will be
|
||||||
// the minimum default bitrate kMinBitrateBps.
|
// the minimum default bitrate kMinBitrateBps.
|
||||||
EXPECT_CALL(
|
EXPECT_CALL(
|
||||||
|
Reference in New Issue
Block a user