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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 congestion_controller_(&simulated_clock_, | 73 congestion_controller_(&simulated_clock_, |
74 &bitrate_observer_, | 74 &bitrate_observer_, |
75 &remote_bitrate_observer_, | 75 &remote_bitrate_observer_, |
76 &event_log_) { | 76 &event_log_) { |
77 using testing::Invoke; | 77 using testing::Invoke; |
78 | 78 |
79 EXPECT_CALL(voice_engine_, | 79 EXPECT_CALL(voice_engine_, |
80 RegisterVoiceEngineObserver(_)).WillOnce(Return(0)); | 80 RegisterVoiceEngineObserver(_)).WillOnce(Return(0)); |
81 EXPECT_CALL(voice_engine_, | 81 EXPECT_CALL(voice_engine_, |
82 DeRegisterVoiceEngineObserver()).WillOnce(Return(0)); | 82 DeRegisterVoiceEngineObserver()).WillOnce(Return(0)); |
| 83 EXPECT_CALL(voice_engine_, audio_transport()).WillOnce(Return(nullptr)); |
83 AudioState::Config config; | 84 AudioState::Config config; |
84 config.voice_engine = &voice_engine_; | 85 config.voice_engine = &voice_engine_; |
85 audio_state_ = AudioState::Create(config); | 86 audio_state_ = AudioState::Create(config); |
86 | 87 |
87 EXPECT_CALL(voice_engine_, ChannelProxyFactory(kChannelId)) | 88 EXPECT_CALL(voice_engine_, ChannelProxyFactory(kChannelId)) |
88 .WillOnce(Invoke([this](int channel_id) { | 89 .WillOnce(Invoke([this](int channel_id) { |
89 EXPECT_FALSE(channel_proxy_); | 90 EXPECT_FALSE(channel_proxy_); |
90 channel_proxy_ = new testing::StrictMock<MockVoEChannelProxy>(); | 91 channel_proxy_ = new testing::StrictMock<MockVoEChannelProxy>(); |
91 EXPECT_CALL(*channel_proxy_, SetLocalSSRC(kLocalSsrc)).Times(1); | 92 EXPECT_CALL(*channel_proxy_, SetLocalSSRC(kLocalSsrc)).Times(1); |
92 EXPECT_CALL(*channel_proxy_, SetNACKStatus(true, 15)).Times(1); | 93 EXPECT_CALL(*channel_proxy_, SetNACKStatus(true, 15)).Times(1); |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 ConfigHelper helper; | 368 ConfigHelper helper; |
368 internal::AudioReceiveStream recv_stream( | 369 internal::AudioReceiveStream recv_stream( |
369 helper.congestion_controller(), helper.config(), helper.audio_state(), | 370 helper.congestion_controller(), helper.config(), helper.audio_state(), |
370 helper.event_log()); | 371 helper.event_log()); |
371 EXPECT_CALL(*helper.channel_proxy(), | 372 EXPECT_CALL(*helper.channel_proxy(), |
372 SetChannelOutputVolumeScaling(FloatEq(0.765f))); | 373 SetChannelOutputVolumeScaling(FloatEq(0.765f))); |
373 recv_stream.SetGain(0.765f); | 374 recv_stream.SetGain(0.765f); |
374 } | 375 } |
375 } // namespace test | 376 } // namespace test |
376 } // namespace webrtc | 377 } // namespace webrtc |
OLD | NEW |