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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 AudioState::Config config; | 83 AudioState::Config config; |
84 config.voice_engine = &voice_engine_; | 84 config.voice_engine = &voice_engine_; |
85 audio_state_ = AudioState::Create(config); | 85 audio_state_ = AudioState::Create(config, nullptr); |
86 | 86 |
87 EXPECT_CALL(voice_engine_, ChannelProxyFactory(kChannelId)) | 87 EXPECT_CALL(voice_engine_, ChannelProxyFactory(kChannelId)) |
88 .WillOnce(Invoke([this](int channel_id) { | 88 .WillOnce(Invoke([this](int channel_id) { |
89 EXPECT_FALSE(channel_proxy_); | 89 EXPECT_FALSE(channel_proxy_); |
90 channel_proxy_ = new testing::StrictMock<MockVoEChannelProxy>(); | 90 channel_proxy_ = new testing::StrictMock<MockVoEChannelProxy>(); |
91 EXPECT_CALL(*channel_proxy_, SetLocalSSRC(kLocalSsrc)).Times(1); | 91 EXPECT_CALL(*channel_proxy_, SetLocalSSRC(kLocalSsrc)).Times(1); |
92 EXPECT_CALL(*channel_proxy_, SetNACKStatus(true, 15)).Times(1); | 92 EXPECT_CALL(*channel_proxy_, SetNACKStatus(true, 15)).Times(1); |
93 EXPECT_CALL(*channel_proxy_, | 93 EXPECT_CALL(*channel_proxy_, |
94 SetReceiveAbsoluteSenderTimeStatus(true, kAbsSendTimeId)) | 94 SetReceiveAbsoluteSenderTimeStatus(true, kAbsSendTimeId)) |
95 .Times(1); | 95 .Times(1); |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 ConfigHelper helper; | 367 ConfigHelper helper; |
368 internal::AudioReceiveStream recv_stream( | 368 internal::AudioReceiveStream recv_stream( |
369 helper.congestion_controller(), helper.config(), helper.audio_state(), | 369 helper.congestion_controller(), helper.config(), helper.audio_state(), |
370 helper.event_log()); | 370 helper.event_log()); |
371 EXPECT_CALL(*helper.channel_proxy(), | 371 EXPECT_CALL(*helper.channel_proxy(), |
372 SetChannelOutputVolumeScaling(FloatEq(0.765f))); | 372 SetChannelOutputVolumeScaling(FloatEq(0.765f))); |
373 recv_stream.SetGain(0.765f); | 373 recv_stream.SetGain(0.765f); |
374 } | 374 } |
375 } // namespace test | 375 } // namespace test |
376 } // namespace webrtc | 376 } // namespace webrtc |
OLD | NEW |