Home
last modified time | relevance | path

Searched refs:acm_ (Results 1 – 7 of 7) sorted by relevance

/external/webrtc/webrtc/modules/audio_coding/test/
Dtarget_delay_unittest.cc25 TargetDelayTest() : acm_(AudioCodingModule::Create(0)) {} in TargetDelayTest()
30 EXPECT_TRUE(acm_.get() != NULL); in SetUp()
34 ASSERT_EQ(0, acm_->InitializeReceiver()); in SetUp()
35 ASSERT_EQ(0, acm_->RegisterReceiveCodec(codec)); in SetUp()
145 ASSERT_EQ(0, acm_->IncomingPacket(payload_, kFrameSizeSamples * 2, in Push()
153 ASSERT_EQ(0, acm_->PlayoutData10Ms(-1, &frame)); in Pull()
179 return acm_->SetMinimumPlayoutDelay(delay_ms); in SetMinimumDelay()
183 return acm_->SetMaximumPlayoutDelay(delay_ms); in SetMaximumDelay()
188 acm_->GetNetworkStatistics(&stats); in GetCurrentOptimalDelayMs()
193 return acm_->LeastRequiredDelayMs(); in RequiredDelay()
[all …]
/external/webrtc/webrtc/modules/audio_coding/acm2/
Dacm_receive_test_oldapi.cc106 acm_(webrtc::AudioCodingModule::Create(0, &clock_)), in AcmReceiveTestOldApi()
115 for (int n = 0; n < acm_->NumberOfCodecs(); n++) { in RegisterDefaultCodecs()
116 ASSERT_EQ(0, acm_->Codec(n, &my_codec_param)) << "Failed to get codec."; in RegisterDefaultCodecs()
118 ASSERT_EQ(0, acm_->RegisterReceiveCodec(my_codec_param)) in RegisterDefaultCodecs()
126 for (int n = 0; n < acm_->NumberOfCodecs(); n++) { in RegisterNetEqTestCodecs()
127 ASSERT_EQ(0, acm_->Codec(n, &my_codec_param)) << "Failed to get codec."; in RegisterNetEqTestCodecs()
137 ASSERT_EQ(0, acm_->RegisterReceiveCodec(my_codec_param)) in RegisterNetEqTestCodecs()
149 return acm_->RegisterExternalReceiveCodec(rtp_payload_type, external_decoder, in RegisterExternalReceiveCodec()
159 EXPECT_EQ(0, acm_->PlayoutData10Ms(output_freq_hz_, &output_frame)); in Run()
184 acm_->IncomingPacket( in Run()
Dacm_receiver_unittest_oldapi.cc62 acm_.reset(new AudioCodingModuleImpl(config)); in AcmReceiverTestOldApi()
70 ASSERT_TRUE(acm_.get() != NULL); in SetUp()
73 acm_->InitializeReceiver(); in SetUp()
74 acm_->RegisterTransportCallback(this); in SetUp()
92 ASSERT_EQ(0, acm_->RegisterSendCodec(codec)); in InsertOnePacketOfSilence()
94 auto current_codec = acm_->SendCodec(); in InsertOnePacketOfSilence()
97 ASSERT_EQ(0, acm_->RegisterSendCodec(codec)); in InsertOnePacketOfSilence()
111 ASSERT_GE(acm_->Add10MsData(frame), 0); in InsertOnePacketOfSilence()
158 rtc::scoped_ptr<AudioCodingModule> acm_; member in webrtc::acm2::AcmReceiverTestOldApi
345 ASSERT_EQ(0, acm_->RegisterSendCodec(CodecIdInst(id).inst)); in TEST_F()
[all …]
Dacm_send_test_oldapi.cc31 acm_(webrtc::AudioCodingModule::Create(0, &clock_)), in AcmSendTestOldApi()
47 acm_->RegisterTransportCallback(this); in AcmSendTestOldApi()
60 codec_registered_ = (acm_->RegisterSendCodec(codec) == 0); in RegisterCodec()
69 acm_->RegisterExternalSendCodec(external_speech_encoder); in RegisterExternalCodec()
96 RTC_CHECK_GE(acm_->Add10MsData(input_frame_), 0); in NextPacket()
Daudio_coding_module_unittest_oldapi.cc166 acm_.reset(AudioCodingModule::Create(id_, clock_)); in SetUp()
179 ASSERT_EQ(0, acm_->RegisterTransportCallback(&packet_cb_)); in SetUp()
191 ASSERT_EQ(0, acm_->RegisterReceiveCodec(codec_)); in RegisterCodec()
192 ASSERT_EQ(0, acm_->RegisterSendCodec(codec_)); in RegisterCodec()
203 acm_->IncomingPacket(kPayload, kPayloadSizeBytes, rtp_header_)); in InsertPacket()
209 ASSERT_EQ(0, acm_->PlayoutData10Ms(-1, &audio_frame)); in PullAudio()
213 ASSERT_GE(acm_->Add10MsData(input_frame_), 0); in InsertAudio()
230 rtc::scoped_ptr<AudioCodingModule> acm_; member in webrtc::AudioCodingModuleTestOldApi
248 acm_->GetDecodingCallStatistics(&stats); in TEST_F()
273 acm_->GetDecodingCallStatistics(&stats); in TEST_F()
[all …]
Dacm_send_test_oldapi.h60 AudioCodingModule* acm() { return acm_.get(); } in acm()
71 rtc::scoped_ptr<AudioCodingModule> acm_; variable
Dacm_receive_test_oldapi.h64 rtc::scoped_ptr<AudioCodingModule> acm_; variable