| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 metrics::Reset(); | 152 metrics::Reset(); |
| 153 VoiceEngine* voice_engine = VoiceEngine::Create(); | 153 VoiceEngine* voice_engine = VoiceEngine::Create(); |
| 154 VoEBase* voe_base = VoEBase::GetInterface(voice_engine); | 154 VoEBase* voe_base = VoEBase::GetInterface(voice_engine); |
| 155 VoECodec* voe_codec = VoECodec::GetInterface(voice_engine); | 155 VoECodec* voe_codec = VoECodec::GetInterface(voice_engine); |
| 156 const std::string audio_filename = | 156 const std::string audio_filename = |
| 157 test::ResourcePath("voice_engine/audio_long16", "pcm"); | 157 test::ResourcePath("voice_engine/audio_long16", "pcm"); |
| 158 ASSERT_STRNE("", audio_filename.c_str()); | 158 ASSERT_STRNE("", audio_filename.c_str()); |
| 159 FakeAudioDevice fake_audio_device(Clock::GetRealTimeClock(), audio_filename, | 159 FakeAudioDevice fake_audio_device(Clock::GetRealTimeClock(), audio_filename, |
| 160 audio_rtp_speed); | 160 audio_rtp_speed); |
| 161 EXPECT_EQ(0, voe_base->Init(&fake_audio_device, nullptr, decoder_factory_)); | 161 EXPECT_EQ(0, voe_base->Init(&fake_audio_device, nullptr, decoder_factory_)); |
| 162 Config voe_config; | 162 VoEBase::ChannelConfig config; |
| 163 voe_config.Set<VoicePacing>(new VoicePacing(true)); | 163 config.enable_voice_pacing = true; |
| 164 int send_channel_id = voe_base->CreateChannel(voe_config); | 164 int send_channel_id = voe_base->CreateChannel(config); |
| 165 int recv_channel_id = voe_base->CreateChannel(); | 165 int recv_channel_id = voe_base->CreateChannel(); |
| 166 | 166 |
| 167 AudioState::Config send_audio_state_config; | 167 AudioState::Config send_audio_state_config; |
| 168 send_audio_state_config.voice_engine = voice_engine; | 168 send_audio_state_config.voice_engine = voice_engine; |
| 169 Call::Config sender_config; | 169 Call::Config sender_config; |
| 170 sender_config.audio_state = AudioState::Create(send_audio_state_config); | 170 sender_config.audio_state = AudioState::Create(send_audio_state_config); |
| 171 Call::Config receiver_config; | 171 Call::Config receiver_config; |
| 172 receiver_config.audio_state = sender_config.audio_state; | 172 receiver_config.audio_state = sender_config.audio_state; |
| 173 CreateCalls(sender_config, receiver_config); | 173 CreateCalls(sender_config, receiver_config); |
| 174 | 174 |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 int encoder_inits_; | 697 int encoder_inits_; |
| 698 uint32_t last_set_bitrate_; | 698 uint32_t last_set_bitrate_; |
| 699 VideoSendStream* send_stream_; | 699 VideoSendStream* send_stream_; |
| 700 VideoEncoderConfig encoder_config_; | 700 VideoEncoderConfig encoder_config_; |
| 701 } test; | 701 } test; |
| 702 | 702 |
| 703 RunBaseTest(&test); | 703 RunBaseTest(&test); |
| 704 } | 704 } |
| 705 | 705 |
| 706 } // namespace webrtc | 706 } // namespace webrtc |
| OLD | NEW |