Index: webrtc/video/end_to_end_tests.cc |
diff --git a/webrtc/video/end_to_end_tests.cc b/webrtc/video/end_to_end_tests.cc |
index f85ba06a0186897075842cc43aa5dd873952e77a..2e486749b2fe91a1c8c4fda95318bf5a4fc6956b 100644 |
--- a/webrtc/video/end_to_end_tests.cc |
+++ b/webrtc/video/end_to_end_tests.cc |
@@ -1091,8 +1091,8 @@ void EndToEndTest::DecodesRetransmittedFrame(bool enable_rtx, bool enable_red) { |
if (retransmission_ssrc_ == kSendRtxSsrcs[0]) { |
send_config->rtp.rtx.ssrcs.push_back(kSendRtxSsrcs[0]); |
send_config->rtp.rtx.payload_type = kSendRtxPayloadType; |
- (*receive_configs)[0].rtp.rtx[payload_type_].ssrc = kSendRtxSsrcs[0]; |
- (*receive_configs)[0].rtp.rtx[payload_type_].payload_type = |
+ (*receive_configs)[0].rtp.rtx_ssrc = kSendRtxSsrcs[0]; |
+ (*receive_configs)[0].rtp.rtx_payload_types[payload_type_] = |
kSendRtxPayloadType; |
} |
// Configure encoding and decoding with VP8, since generic packetization |
@@ -2334,9 +2334,8 @@ void EndToEndTest::VerifyHistogramStats(bool use_rtx, |
if (use_rtx_) { |
send_config->rtp.rtx.ssrcs.push_back(kSendRtxSsrcs[0]); |
send_config->rtp.rtx.payload_type = kSendRtxPayloadType; |
- (*receive_configs)[0].rtp.rtx[kFakeVideoSendPayloadType].ssrc = |
- kSendRtxSsrcs[0]; |
- (*receive_configs)[0].rtp.rtx[kFakeVideoSendPayloadType].payload_type = |
+ (*receive_configs)[0].rtp.rtx_ssrc = kSendRtxSsrcs[0]; |
+ (*receive_configs)[0].rtp.rtx_payload_types[kFakeVideoSendPayloadType] = |
kSendRtxPayloadType; |
} |
// RTT needed for RemoteNtpTimeEstimator for the receive stream. |
@@ -2956,9 +2955,8 @@ TEST_P(EndToEndTest, GetStats) { |
(*receive_configs)[i].renderer = &receive_stream_renderer_; |
(*receive_configs)[i].rtp.nack.rtp_history_ms = kNackRtpHistoryMs; |
- (*receive_configs)[i].rtp.rtx[kFakeVideoSendPayloadType].ssrc = |
- kSendRtxSsrcs[i]; |
- (*receive_configs)[i].rtp.rtx[kFakeVideoSendPayloadType].payload_type = |
+ (*receive_configs)[i].rtp.rtx_ssrc = kSendRtxSsrcs[i]; |
+ (*receive_configs)[i].rtp.rtx_payload_types[kFakeVideoSendPayloadType] = |
kSendRtxPayloadType; |
} |
@@ -3946,7 +3944,9 @@ TEST_P(EndToEndTest, VerifyDefaultVideoReceiveConfigParameters) { |
EXPECT_FALSE( |
default_receive_config.rtp.rtcp_xr.receiver_reference_time_report) |
<< "RTCP XR settings require rtcp-xr to be negotiated."; |
- EXPECT_TRUE(default_receive_config.rtp.rtx.empty()) |
+ EXPECT_EQ(0U, default_receive_config.rtp.rtx_ssrc) |
+ << "Enabling RTX requires ssrc-group: FID negotiation"; |
+ EXPECT_TRUE(default_receive_config.rtp.rtx_payload_types.empty()) |
<< "Enabling RTX requires rtpmap: rtx negotiation."; |
EXPECT_TRUE(default_receive_config.rtp.extensions.empty()) |
<< "Enabling RTP extensions require negotiation."; |