/external/webrtc/modules/video_coding/ |
D | video_receiver2_unittest.cc | 93 constexpr int kPayloadType = 1; in TEST_F() local 94 ASSERT_FALSE(receiver_.IsExternalDecoderRegistered(kPayloadType)); in TEST_F() 102 receiver_.RegisterExternalDecoder(std::move(decoder), kPayloadType); in TEST_F() 103 EXPECT_TRUE(receiver_.IsExternalDecoderRegistered(kPayloadType)); in TEST_F() 104 receiver_.RegisterExternalDecoder(nullptr, kPayloadType); in TEST_F() 106 EXPECT_FALSE(receiver_.IsExternalDecoderRegistered(kPayloadType)); in TEST_F() 110 constexpr int kPayloadType = 1; in TEST_F() local 112 RegisterReceiveCodecSettings(kPayloadType); in TEST_F() 114 TestEncodedFrame frame(kPayloadType); in TEST_F() 128 receiver_.RegisterExternalDecoder(std::move(decoder), kPayloadType); in TEST_F() [all …]
|
D | decoder_database_unittest.cc | 28 constexpr int kPayloadType = 1; in TEST() local 29 ASSERT_FALSE(db.IsExternalDecoderRegistered(kPayloadType)); in TEST() 37 db.RegisterExternalDecoder(kPayloadType, std::move(decoder)); in TEST() 38 EXPECT_TRUE(db.IsExternalDecoderRegistered(kPayloadType)); in TEST() 39 db.DeregisterExternalDecoder(kPayloadType); in TEST() 41 EXPECT_FALSE(db.IsExternalDecoderRegistered(kPayloadType)); in TEST() 46 constexpr int kPayloadType = 1; in TEST() local 47 ASSERT_FALSE(db.DeregisterReceiveCodec(kPayloadType)); in TEST() 53 db.RegisterReceiveCodec(kPayloadType, settings); in TEST() 55 EXPECT_TRUE(db.DeregisterReceiveCodec(kPayloadType)); in TEST()
|
/external/webrtc/modules/audio_coding/neteq/ |
D | neteq_impl_unittest.cc | 181 const uint8_t kPayloadType = 110; in TestDtmfPacket() local 189 rtp_header.payloadType = kPayloadType; in TestDtmfPacket() 195 kPayloadType, SdpAudioFormat("telephone-event", sample_rate_hz, 1))); in TestDtmfPacket() 293 const uint8_t kPayloadType = 0; in TEST_F() local 299 rtp_header.payloadType = kPayloadType; in TEST_F() 304 fake_packet.payload_type = kPayloadType; in TEST_F() 326 EXPECT_CALL(*mock_decoder_database_, GetDecoderInfo(kPayloadType)) in TEST_F() 335 .WillRepeatedly(DoAll(SetArgPointee<2>(kPayloadType), in TEST_F() 396 const uint8_t kPayloadType = 17; // Just an arbitrary number. in TEST_F() local 399 rtp_header.payloadType = kPayloadType; in TEST_F() [all …]
|
D | decoder_database_unittest.cc | 38 const uint8_t kPayloadType = 0; in TEST() local 42 db.RegisterPayload(kPayloadType, SdpAudioFormat(kCodecName, 8000, 1))); in TEST() 45 EXPECT_EQ(DecoderDatabase::kOK, db.Remove(kPayloadType)); in TEST() 77 const uint8_t kPayloadType = 0; in TEST() local 81 db.RegisterPayload(kPayloadType, SdpAudioFormat(kCodecName, 8000, 1))); in TEST() 83 info = db.GetDecoderInfo(kPayloadType); in TEST() 87 EXPECT_EQ(decoder, db.GetDecoder(kPayloadType)); in TEST() 88 info = db.GetDecoderInfo(kPayloadType + 1); // Other payload type. in TEST() 94 const uint8_t kPayloadType = 0; in TEST() local 96 db.RegisterPayload(kPayloadType, SdpAudioFormat("l16", 8000, 1))); in TEST() [all …]
|
D | neteq_network_stats_unittest.cc | 136 static const uint8_t kPayloadType = 95; member in webrtc::test::NetEqNetworkStatsTest 173 neteq_->RegisterPayloadType(kPayloadType, format); in NetEqNetworkStatsTest() 233 kPayloadType, frame_size_samples_, &rtp_header_); in RunTest() 238 kPayloadType, frame_size_samples_, &rtp_header_); in RunTest()
|
D | neteq_decoder_plc_unittest.cc | 182 constexpr int kPayloadType = 100; in RunTest() local 185 encoder_config.payload_type = kPayloadType; in RunTest() 200 decoders.emplace(kPayloadType, SdpAudioFormat("l16", 32000, 1)); in RunTest()
|
/external/webrtc/modules/rtp_rtcp/source/ |
D | rtp_packet_unittest.cc | 27 constexpr int8_t kPayloadType = 100; variable 48 0x80, kPayloadType, kSeqNumFirstByte, kSeqNumSecondByte, 53 0x90, kPayloadType, kSeqNumFirstByte, kSeqNumSecondByte, 60 0x90, kPayloadType, kSeqNumFirstByte, kSeqNumSecondByte, 68 0x90, kPayloadType, kSeqNumFirstByte, kSeqNumSecondByte, 79 0x90, kPayloadType, kSeqNumFirstByte, kSeqNumSecondByte, 89 0x90, kPayloadType, kSeqNumFirstByte, kSeqNumSecondByte, 98 0x90, kPayloadType, kSeqNumFirstByte, kSeqNumSecondByte, 107 0x90, kPayloadType, kSeqNumFirstByte, kSeqNumSecondByte, 116 0x90, kPayloadType, kSeqNumFirstByte, kSeqNumSecondByte, [all …]
|
D | rtp_sender_audio_unittest.cc | 225 const uint8_t kPayloadType = 126; in TEST_F() local 227 kDtmfPayloadName, kPayloadType, kPayloadFrequency, 0, 0)); in TEST_F() 233 kPayloadName, kPayloadType, kPayloadFrequency, 1, 0)); in TEST_F() 242 AudioFrameType::kEmptyFrame, kPayloadType, capture_timestamp, nullptr, 0, in TEST_F() 249 kPayloadType, in TEST_F() 257 kPayloadType, in TEST_F()
|
D | nack_rtx_unittest.cc | 39 const int kPayloadType = 123; variable 156 rtp_rtcp_module_->SetRtxSendPayloadType(kRtxPayloadType, kPayloadType); in SetUp() 209 kPayloadType, false)); in RunRtxTest() 212 kPayloadType, VideoCodecType::kVideoCodecGeneric, timestamp, in RunRtxTest() 232 {kRtxPayloadType, kPayloadType}}; 259 kPayloadType, false)); in TEST_F() 262 kPayloadType, VideoCodecType::kVideoCodecGeneric, timestamp, in TEST_F()
|
D | rtp_rtcp_impl_unittest.cc | 43 const uint8_t kPayloadType = 100; variable 229 EXPECT_TRUE(module->impl_->OnSendingRtpFrame(0, 0, kPayloadType, true)); in SendFrame() 230 EXPECT_TRUE(sender->SendVideo(kPayloadType, VideoCodecType::kVideoCodecVP8, in SendFrame()
|
D | rtp_rtcp_impl2_unittest.cc | 58 constexpr uint8_t kPayloadType = 100; variable 357 bool success = module->impl_->OnSendingRtpFrame(0, 0, kPayloadType, true); in SendFrame() 359 success &= sender->SendVideo(kPayloadType, VideoCodecType::kVideoCodecVP8, in SendFrame() 1115 sender_.impl_->SetRtxSendPayloadType(kRtxPayloadType, kPayloadType); in TEST_F()
|
D | rtp_sender_video_unittest.cc | 1338 const uint8_t kPayloadType = 127; in TEST_F() local 1345 ASSERT_TRUE(rtp_sender_video_->SendVideo(kPayloadType, kCodecType, 1234, 4321, in TEST_F() 1359 ASSERT_TRUE(rtp_sender_video_->SendVideo(kPayloadType, kCodecType, 1234, 4321, in TEST_F() 1371 const uint8_t kPayloadType = 111; in TEST_F() local 1377 ASSERT_TRUE(rtp_sender_video_->SendVideo(kPayloadType, absl::nullopt, 1234, in TEST_F()
|
D | rtp_sender_unittest.cc | 1300 const uint8_t kPayloadType = 127; in TEST_F() local 1315 kPayloadType, kCodecType, in TEST_F() 1331 kPayloadType, kCodecType, in TEST_F()
|
/external/webrtc/modules/audio_coding/neteq/tools/ |
D | packet_unittest.cc | 46 const uint8_t kPayloadType = 17; in TEST() local 50 MakeRtpHeader(kPayloadType, kSequenceNumber, kTimestamp, kSsrc, in TEST() 55 EXPECT_EQ(kPayloadType, packet.header().payloadType); in TEST() 73 const uint8_t kPayloadType = 17; in TEST() local 77 MakeRtpHeader(kPayloadType, kSequenceNumber, kTimestamp, kSsrc, in TEST() 83 EXPECT_EQ(kPayloadType, packet.header().payloadType); in TEST() 101 const uint8_t kPayloadType = 17; in TEST() local 105 MakeRtpHeader(kPayloadType, kSequenceNumber, kTimestamp, kSsrc, in TEST() 112 EXPECT_EQ(kPayloadType, packet.header().payloadType); in TEST()
|
D | neteq_performance_test.cc | 38 const int kPayloadType = 95; in Run() local 48 if (!neteq->RegisterPayloadType(kPayloadType, in Run() 69 rtp_gen.GetRtpHeader(kPayloadType, kInputBlockSizeSamples, &rtp_header); in Run() 97 kPayloadType, kInputBlockSizeSamples, &rtp_header); in Run()
|
D | neteq_quality_test.cc | 107 const uint8_t kPayloadType = 95; variable 315 ASSERT_TRUE(neteq_->RegisterPayloadType(kPayloadType, audio_format_)); in SetUp() 411 kPayloadType, in_size_samples_, &rtp_header_); in Transmit()
|
/external/webrtc/video/ |
D | rtp_video_stream_receiver2_unittest.cc | 127 constexpr int kPayloadType = 100; variable 135 packet->SetPayloadType(kPayloadType); in CreateRtpPacketReceived() 165 rtp_video_stream_receiver_->AddReceiveCodec(kPayloadType, in RtpVideoStreamReceiver2Test() 363 rtp_packet.SetPayloadType(kPayloadType); in TEST_F() 391 rtp_packet.SetPayloadType(kPayloadType); in TEST_F() 421 rtp_packet.SetPayloadType(kPayloadType); in TEST_F() 443 rtp_packet.SetPayloadType(kPayloadType); in TEST_F() 500 rtp_packet.SetPayloadType(kPayloadType); in TEST_F() 531 rtp_packet.SetPayloadType(kPayloadType); in TEST_P() 573 constexpr int kPayloadType = 99; in TEST_P() local [all …]
|
/external/webrtc/call/ |
D | rtp_video_sender_unittest.cc | 46 const int8_t kPayloadType = 96; variable 248 RtpVideoSenderTestFixture test({kSsrc1}, {kRtxSsrc1}, kPayloadType, {}); in TEST() 274 kPayloadType, {}); in TEST() 312 kPayloadType, {}); in TEST() 349 kPayloadType, {}); in TEST() 372 kPayloadType, {}); in TEST() 397 kPayloadType, states); in TEST() 420 RtpVideoSenderTestFixture test({kSsrc1}, {kRtxSsrc1}, kPayloadType, {}, in TEST() 466 kPayloadType, {}); in TEST() 631 kPayloadType, {}); in TEST() [all …]
|
/external/webrtc/test/fuzzers/ |
D | audio_encoder_opus_fuzzer.cc | 21 constexpr int kPayloadType = 100; in FuzzOneInput() local 24 /*encoder=*/AudioEncoderOpus::MakeAudioEncoder(config, kPayloadType)); in FuzzOneInput()
|
D | neteq_rtp_fuzzer.cc | 28 constexpr int kPayloadType = 95; variable 60 config.payload_type = kPayloadType; in FuzzRtpInput() 165 const auto it = codecs.find(kPayloadType); in FuzzOneInputTest()
|
/external/openscreen/cast/streaming/ |
D | rtp_packetizer_unittest.cc | 23 constexpr RtpPayloadType kPayloadType = RtpPayloadType::kAudioOpus; variable 87 EXPECT_EQ(kPayloadType, result->payload_type); in TestGeneratePacket() 131 RtpPacketizer packetizer_{kPayloadType, ssrc_,
|
/external/webrtc/pc/ |
D | sdp_serializer.cc | 53 const char kPayloadType[] = "pt"; variable 286 builder << propertyDelimiter << kPayloadType << kDelimiterEqual; in SerializeRidDescription() 369 if (parts[0] == kPayloadType) { in DeserializeRidDescription()
|
/external/webrtc/modules/audio_coding/acm2/ |
D | audio_coding_module_unittest.cc | 71 const uint8_t kPayloadType = 111; variable 167 : rtp_utility_(new RtpData(kFrameSizeSamples, kPayloadType)), in AudioCodingModuleTestOldApi() 203 acm_->SetReceiveCodecs({{kPayloadType, *audio_format_}}); in RegisterCodec() 205 kPayloadType, *audio_format_, absl::nullopt)); in RegisterCodec() 313 acm_->SetReceiveCodecs({{kPayloadType, *audio_format_}, in RegisterCngCodec() 1176 static const int kPayloadType = 108; // Default payload type for PCM16b-wb. member in webrtc::AcmSwitchingOutputFrequencyOldApi 1184 kPayloadType), in AcmSwitchingOutputFrequencyOldApi()
|
D | acm_receiver_unittest.cc | 402 const uint8_t kPayloadType = 111; in TEST_F() local 408 {{kPayloadType, SdpAudioFormat("L16", kSampleRateHz, 1)}}); in TEST_F() 411 rtp_header.payloadType = kPayloadType; in TEST_F()
|
/external/webrtc/audio/voip/test/ |
D | audio_egress_unittest.cc | 250 constexpr int kPayloadType = 100; in TEST_F() local 255 egress_->RegisterTelephoneEventType(kPayloadType, kSampleRate); in TEST_F() 264 return (rtp.PayloadType() == kPayloadType && in TEST_F()
|