Index: webrtc/modules/audio_coding/neteq/neteq_impl_unittest.cc |
diff --git a/webrtc/modules/audio_coding/neteq/neteq_impl_unittest.cc b/webrtc/modules/audio_coding/neteq/neteq_impl_unittest.cc |
index 24a07806094824f8941cc7e27391e13df41d92ef..806ca2a76bf95afa163db5a0ad335fa2bb4974cd 100644 |
--- a/webrtc/modules/audio_coding/neteq/neteq_impl_unittest.cc |
+++ b/webrtc/modules/audio_coding/neteq/neteq_impl_unittest.cc |
@@ -211,7 +211,7 @@ TEST(NetEq, CreateAndDestroy) { |
delete neteq; |
} |
-TEST_F(NetEqImplTest, RegisterPayloadType) { |
+TEST_F(NetEqImplTest, RegisterPayloadTypeNetEqDecoder) { |
CreateInstance(); |
uint8_t rtp_payload_type = 0; |
NetEqDecoder codec_type = NetEqDecoder::kDecoderPCMu; |
@@ -221,6 +221,15 @@ TEST_F(NetEqImplTest, RegisterPayloadType) { |
neteq_->RegisterPayloadType(codec_type, kCodecName, rtp_payload_type); |
} |
+TEST_F(NetEqImplTest, RegisterPayloadType) { |
+ CreateInstance(); |
+ constexpr int rtp_payload_type = 0; |
+ const SdpAudioFormat format("pcmu", 8000, 1); |
+ EXPECT_CALL(*mock_decoder_database_, |
+ RegisterPayload(rtp_payload_type, format)); |
+ neteq_->RegisterPayloadType(rtp_payload_type, format); |
+} |
+ |
TEST_F(NetEqImplTest, RemovePayloadType) { |
CreateInstance(); |
uint8_t rtp_payload_type = 0; |