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