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

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

Issue 2495833002: Allowing resetting of AudioNetworkAdaptor in AudioSendStream. (Closed)
Patch Set: 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_send_stream.cc ('k') | no next file » | 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 EXPECT_CALL(*channel_proxy_, SetRtcEventLog(testing::NotNull())).Times(1); 135 EXPECT_CALL(*channel_proxy_, SetRtcEventLog(testing::NotNull())).Times(1);
136 EXPECT_CALL(*channel_proxy_, SetRtcEventLog(testing::IsNull())) 136 EXPECT_CALL(*channel_proxy_, SetRtcEventLog(testing::IsNull()))
137 .Times(1); // Destructor resets the event log 137 .Times(1); // Destructor resets the event log
138 } 138 }
139 139
140 void SetupMockForSetupSendCodec() { 140 void SetupMockForSetupSendCodec() {
141 EXPECT_CALL(voice_engine_, SetVADStatus(kChannelId, false, _, _)) 141 EXPECT_CALL(voice_engine_, SetVADStatus(kChannelId, false, _, _))
142 .WillOnce(Return(0)); 142 .WillOnce(Return(0));
143 EXPECT_CALL(voice_engine_, SetFECStatus(kChannelId, false)) 143 EXPECT_CALL(voice_engine_, SetFECStatus(kChannelId, false))
144 .WillOnce(Return(0)); 144 .WillOnce(Return(0));
145 EXPECT_CALL(*channel_proxy_, DisableAudioNetworkAdaptor());
145 // Let |GetSendCodec| return -1 for the first time to indicate that no send 146 // Let |GetSendCodec| return -1 for the first time to indicate that no send
146 // codec has been set. 147 // codec has been set.
147 EXPECT_CALL(voice_engine_, GetSendCodec(kChannelId, _)) 148 EXPECT_CALL(voice_engine_, GetSendCodec(kChannelId, _))
148 .WillOnce(Return(-1)); 149 .WillOnce(Return(-1));
149 EXPECT_CALL(voice_engine_, SetSendCodec(kChannelId, _)).WillOnce(Return(0)); 150 EXPECT_CALL(voice_engine_, SetSendCodec(kChannelId, _)).WillOnce(Return(0));
150 } 151 }
151 152
152 void SetupMockForSendTelephoneEvent() { 153 void SetupMockForSendTelephoneEvent() {
153 EXPECT_TRUE(channel_proxy_); 154 EXPECT_TRUE(channel_proxy_);
154 EXPECT_CALL(*channel_proxy_, 155 EXPECT_CALL(*channel_proxy_,
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 EXPECT_CALL(*helper.voice_engine(), SetVADStatus(kChannelId, true, _, _)) 377 EXPECT_CALL(*helper.voice_engine(), SetVADStatus(kChannelId, true, _, _))
377 .WillOnce(Return(0)); 378 .WillOnce(Return(0));
378 internal::AudioSendStream send_stream( 379 internal::AudioSendStream send_stream(
379 stream_config, helper.audio_state(), helper.worker_queue(), 380 stream_config, helper.audio_state(), helper.worker_queue(),
380 helper.congestion_controller(), helper.bitrate_allocator(), 381 helper.congestion_controller(), helper.bitrate_allocator(),
381 helper.event_log()); 382 helper.event_log());
382 } 383 }
383 384
384 } // namespace test 385 } // namespace test
385 } // namespace webrtc 386 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/audio/audio_send_stream.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698