| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 congestion_controller_(&simulated_clock_, | 71 congestion_controller_(&simulated_clock_, |
| 72 &bitrate_observer_, | 72 &bitrate_observer_, |
| 73 &remote_bitrate_observer_, | 73 &remote_bitrate_observer_, |
| 74 &event_log_) { | 74 &event_log_) { |
| 75 using testing::Invoke; | 75 using testing::Invoke; |
| 76 | 76 |
| 77 EXPECT_CALL(voice_engine_, | 77 EXPECT_CALL(voice_engine_, |
| 78 RegisterVoiceEngineObserver(_)).WillOnce(Return(0)); | 78 RegisterVoiceEngineObserver(_)).WillOnce(Return(0)); |
| 79 EXPECT_CALL(voice_engine_, | 79 EXPECT_CALL(voice_engine_, |
| 80 DeRegisterVoiceEngineObserver()).WillOnce(Return(0)); | 80 DeRegisterVoiceEngineObserver()).WillOnce(Return(0)); |
| 81 EXPECT_CALL(voice_engine_, audio_processing()); |
| 82 EXPECT_CALL(voice_engine_, audio_device_module()); |
| 83 EXPECT_CALL(voice_engine_, audio_transport()); |
| 84 |
| 81 AudioState::Config config; | 85 AudioState::Config config; |
| 82 config.voice_engine = &voice_engine_; | 86 config.voice_engine = &voice_engine_; |
| 83 audio_state_ = AudioState::Create(config); | 87 audio_state_ = AudioState::Create(config); |
| 84 | 88 |
| 85 EXPECT_CALL(voice_engine_, ChannelProxyFactory(kChannelId)) | 89 EXPECT_CALL(voice_engine_, ChannelProxyFactory(kChannelId)) |
| 86 .WillOnce(Invoke([this](int channel_id) { | 90 .WillOnce(Invoke([this](int channel_id) { |
| 87 EXPECT_FALSE(channel_proxy_); | 91 EXPECT_FALSE(channel_proxy_); |
| 88 channel_proxy_ = new testing::StrictMock<MockVoEChannelProxy>(); | 92 channel_proxy_ = new testing::StrictMock<MockVoEChannelProxy>(); |
| 89 EXPECT_CALL(*channel_proxy_, SetLocalSSRC(kLocalSsrc)).Times(1); | 93 EXPECT_CALL(*channel_proxy_, SetLocalSSRC(kLocalSsrc)).Times(1); |
| 90 EXPECT_CALL(*channel_proxy_, SetNACKStatus(true, 15)).Times(1); | 94 EXPECT_CALL(*channel_proxy_, SetNACKStatus(true, 15)).Times(1); |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 ConfigHelper helper; | 361 ConfigHelper helper; |
| 358 internal::AudioReceiveStream recv_stream( | 362 internal::AudioReceiveStream recv_stream( |
| 359 helper.congestion_controller(), helper.config(), helper.audio_state(), | 363 helper.congestion_controller(), helper.config(), helper.audio_state(), |
| 360 helper.event_log()); | 364 helper.event_log()); |
| 361 EXPECT_CALL(*helper.channel_proxy(), | 365 EXPECT_CALL(*helper.channel_proxy(), |
| 362 SetChannelOutputVolumeScaling(FloatEq(0.765f))); | 366 SetChannelOutputVolumeScaling(FloatEq(0.765f))); |
| 363 recv_stream.SetGain(0.765f); | 367 recv_stream.SetGain(0.765f); |
| 364 } | 368 } |
| 365 } // namespace test | 369 } // namespace test |
| 366 } // namespace webrtc | 370 } // namespace webrtc |
| OLD | NEW |