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

Side by Side Diff: webrtc/video/end_to_end_tests.cc

Issue 1478253002: Add histogram stats for send delay for a sent video stream. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 #include <algorithm> 10 #include <algorithm>
(...skipping 2264 matching lines...) Expand 10 before | Expand all | Expand 10 after
2275 EXPECT_EQ(1, test::NumHistogramSamples( 2275 EXPECT_EQ(1, test::NumHistogramSamples(
2276 "WebRTC.Video.PaddingBitrateReceivedInKbps")); 2276 "WebRTC.Video.PaddingBitrateReceivedInKbps"));
2277 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + 2277 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix +
2278 "RetransmittedBitrateSentInKbps")); 2278 "RetransmittedBitrateSentInKbps"));
2279 EXPECT_EQ(1, test::NumHistogramSamples( 2279 EXPECT_EQ(1, test::NumHistogramSamples(
2280 "WebRTC.Video.RetransmittedBitrateReceivedInKbps")); 2280 "WebRTC.Video.RetransmittedBitrateReceivedInKbps"));
2281 2281
2282 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + "SendSideDelayInMs")); 2282 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + "SendSideDelayInMs"));
2283 EXPECT_EQ(1, 2283 EXPECT_EQ(1,
2284 test::NumHistogramSamples(video_prefix + "SendSideDelayMaxInMs")); 2284 test::NumHistogramSamples(video_prefix + "SendSideDelayMaxInMs"));
2285 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + "SendDelayInMs"));
2285 2286
2286 int num_rtx_samples = use_rtx ? 1 : 0; 2287 int num_rtx_samples = use_rtx ? 1 : 0;
2287 EXPECT_EQ(num_rtx_samples, test::NumHistogramSamples( 2288 EXPECT_EQ(num_rtx_samples, test::NumHistogramSamples(
2288 "WebRTC.Video.RtxBitrateSentInKbps")); 2289 "WebRTC.Video.RtxBitrateSentInKbps"));
2289 EXPECT_EQ(num_rtx_samples, test::NumHistogramSamples( 2290 EXPECT_EQ(num_rtx_samples, test::NumHistogramSamples(
2290 "WebRTC.Video.RtxBitrateReceivedInKbps")); 2291 "WebRTC.Video.RtxBitrateReceivedInKbps"));
2291 2292
2292 int num_red_samples = use_red ? 1 : 0; 2293 int num_red_samples = use_red ? 1 : 0;
2293 EXPECT_EQ(num_red_samples, test::NumHistogramSamples( 2294 EXPECT_EQ(num_red_samples, test::NumHistogramSamples(
2294 "WebRTC.Video.FecBitrateSentInKbps")); 2295 "WebRTC.Video.FecBitrateSentInKbps"));
(...skipping 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after
3608 private: 3609 private:
3609 bool video_observed_; 3610 bool video_observed_;
3610 bool audio_observed_; 3611 bool audio_observed_;
3611 SequenceNumberUnwrapper unwrapper_; 3612 SequenceNumberUnwrapper unwrapper_;
3612 std::set<int64_t> received_packet_ids_; 3613 std::set<int64_t> received_packet_ids_;
3613 } test; 3614 } test;
3614 3615
3615 RunBaseTest(&test); 3616 RunBaseTest(&test);
3616 } 3617 }
3617 } // namespace webrtc 3618 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698