From 81687b370fce58b162260e1301e77d0d4fbea15a Mon Sep 17 00:00:00 2001 From: Danil Chapovalov Date: Thu, 18 Apr 2019 15:39:53 +0200 Subject: [PATCH] Use explicit TaskQueueFactory for FrameGeneratorCapturer in BitrateEstimatorTest. This replaces the implicit usage of GlobalTaskQueueFactory Bug: webrtc:10284 Change-Id: Iebfcda2bd3ccf25c517c668e96e424e7665b13da Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/133578 Commit-Queue: Danil Chapovalov Reviewed-by: Sebastian Jansson Cr-Commit-Position: refs/heads/master@{#27691} --- call/bitrate_estimator_tests.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/call/bitrate_estimator_tests.cc b/call/bitrate_estimator_tests.cc index 87e37dff2c..324685adbb 100644 --- a/call/bitrate_estimator_tests.cc +++ b/call/bitrate_estimator_tests.cc @@ -178,9 +178,13 @@ class BitrateEstimatorTest : public test::CallTest { test_->GetVideoSendConfig()->Copy(), test_->GetVideoEncoderConfig()->Copy()); RTC_DCHECK_EQ(1, test_->GetVideoEncoderConfig()->number_of_streams); - frame_generator_capturer_.reset(test::FrameGeneratorCapturer::Create( - kDefaultWidth, kDefaultHeight, absl::nullopt, absl::nullopt, - kDefaultFramerate, Clock::GetRealTimeClock())); + frame_generator_capturer_ = + absl::make_unique( + test->clock_, + test::FrameGenerator::CreateSquareGenerator( + kDefaultWidth, kDefaultHeight, absl::nullopt, absl::nullopt), + kDefaultFramerate, *test->task_queue_factory_); + frame_generator_capturer_->Init(); send_stream_->SetSource(frame_generator_capturer_.get(), DegradationPreference::MAINTAIN_FRAMERATE); send_stream_->Start();