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

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

Issue 3011623002: Add new ANA stats to GetStats() to count the number of actions taken by each controller. (Closed)
Patch Set: Fix for failing test. Created 3 years, 3 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 | « webrtc/audio/audio_send_stream.cc ('k') | webrtc/call/audio_send_stream.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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 block.source_SSRC = kSsrc; 294 block.source_SSRC = kSsrc;
295 report_blocks.push_back(block); // Correct block. 295 report_blocks.push_back(block); // Correct block.
296 block.fraction_lost = 0; 296 block.fraction_lost = 0;
297 report_blocks.push_back(block); // Duplicate SSRC, bad fraction_lost. 297 report_blocks.push_back(block); // Duplicate SSRC, bad fraction_lost.
298 298
299 EXPECT_TRUE(channel_proxy_); 299 EXPECT_TRUE(channel_proxy_);
300 EXPECT_CALL(*channel_proxy_, GetRTCPStatistics()) 300 EXPECT_CALL(*channel_proxy_, GetRTCPStatistics())
301 .WillRepeatedly(Return(kCallStats)); 301 .WillRepeatedly(Return(kCallStats));
302 EXPECT_CALL(*channel_proxy_, GetRemoteRTCPReportBlocks()) 302 EXPECT_CALL(*channel_proxy_, GetRemoteRTCPReportBlocks())
303 .WillRepeatedly(Return(report_blocks)); 303 .WillRepeatedly(Return(report_blocks));
304 EXPECT_CALL(*channel_proxy_, GetANAStatistics())
305 .WillRepeatedly(Return(ANAStats()));
304 EXPECT_CALL(voice_engine_, transmit_mixer()) 306 EXPECT_CALL(voice_engine_, transmit_mixer())
305 .WillRepeatedly(Return(&transmit_mixer_)); 307 .WillRepeatedly(Return(&transmit_mixer_));
306 308
307 EXPECT_CALL(transmit_mixer_, AudioLevelFullRange()) 309 EXPECT_CALL(transmit_mixer_, AudioLevelFullRange())
308 .WillRepeatedly(Return(kSpeechInputLevel)); 310 .WillRepeatedly(Return(kSpeechInputLevel));
309 EXPECT_CALL(transmit_mixer_, GetTotalInputEnergy()) 311 EXPECT_CALL(transmit_mixer_, GetTotalInputEnergy())
310 .WillRepeatedly(Return(kTotalInputEnergy)); 312 .WillRepeatedly(Return(kTotalInputEnergy));
311 EXPECT_CALL(transmit_mixer_, GetTotalInputDuration()) 313 EXPECT_CALL(transmit_mixer_, GetTotalInputDuration())
312 .WillRepeatedly(Return(kTotalInputDuration)); 314 .WillRepeatedly(Return(kTotalInputDuration));
313 315
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 EXPECT_CALL(*helper.channel_proxy(), RegisterSenderCongestionControlObjects( 607 EXPECT_CALL(*helper.channel_proxy(), RegisterSenderCongestionControlObjects(
606 helper.transport(), Ne(nullptr))) 608 helper.transport(), Ne(nullptr)))
607 .Times(1); 609 .Times(1);
608 } 610 }
609 send_stream.Reconfigure(new_config); 611 send_stream.Reconfigure(new_config);
610 } 612 }
611 613
612 614
613 } // namespace test 615 } // namespace test
614 } // namespace webrtc 616 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/audio/audio_send_stream.cc ('k') | webrtc/call/audio_send_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698