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

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

Issue 1313873003: Reland: Implement NetEq's CurrentDelay function (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixing win64 build Created 5 years, 3 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 CHECK_NETEQ_NETWORK_STATS(packet_discard_rate); 163 CHECK_NETEQ_NETWORK_STATS(packet_discard_rate);
164 CHECK_NETEQ_NETWORK_STATS(expand_rate); 164 CHECK_NETEQ_NETWORK_STATS(expand_rate);
165 CHECK_NETEQ_NETWORK_STATS(speech_expand_rate); 165 CHECK_NETEQ_NETWORK_STATS(speech_expand_rate);
166 CHECK_NETEQ_NETWORK_STATS(preemptive_rate); 166 CHECK_NETEQ_NETWORK_STATS(preemptive_rate);
167 CHECK_NETEQ_NETWORK_STATS(accelerate_rate); 167 CHECK_NETEQ_NETWORK_STATS(accelerate_rate);
168 CHECK_NETEQ_NETWORK_STATS(secondary_decoded_rate); 168 CHECK_NETEQ_NETWORK_STATS(secondary_decoded_rate);
169 CHECK_NETEQ_NETWORK_STATS(clockdrift_ppm); 169 CHECK_NETEQ_NETWORK_STATS(clockdrift_ppm);
170 CHECK_NETEQ_NETWORK_STATS(added_zero_samples); 170 CHECK_NETEQ_NETWORK_STATS(added_zero_samples);
171 171
172 #undef CHECK_NETEQ_NETWORK_STATS 172 #undef CHECK_NETEQ_NETWORK_STATS
173
174 // Compare with CurrentDelay, which should be identical.
175 EXPECT_EQ(stats.current_buffer_size_ms, neteq()->CurrentDelayMs());
173 } 176 }
174 177
175 void RunTest(int num_loops, NetEqNetworkStatsCheck expects) { 178 void RunTest(int num_loops, NetEqNetworkStatsCheck expects) {
176 NetEqOutputType output_type; 179 NetEqOutputType output_type;
177 uint32_t time_now; 180 uint32_t time_now;
178 uint32_t next_send_time; 181 uint32_t next_send_time;
179 182
180 // Initiate |last_lost_time_|. 183 // Initiate |last_lost_time_|.
181 time_now = next_send_time = last_lost_time_ = 184 time_now = next_send_time = last_lost_time_ =
182 rtp_generator_->GetRtpHeader(kPayloadType, frame_size_samples_, 185 rtp_generator_->GetRtpHeader(kPayloadType, frame_size_samples_,
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 test.NoiseExpansionTest(); 295 test.NoiseExpansionTest();
293 EXPECT_CALL(decoder, Die()).Times(1); 296 EXPECT_CALL(decoder, Die()).Times(1);
294 } 297 }
295 298
296 } // namespace test 299 } // namespace test
297 } // namespace webrtc 300 } // namespace webrtc
298 301
299 302
300 303
301 304
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/neteq_impl.cc ('k') | webrtc/modules/audio_coding/neteq/neteq_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698