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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 EXPECT_CALL(*channel_proxy_, DeRegisterExternalTransport()) | 106 EXPECT_CALL(*channel_proxy_, DeRegisterExternalTransport()) |
107 .Times(1); | 107 .Times(1); |
108 EXPECT_CALL(*channel_proxy_, GetAudioDecoderFactory()) | 108 EXPECT_CALL(*channel_proxy_, GetAudioDecoderFactory()) |
109 .WillOnce(ReturnRef(decoder_factory_)); | 109 .WillOnce(ReturnRef(decoder_factory_)); |
110 testing::Expectation expect_set = | 110 testing::Expectation expect_set = |
111 EXPECT_CALL(*channel_proxy_, SetRtcEventLog(&event_log_)) | 111 EXPECT_CALL(*channel_proxy_, SetRtcEventLog(&event_log_)) |
112 .Times(1); | 112 .Times(1); |
113 EXPECT_CALL(*channel_proxy_, SetRtcEventLog(testing::IsNull())) | 113 EXPECT_CALL(*channel_proxy_, SetRtcEventLog(testing::IsNull())) |
114 .Times(1) | 114 .Times(1) |
115 .After(expect_set); | 115 .After(expect_set); |
| 116 EXPECT_CALL(*channel_proxy_, DisassociateSendChannel()).Times(1); |
116 return channel_proxy_; | 117 return channel_proxy_; |
117 })); | 118 })); |
118 EXPECT_CALL(voice_engine_, StopPlayout(kChannelId)).WillOnce(Return(0)); | 119 EXPECT_CALL(voice_engine_, StopPlayout(kChannelId)).WillOnce(Return(0)); |
119 stream_config_.voe_channel_id = kChannelId; | 120 stream_config_.voe_channel_id = kChannelId; |
120 stream_config_.rtp.local_ssrc = kLocalSsrc; | 121 stream_config_.rtp.local_ssrc = kLocalSsrc; |
121 stream_config_.rtp.remote_ssrc = kRemoteSsrc; | 122 stream_config_.rtp.remote_ssrc = kRemoteSsrc; |
122 stream_config_.rtp.nack.rtp_history_ms = 300; | 123 stream_config_.rtp.nack.rtp_history_ms = 300; |
123 stream_config_.rtp.extensions.push_back( | 124 stream_config_.rtp.extensions.push_back( |
124 RtpExtension(RtpExtension::kAudioLevelUri, kAudioLevelId)); | 125 RtpExtension(RtpExtension::kAudioLevelUri, kAudioLevelId)); |
125 stream_config_.rtp.extensions.push_back(RtpExtension( | 126 stream_config_.rtp.extensions.push_back(RtpExtension( |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 ConfigHelper helper; | 357 ConfigHelper helper; |
357 internal::AudioReceiveStream recv_stream( | 358 internal::AudioReceiveStream recv_stream( |
358 helper.congestion_controller(), helper.config(), helper.audio_state(), | 359 helper.congestion_controller(), helper.config(), helper.audio_state(), |
359 helper.event_log()); | 360 helper.event_log()); |
360 EXPECT_CALL(*helper.channel_proxy(), | 361 EXPECT_CALL(*helper.channel_proxy(), |
361 SetChannelOutputVolumeScaling(FloatEq(0.765f))); | 362 SetChannelOutputVolumeScaling(FloatEq(0.765f))); |
362 recv_stream.SetGain(0.765f); | 363 recv_stream.SetGain(0.765f); |
363 } | 364 } |
364 } // namespace test | 365 } // namespace test |
365 } // namespace webrtc | 366 } // namespace webrtc |
OLD | NEW |