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

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

Issue 2774623006: Let PacketRouter separate send and receive modules. (Closed)
Patch Set: Eliminate std::remove. Created 3 years, 8 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_receive_stream.cc ('k') | webrtc/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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 EXPECT_CALL(*channel_proxy_, SetNACKStatus(true, 15)).Times(1); 90 EXPECT_CALL(*channel_proxy_, SetNACKStatus(true, 15)).Times(1);
91 EXPECT_CALL(*channel_proxy_, 91 EXPECT_CALL(*channel_proxy_,
92 SetReceiveAudioLevelIndicationStatus(true, kAudioLevelId)) 92 SetReceiveAudioLevelIndicationStatus(true, kAudioLevelId))
93 .Times(1); 93 .Times(1);
94 EXPECT_CALL(*channel_proxy_, 94 EXPECT_CALL(*channel_proxy_,
95 EnableReceiveTransportSequenceNumber(kTransportSequenceNumberId)) 95 EnableReceiveTransportSequenceNumber(kTransportSequenceNumberId))
96 .Times(1); 96 .Times(1);
97 EXPECT_CALL(*channel_proxy_, 97 EXPECT_CALL(*channel_proxy_,
98 RegisterReceiverCongestionControlObjects(&packet_router_)) 98 RegisterReceiverCongestionControlObjects(&packet_router_))
99 .Times(1); 99 .Times(1);
100 EXPECT_CALL(*channel_proxy_, ResetCongestionControlObjects()) 100 EXPECT_CALL(*channel_proxy_, ResetReceiverCongestionControlObjects())
101 .Times(1); 101 .Times(1);
102 EXPECT_CALL(*channel_proxy_, RegisterExternalTransport(nullptr)) 102 EXPECT_CALL(*channel_proxy_, RegisterExternalTransport(nullptr))
103 .Times(1); 103 .Times(1);
104 EXPECT_CALL(*channel_proxy_, DeRegisterExternalTransport()) 104 EXPECT_CALL(*channel_proxy_, DeRegisterExternalTransport())
105 .Times(1); 105 .Times(1);
106 EXPECT_CALL(*channel_proxy_, GetAudioDecoderFactory()) 106 EXPECT_CALL(*channel_proxy_, GetAudioDecoderFactory())
107 .WillOnce(ReturnRef(decoder_factory_)); 107 .WillOnce(ReturnRef(decoder_factory_));
108 testing::Expectation expect_set = 108 testing::Expectation expect_set =
109 EXPECT_CALL(*channel_proxy_, SetRtcEventLog(&event_log_)) 109 EXPECT_CALL(*channel_proxy_, SetRtcEventLog(&event_log_))
110 .Times(1); 110 .Times(1);
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 352
353 EXPECT_CALL(helper.voice_engine(), StartPlayout(_)).WillOnce(Return(0)); 353 EXPECT_CALL(helper.voice_engine(), StartPlayout(_)).WillOnce(Return(0));
354 EXPECT_CALL(helper.voice_engine(), StopPlayout(_)); 354 EXPECT_CALL(helper.voice_engine(), StopPlayout(_));
355 EXPECT_CALL(*helper.audio_mixer(), AddSource(&recv_stream)) 355 EXPECT_CALL(*helper.audio_mixer(), AddSource(&recv_stream))
356 .WillOnce(Return(true)); 356 .WillOnce(Return(true));
357 357
358 recv_stream.Start(); 358 recv_stream.Start();
359 } 359 }
360 } // namespace test 360 } // namespace test
361 } // namespace webrtc 361 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/audio/audio_receive_stream.cc ('k') | webrtc/audio/audio_send_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698