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

Side by Side Diff: audio/audio_receive_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_receive_stream.cc ('k') | audio/audio_send_stream.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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 SetReceiveAudioLevelIndicationStatus(true, kAudioLevelId)) 94 SetReceiveAudioLevelIndicationStatus(true, kAudioLevelId))
95 .Times(1); 95 .Times(1);
96 EXPECT_CALL(*channel_proxy_, 96 EXPECT_CALL(*channel_proxy_,
97 EnableReceiveTransportSequenceNumber(kTransportSequenceNumberId)) 97 EnableReceiveTransportSequenceNumber(kTransportSequenceNumberId))
98 .Times(1); 98 .Times(1);
99 EXPECT_CALL(*channel_proxy_, 99 EXPECT_CALL(*channel_proxy_,
100 RegisterReceiverCongestionControlObjects(&packet_router_)) 100 RegisterReceiverCongestionControlObjects(&packet_router_))
101 .Times(1); 101 .Times(1);
102 EXPECT_CALL(*channel_proxy_, ResetReceiverCongestionControlObjects()) 102 EXPECT_CALL(*channel_proxy_, ResetReceiverCongestionControlObjects())
103 .Times(1); 103 .Times(1);
104 EXPECT_CALL(*channel_proxy_, RegisterExternalTransport(nullptr)) 104 EXPECT_CALL(*channel_proxy_, RegisterTransport(nullptr)).Times(2);
105 .Times(1);
106 EXPECT_CALL(*channel_proxy_, DeRegisterExternalTransport())
107 .Times(1);
108 EXPECT_CALL(*channel_proxy_, GetAudioDecoderFactory()) 105 EXPECT_CALL(*channel_proxy_, GetAudioDecoderFactory())
109 .WillOnce(ReturnRef(decoder_factory_)); 106 .WillOnce(ReturnRef(decoder_factory_));
110 testing::Expectation expect_set = 107 testing::Expectation expect_set =
111 EXPECT_CALL(*channel_proxy_, SetRtcEventLog(&event_log_)) 108 EXPECT_CALL(*channel_proxy_, SetRtcEventLog(&event_log_))
112 .Times(1); 109 .Times(1);
113 EXPECT_CALL(*channel_proxy_, SetRtcEventLog(testing::IsNull())) 110 EXPECT_CALL(*channel_proxy_, SetRtcEventLog(testing::IsNull()))
114 .Times(1) 111 .Times(1)
115 .After(expect_set); 112 .After(expect_set);
116 EXPECT_CALL(*channel_proxy_, DisassociateSendChannel()).Times(1); 113 EXPECT_CALL(*channel_proxy_, DisassociateSendChannel()).Times(1);
117 EXPECT_CALL(*channel_proxy_, SetReceiveCodecs(_)) 114 EXPECT_CALL(*channel_proxy_, SetReceiveCodecs(_))
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 373
377 EXPECT_CALL(helper.voice_engine(), StartPlayout(_)).WillOnce(Return(0)); 374 EXPECT_CALL(helper.voice_engine(), StartPlayout(_)).WillOnce(Return(0));
378 EXPECT_CALL(helper.voice_engine(), StopPlayout(_)); 375 EXPECT_CALL(helper.voice_engine(), StopPlayout(_));
379 EXPECT_CALL(*helper.audio_mixer(), AddSource(&recv_stream)) 376 EXPECT_CALL(*helper.audio_mixer(), AddSource(&recv_stream))
380 .WillOnce(Return(true)); 377 .WillOnce(Return(true));
381 378
382 recv_stream.Start(); 379 recv_stream.Start();
383 } 380 }
384 } // namespace test 381 } // namespace test
385 } // namespace webrtc 382 } // namespace webrtc
OLDNEW
« no previous file with comments | « audio/audio_receive_stream.cc ('k') | audio/audio_send_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698