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 566772a42a78e0ecd3d8056f628b230e1b6599d1..23300bbff605cb1abbc8833d5a1d3f4170c4251d 100644 |
--- a/webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc |
+++ b/webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc |
@@ -770,8 +770,10 @@ TEST_F(RtpSenderTest, SendPadding) { |
EXPECT_EQ(kMaxPaddingLength + rtp_header_len, |
transport_.last_sent_packet_len_); |
// Parse sent packet. |
- ASSERT_TRUE(rtp_parser->Parse(transport_.last_sent_packet_, kPaddingBytes, |
+ ASSERT_TRUE(rtp_parser->Parse(transport_.last_sent_packet_, |
+ transport_.last_sent_packet_len_, |
&rtp_header)); |
+ EXPECT_EQ(kMaxPaddingLength, rtp_header.paddingLength); |
// Verify sequence number and timestamp. |
EXPECT_EQ(seq_num++, rtp_header.sequenceNumber); |