Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: webrtc/audio/audio_receive_stream_unittest.cc

Issue 2383023003: Test upload to see if the ADM is passed correctly to audio_state. (Closed)
Patch Set: forgot send-stream config Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/audio/audio_send_stream_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | webrtc/audio/audio_send_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698