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

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

Issue 2454373002: Added an empty AudioTransportProxy to AudioState. (Closed)
Patch Set: Rebase. GYP is removed! Created 4 years, 1 month 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 | « webrtc/audio/audio_receive_stream_unittest.cc ('k') | webrtc/audio/audio_state.h » ('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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 &remote_bitrate_observer_, 67 &remote_bitrate_observer_,
68 &event_log_), 68 &event_log_),
69 bitrate_allocator_(&limit_observer_), 69 bitrate_allocator_(&limit_observer_),
70 worker_queue_("ConfigHelper_worker_queue") { 70 worker_queue_("ConfigHelper_worker_queue") {
71 using testing::Invoke; 71 using testing::Invoke;
72 72
73 EXPECT_CALL(voice_engine_, 73 EXPECT_CALL(voice_engine_,
74 RegisterVoiceEngineObserver(_)).WillOnce(Return(0)); 74 RegisterVoiceEngineObserver(_)).WillOnce(Return(0));
75 EXPECT_CALL(voice_engine_, 75 EXPECT_CALL(voice_engine_,
76 DeRegisterVoiceEngineObserver()).WillOnce(Return(0)); 76 DeRegisterVoiceEngineObserver()).WillOnce(Return(0));
77 EXPECT_CALL(voice_engine_, audio_device_module());
78 EXPECT_CALL(voice_engine_, audio_processing());
79 EXPECT_CALL(voice_engine_, audio_transport());
80
77 AudioState::Config config; 81 AudioState::Config config;
78 config.voice_engine = &voice_engine_; 82 config.voice_engine = &voice_engine_;
79 audio_state_ = AudioState::Create(config); 83 audio_state_ = AudioState::Create(config);
80 84
81 SetupDefaultChannelProxy(); 85 SetupDefaultChannelProxy();
82 86
83 EXPECT_CALL(voice_engine_, ChannelProxyFactory(kChannelId)) 87 EXPECT_CALL(voice_engine_, ChannelProxyFactory(kChannelId))
84 .WillOnce(Invoke([this](int channel_id) { 88 .WillOnce(Invoke([this](int channel_id) {
85 return channel_proxy_; 89 return channel_proxy_;
86 })); 90 }));
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 EXPECT_CALL(*helper.voice_engine(), SetVADStatus(kChannelId, true, _, _)) 390 EXPECT_CALL(*helper.voice_engine(), SetVADStatus(kChannelId, true, _, _))
387 .WillOnce(Return(0)); 391 .WillOnce(Return(0));
388 internal::AudioSendStream send_stream( 392 internal::AudioSendStream send_stream(
389 stream_config, helper.audio_state(), helper.worker_queue(), 393 stream_config, helper.audio_state(), helper.worker_queue(),
390 helper.congestion_controller(), helper.bitrate_allocator(), 394 helper.congestion_controller(), helper.bitrate_allocator(),
391 helper.event_log()); 395 helper.event_log());
392 } 396 }
393 397
394 } // namespace test 398 } // namespace test
395 } // namespace webrtc 399 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/audio/audio_receive_stream_unittest.cc ('k') | webrtc/audio/audio_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698