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

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

Issue 2774623006: Let PacketRouter separate send and receive modules. (Closed)
Patch Set: Send feedback messages on a send module, if possible. 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
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 EXPECT_CALL(*channel_proxy_, SetNACKStatus(true, 15)).Times(1); 89 EXPECT_CALL(*channel_proxy_, SetNACKStatus(true, 15)).Times(1);
90 EXPECT_CALL(*channel_proxy_, 90 EXPECT_CALL(*channel_proxy_,
91 SetReceiveAudioLevelIndicationStatus(true, kAudioLevelId)) 91 SetReceiveAudioLevelIndicationStatus(true, kAudioLevelId))
92 .Times(1); 92 .Times(1);
93 EXPECT_CALL(*channel_proxy_, 93 EXPECT_CALL(*channel_proxy_,
94 EnableReceiveTransportSequenceNumber(kTransportSequenceNumberId)) 94 EnableReceiveTransportSequenceNumber(kTransportSequenceNumberId))
95 .Times(1); 95 .Times(1);
96 EXPECT_CALL(*channel_proxy_, 96 EXPECT_CALL(*channel_proxy_,
97 RegisterReceiverCongestionControlObjects(&packet_router_)) 97 RegisterReceiverCongestionControlObjects(&packet_router_))
98 .Times(1); 98 .Times(1);
99 EXPECT_CALL(*channel_proxy_, ResetCongestionControlObjects()) 99 EXPECT_CALL(*channel_proxy_, ResetReceiverCongestionControlObjects())
100 .Times(1); 100 .Times(1);
101 EXPECT_CALL(*channel_proxy_, RegisterExternalTransport(nullptr)) 101 EXPECT_CALL(*channel_proxy_, RegisterExternalTransport(nullptr))
102 .Times(1); 102 .Times(1);
103 EXPECT_CALL(*channel_proxy_, DeRegisterExternalTransport()) 103 EXPECT_CALL(*channel_proxy_, DeRegisterExternalTransport())
104 .Times(1); 104 .Times(1);
105 EXPECT_CALL(*channel_proxy_, GetAudioDecoderFactory()) 105 EXPECT_CALL(*channel_proxy_, GetAudioDecoderFactory())
106 .WillOnce(ReturnRef(decoder_factory_)); 106 .WillOnce(ReturnRef(decoder_factory_));
107 testing::Expectation expect_set = 107 testing::Expectation expect_set =
108 EXPECT_CALL(*channel_proxy_, SetRtcEventLog(&event_log_)) 108 EXPECT_CALL(*channel_proxy_, SetRtcEventLog(&event_log_))
109 .Times(1); 109 .Times(1);
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 346
347 EXPECT_CALL(helper.voice_engine(), StartPlayout(_)).WillOnce(Return(0)); 347 EXPECT_CALL(helper.voice_engine(), StartPlayout(_)).WillOnce(Return(0));
348 EXPECT_CALL(helper.voice_engine(), StopPlayout(_)); 348 EXPECT_CALL(helper.voice_engine(), StopPlayout(_));
349 EXPECT_CALL(*helper.audio_mixer(), AddSource(&recv_stream)) 349 EXPECT_CALL(*helper.audio_mixer(), AddSource(&recv_stream))
350 .WillOnce(Return(true)); 350 .WillOnce(Return(true));
351 351
352 recv_stream.Start(); 352 recv_stream.Start();
353 } 353 }
354 } // namespace test 354 } // namespace test
355 } // namespace webrtc 355 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698