diff --git a/api/BUILD.gn b/api/BUILD.gn index 45d3bb5980..0b86f196e5 100644 --- a/api/BUILD.gn +++ b/api/BUILD.gn @@ -196,6 +196,7 @@ rtc_source_set("video_quality_test_fixture_api") { "../call:rtp_interfaces", "../test:test_common", "../test:video_test_common", + "transport:network_control", "video_codecs:video_codecs_api", ] } diff --git a/api/test/video_quality_test_fixture.h b/api/test/video_quality_test_fixture.h index e563c513d4..e425ace73b 100644 --- a/api/test/video_quality_test_fixture.h +++ b/api/test/video_quality_test_fixture.h @@ -21,6 +21,7 @@ #include "api/media_types.h" #include "api/network_state_predictor.h" #include "api/test/simulated_network.h" +#include "api/transport/network_control.h" #include "api/video_codecs/video_encoder_config.h" namespace webrtc { @@ -123,6 +124,8 @@ class VideoQualityTestFixtureInterface { std::unique_ptr fec_controller_factory; std::unique_ptr network_state_predictor_factory; + std::unique_ptr + network_controller_factory; }; virtual ~VideoQualityTestFixtureInterface() = default; diff --git a/test/call_test.cc b/test/call_test.cc index 3538085a29..52d3b23f2a 100644 --- a/test/call_test.cc +++ b/test/call_test.cc @@ -220,6 +220,7 @@ void CallTest::CreateSenderCall(const Call::Config& config) { auto sender_config = config; sender_config.network_state_predictor_factory = network_state_predictor_factory_.get(); + sender_config.network_controller_factory = network_controller_factory_.get(); sender_call_.reset(Call::Create(sender_config)); } diff --git a/test/call_test.h b/test/call_test.h index e27b7dbec9..bc46f4509f 100644 --- a/test/call_test.h +++ b/test/call_test.h @@ -204,6 +204,8 @@ class CallTest : public ::testing::Test { std::unique_ptr fec_controller_factory_; std::unique_ptr network_state_predictor_factory_; + std::unique_ptr + network_controller_factory_; test::FunctionVideoEncoderFactory fake_encoder_factory_; int fake_encoder_max_bitrate_ = -1; diff --git a/video/video_quality_test.cc b/video/video_quality_test.cc index b48f08eb6d..ccbc3e1d84 100644 --- a/video/video_quality_test.cc +++ b/video/video_quality_test.cc @@ -363,6 +363,8 @@ VideoQualityTest::VideoQualityTest( std::move(injection_components_->fec_controller_factory); network_state_predictor_factory_ = std::move(injection_components_->network_state_predictor_factory); + network_controller_factory_ = + std::move(injection_components_->network_controller_factory); } VideoQualityTest::Params::Params()