| 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 0403ce8a44fc471968cf1187c0de68a5e37c0fea..0f851764307392f75eb825e373c819686daf79f0 100644
|
| --- a/webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc
|
| +++ b/webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc
|
| @@ -1248,7 +1248,7 @@ TEST_F(RtpSenderAudioTest, SendAudioWithAudioLevelExtension) {
|
| // audio channel.
|
| // This test checks the marker bit for the first packet and the consequent
|
| // packets of the same telephone event. Since it is specifically for DTMF
|
| -// events, ignoring audio packets and sending kFrameEmpty instead of those.
|
| +// events, ignoring audio packets and sending kSkipFrame instead of those.
|
| TEST_F(RtpSenderAudioTest, CheckMarkerBitForTelephoneEvents) {
|
| char payload_name[RTP_PAYLOAD_NAME_SIZE] = "telephone-event";
|
| uint8_t payload_type = 126;
|
| @@ -1266,13 +1266,13 @@ TEST_F(RtpSenderAudioTest, CheckMarkerBitForTelephoneEvents) {
|
| // During start, it takes the starting timestamp as last sent timestamp.
|
| // The duration is calculated as the difference of current and last sent
|
| // timestamp. So for first call it will skip since the duration is zero.
|
| - ASSERT_EQ(0, rtp_sender_->SendOutgoingData(kFrameEmpty, payload_type,
|
| + ASSERT_EQ(0, rtp_sender_->SendOutgoingData(kSkipFrame, payload_type,
|
| capture_time_ms, 0, nullptr, 0,
|
| nullptr));
|
| // DTMF Sample Length is (Frequency/1000) * Duration.
|
| // So in this case, it is (8000/1000) * 500 = 4000.
|
| // Sending it as two packets.
|
| - ASSERT_EQ(0, rtp_sender_->SendOutgoingData(kFrameEmpty, payload_type,
|
| + ASSERT_EQ(0, rtp_sender_->SendOutgoingData(kSkipFrame, payload_type,
|
| capture_time_ms + 2000, 0, nullptr,
|
| 0, nullptr));
|
| rtc::scoped_ptr<webrtc::RtpHeaderParser> rtp_parser(
|
| @@ -1285,7 +1285,7 @@ TEST_F(RtpSenderAudioTest, CheckMarkerBitForTelephoneEvents) {
|
| // Marker Bit should be set to 1 for first packet.
|
| EXPECT_TRUE(rtp_header.markerBit);
|
|
|
| - ASSERT_EQ(0, rtp_sender_->SendOutgoingData(kFrameEmpty, payload_type,
|
| + ASSERT_EQ(0, rtp_sender_->SendOutgoingData(kSkipFrame, payload_type,
|
| capture_time_ms + 4000, 0, nullptr,
|
| 0, nullptr));
|
| ASSERT_TRUE(rtp_parser->Parse(transport_.last_sent_packet_,
|
|
|