Index: webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc |
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc b/webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc |
index 9759f1799d5809f93bae00b101f48f8f1ac3269f..bcfa650c02dbfd2755462281eb6695a10776cdce 100644 |
--- a/webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc |
+++ b/webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc |
@@ -951,6 +951,7 @@ TEST_P(RtpSenderTest, NoFlexfecForTimingFrames) { |
constexpr uint32_t kFlexfecSsrc = 5678; |
const std::vector<RtpExtension> kNoRtpExtensions; |
const std::vector<RtpExtensionSize> kNoRtpExtensionSizes; |
+ |
FlexfecSender flexfec_sender(kFlexfecPayloadType, kFlexfecSsrc, kMediaSsrc, |
kNoRtpExtensions, kNoRtpExtensionSizes, |
nullptr /* rtp_state */, &fake_clock_); |
@@ -966,6 +967,10 @@ TEST_P(RtpSenderTest, NoFlexfecForTimingFrames) { |
rtp_sender_->SetSendPayloadType(kMediaPayloadType); |
rtp_sender_->SetStorePacketsStatus(true, 10); |
+ // Need extension to be registered for timing frames to be sent. |
+ ASSERT_EQ(0, rtp_sender_->RegisterRtpHeaderExtension( |
+ kRtpExtensionVideoTiming, kVideoTimingExtensionId)); |
+ |
// Parameters selected to generate a single FEC packet per media packet. |
FecProtectionParams params; |
params.fec_rate = 15; |