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

Side by Side Diff: audio/audio_send_stream_unittest.cc

Issue 3020473002: Remove voe::Statistics. (Closed)
Patch Set: rebase Created 3 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 | « audio/audio_send_stream.cc ('k') | test/mock_voe_channel_proxy.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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 .Times(1); 228 .Times(1);
229 } else { 229 } else {
230 EXPECT_CALL(*channel_proxy_, RegisterSenderCongestionControlObjects( 230 EXPECT_CALL(*channel_proxy_, RegisterSenderCongestionControlObjects(
231 &fake_transport_, Eq(nullptr))) 231 &fake_transport_, Eq(nullptr)))
232 .Times(1); 232 .Times(1);
233 } 233 }
234 EXPECT_CALL(*channel_proxy_, SetBitrate(_, _)) 234 EXPECT_CALL(*channel_proxy_, SetBitrate(_, _))
235 .Times(1); 235 .Times(1);
236 EXPECT_CALL(*channel_proxy_, ResetSenderCongestionControlObjects()) 236 EXPECT_CALL(*channel_proxy_, ResetSenderCongestionControlObjects())
237 .Times(1); 237 .Times(1);
238 EXPECT_CALL(*channel_proxy_, RegisterExternalTransport(nullptr)).Times(1); 238 EXPECT_CALL(*channel_proxy_, RegisterTransport(nullptr)).Times(2);
239 EXPECT_CALL(*channel_proxy_, DeRegisterExternalTransport()).Times(1);
240 EXPECT_CALL(*channel_proxy_, SetRtcEventLog(testing::NotNull())).Times(1); 239 EXPECT_CALL(*channel_proxy_, SetRtcEventLog(testing::NotNull())).Times(1);
241 EXPECT_CALL(*channel_proxy_, SetRtcEventLog(testing::IsNull())) 240 EXPECT_CALL(*channel_proxy_, SetRtcEventLog(testing::IsNull()))
242 .Times(1); // Destructor resets the event log 241 .Times(1); // Destructor resets the event log
243 EXPECT_CALL(*channel_proxy_, SetRtcpRttStats(&rtcp_rtt_stats_)).Times(1); 242 EXPECT_CALL(*channel_proxy_, SetRtcpRttStats(&rtcp_rtt_stats_)).Times(1);
244 EXPECT_CALL(*channel_proxy_, SetRtcpRttStats(testing::IsNull())) 243 EXPECT_CALL(*channel_proxy_, SetRtcpRttStats(testing::IsNull()))
245 .Times(1); // Destructor resets the rtt stats. 244 .Times(1); // Destructor resets the rtt stats.
246 } 245 }
247 246
248 void SetupMockForSetupSendCodec(bool expect_set_encoder_call) { 247 void SetupMockForSetupSendCodec(bool expect_set_encoder_call) {
249 if (expect_set_encoder_call) { 248 if (expect_set_encoder_call) {
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 EXPECT_CALL(*helper.channel_proxy(), RegisterSenderCongestionControlObjects( 586 EXPECT_CALL(*helper.channel_proxy(), RegisterSenderCongestionControlObjects(
588 helper.transport(), Ne(nullptr))) 587 helper.transport(), Ne(nullptr)))
589 .Times(1); 588 .Times(1);
590 } 589 }
591 send_stream.Reconfigure(new_config); 590 send_stream.Reconfigure(new_config);
592 } 591 }
593 592
594 593
595 } // namespace test 594 } // namespace test
596 } // namespace webrtc 595 } // namespace webrtc
OLDNEW
« no previous file with comments | « audio/audio_send_stream.cc ('k') | test/mock_voe_channel_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698