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

Side by Side Diff: webrtc/modules/audio_coding/neteq/neteq_network_stats_unittest.cc

Issue 1429943004: AcmReceiver::InsertPacket and NetEq::InsertPacket: Take ArrayView arguments (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix log message Created 5 years, 1 month 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 time_now = next_send_time = last_lost_time_ = 184 time_now = next_send_time = last_lost_time_ =
185 rtp_generator_->GetRtpHeader(kPayloadType, frame_size_samples_, 185 rtp_generator_->GetRtpHeader(kPayloadType, frame_size_samples_,
186 &rtp_header_); 186 &rtp_header_);
187 for (int k = 0; k < num_loops; ++k) { 187 for (int k = 0; k < num_loops; ++k) {
188 // Delay by one frame such that the FEC can come in. 188 // Delay by one frame such that the FEC can come in.
189 while (time_now + kFrameSizeMs >= next_send_time) { 189 while (time_now + kFrameSizeMs >= next_send_time) {
190 next_send_time = rtp_generator_->GetRtpHeader(kPayloadType, 190 next_send_time = rtp_generator_->GetRtpHeader(kPayloadType,
191 frame_size_samples_, 191 frame_size_samples_,
192 &rtp_header_); 192 &rtp_header_);
193 if (!Lost(next_send_time)) { 193 if (!Lost(next_send_time)) {
194 InsertPacket(rtp_header_, payload_, kPayloadSizeByte, 194 InsertPacket(rtp_header_, payload_, next_send_time);
195 next_send_time);
196 } 195 }
197 } 196 }
198 GetOutputAudio(kMaxOutputSize, output_, &output_type); 197 GetOutputAudio(kMaxOutputSize, output_, &output_type);
199 time_now += kOutputLengthMs; 198 time_now += kOutputLengthMs;
200 } 199 }
201 CheckNetworkStatistics(expects); 200 CheckNetworkStatistics(expects);
202 neteq()->FlushBuffers(); 201 neteq()->FlushBuffers();
203 } 202 }
204 203
205 void DecodeFecTest() { 204 void DecodeFecTest() {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 test.NoiseExpansionTest(); 291 test.NoiseExpansionTest();
293 EXPECT_CALL(decoder, Die()).Times(1); 292 EXPECT_CALL(decoder, Die()).Times(1);
294 } 293 }
295 294
296 } // namespace test 295 } // namespace test
297 } // namespace webrtc 296 } // namespace webrtc
298 297
299 298
300 299
301 300
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/neteq_impl_unittest.cc ('k') | webrtc/modules/audio_coding/neteq/neteq_stereo_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698