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

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

Issue 1947873002: Reland of Remove SendPacer from ViEEncoder (patchset #13 id:240001 of https://codereview.we… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixed CongestionController backwards compatibility Created 4 years, 7 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 | « no previous file | webrtc/audio/audio_send_stream_unittest.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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 EXPECT_CALL(*channel_proxy_, GetDecodingCallStatistics()) 150 EXPECT_CALL(*channel_proxy_, GetDecodingCallStatistics())
151 .WillOnce(Return(kAudioDecodeStats)); 151 .WillOnce(Return(kAudioDecodeStats));
152 152
153 EXPECT_CALL(voice_engine_, GetRecCodec(kChannelId, _)) 153 EXPECT_CALL(voice_engine_, GetRecCodec(kChannelId, _))
154 .WillOnce(DoAll(SetArgReferee<1>(kCodecInst), Return(0))); 154 .WillOnce(DoAll(SetArgReferee<1>(kCodecInst), Return(0)));
155 } 155 }
156 156
157 private: 157 private:
158 SimulatedClock simulated_clock_; 158 SimulatedClock simulated_clock_;
159 PacketRouter packet_router_; 159 PacketRouter packet_router_;
160 testing::NiceMock<MockBitrateObserver> bitrate_observer_; 160 testing::NiceMock<MockCongestionObserver> bitrate_observer_;
161 testing::NiceMock<MockRemoteBitrateObserver> remote_bitrate_observer_; 161 testing::NiceMock<MockRemoteBitrateObserver> remote_bitrate_observer_;
162 MockCongestionController congestion_controller_; 162 MockCongestionController congestion_controller_;
163 MockRemoteBitrateEstimator remote_bitrate_estimator_; 163 MockRemoteBitrateEstimator remote_bitrate_estimator_;
164 testing::StrictMock<MockVoiceEngine> voice_engine_; 164 testing::StrictMock<MockVoiceEngine> voice_engine_;
165 rtc::scoped_refptr<AudioState> audio_state_; 165 rtc::scoped_refptr<AudioState> audio_state_;
166 AudioReceiveStream::Config stream_config_; 166 AudioReceiveStream::Config stream_config_;
167 testing::StrictMock<MockVoEChannelProxy>* channel_proxy_ = nullptr; 167 testing::StrictMock<MockVoEChannelProxy>* channel_proxy_ = nullptr;
168 }; 168 };
169 169
170 void BuildOneByteExtension(std::vector<uint8_t>::iterator it, 170 void BuildOneByteExtension(std::vector<uint8_t>::iterator it,
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 EXPECT_EQ(kAudioDecodeStats.calls_to_neteq, stats.decoding_calls_to_neteq); 331 EXPECT_EQ(kAudioDecodeStats.calls_to_neteq, stats.decoding_calls_to_neteq);
332 EXPECT_EQ(kAudioDecodeStats.decoded_normal, stats.decoding_normal); 332 EXPECT_EQ(kAudioDecodeStats.decoded_normal, stats.decoding_normal);
333 EXPECT_EQ(kAudioDecodeStats.decoded_plc, stats.decoding_plc); 333 EXPECT_EQ(kAudioDecodeStats.decoded_plc, stats.decoding_plc);
334 EXPECT_EQ(kAudioDecodeStats.decoded_cng, stats.decoding_cng); 334 EXPECT_EQ(kAudioDecodeStats.decoded_cng, stats.decoding_cng);
335 EXPECT_EQ(kAudioDecodeStats.decoded_plc_cng, stats.decoding_plc_cng); 335 EXPECT_EQ(kAudioDecodeStats.decoded_plc_cng, stats.decoding_plc_cng);
336 EXPECT_EQ(kCallStats.capture_start_ntp_time_ms_, 336 EXPECT_EQ(kCallStats.capture_start_ntp_time_ms_,
337 stats.capture_start_ntp_time_ms); 337 stats.capture_start_ntp_time_ms);
338 } 338 }
339 } // namespace test 339 } // namespace test
340 } // namespace webrtc 340 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/audio/audio_send_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698