diff --git a/api/test/peerconnection_quality_test_fixture.h b/api/test/peerconnection_quality_test_fixture.h index 434a3a643f..35a42ba8f1 100644 --- a/api/test/peerconnection_quality_test_fixture.h +++ b/api/test/peerconnection_quality_test_fixture.h @@ -431,6 +431,8 @@ class PeerConnectionE2EQualityTestFixture { virtual PeerConfigurer* SetAecDumpPath(std::string path) = 0; virtual PeerConfigurer* SetRTCConfiguration( PeerConnectionInterface::RTCConfiguration configuration) = 0; + virtual PeerConfigurer* SetRTCOfferAnswerOptions( + PeerConnectionInterface::RTCOfferAnswerOptions options) = 0; // Set bitrate parameters on PeerConnection. This constraints will be // applied to all summed RTP streams for this peer. virtual PeerConfigurer* SetBitrateSettings( diff --git a/test/pc/e2e/peer_configurer.h b/test/pc/e2e/peer_configurer.h index 27133e494d..711e09d18d 100644 --- a/test/pc/e2e/peer_configurer.h +++ b/test/pc/e2e/peer_configurer.h @@ -190,6 +190,11 @@ class PeerConfigurerImpl final params_->rtc_configuration = std::move(configuration); return this; } + PeerConfigurer* SetRTCOfferAnswerOptions( + PeerConnectionInterface::RTCOfferAnswerOptions options) override { + params_->rtc_offer_answer_options = std::move(options); + return this; + } PeerConfigurer* SetBitrateSettings( BitrateSettings bitrate_settings) override { params_->bitrate_settings = bitrate_settings; diff --git a/test/pc/e2e/peer_connection_quality_test_params.h b/test/pc/e2e/peer_connection_quality_test_params.h index d9108267ab..8062d20707 100644 --- a/test/pc/e2e/peer_connection_quality_test_params.h +++ b/test/pc/e2e/peer_connection_quality_test_params.h @@ -139,6 +139,7 @@ struct Params { double video_encoder_bitrate_multiplier = 1.0; PeerConnectionInterface::RTCConfiguration rtc_configuration; + PeerConnectionInterface::RTCOfferAnswerOptions rtc_offer_answer_options; BitrateSettings bitrate_settings; std::vector video_codecs; diff --git a/test/pc/e2e/test_peer.h b/test/pc/e2e/test_peer.h index 9858ff389d..0aadeb61aa 100644 --- a/test/pc/e2e/test_peer.h +++ b/test/pc/e2e/test_peer.h @@ -57,12 +57,11 @@ class TestPeer final { void CreateOffer( rtc::scoped_refptr observer) { RTC_CHECK(wrapper_) << "TestPeer is already closed"; - pc()->CreateOffer(observer.release(), - webrtc::PeerConnectionInterface::RTCOfferAnswerOptions()); + pc()->CreateOffer(observer.release(), params_->rtc_offer_answer_options); } std::unique_ptr CreateOffer() { RTC_CHECK(wrapper_) << "TestPeer is already closed"; - return wrapper_->CreateOffer(); + return wrapper_->CreateOffer(params_->rtc_offer_answer_options); } std::unique_ptr CreateAnswer() {