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

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

Issue 1885393002: Add histogram stats for jitter buffer delay and target delay for received video streams: (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: add stats for current delay 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/video/receive_statistics_proxy.h » ('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) 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 2135 matching lines...) Expand 10 before | Expand all | Expand 10 after
2146 EXPECT_EQ(static_cast<int>(video_encoder_config_.streams[0].height), 2146 EXPECT_EQ(static_cast<int>(video_encoder_config_.streams[0].height),
2147 test::LastHistogramSample("WebRTC.Video.ReceivedHeightInPixels")); 2147 test::LastHistogramSample("WebRTC.Video.ReceivedHeightInPixels"));
2148 2148
2149 EXPECT_EQ(1, 2149 EXPECT_EQ(1,
2150 test::NumHistogramSamples(video_prefix + "InputFramesPerSecond")); 2150 test::NumHistogramSamples(video_prefix + "InputFramesPerSecond"));
2151 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + "SentFramesPerSecond")); 2151 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + "SentFramesPerSecond"));
2152 EXPECT_EQ(1, test::NumHistogramSamples( 2152 EXPECT_EQ(1, test::NumHistogramSamples(
2153 "WebRTC.Video.DecodedFramesPerSecond")); 2153 "WebRTC.Video.DecodedFramesPerSecond"));
2154 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.RenderFramesPerSecond")); 2154 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.RenderFramesPerSecond"));
2155 2155
2156 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.JitterBufferDelayInMs"));
2157 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.TargetDelayInMs"));
2158 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.CurrentDelayInMs"));
2156 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.OnewayDelayInMs")); 2159 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.OnewayDelayInMs"));
2157 EXPECT_EQ( 2160 EXPECT_EQ(
2158 1, test::NumHistogramSamples("WebRTC.Video.RenderSqrtPixelsPerSecond")); 2161 1, test::NumHistogramSamples("WebRTC.Video.RenderSqrtPixelsPerSecond"));
2159 2162
2160 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + "EncodeTimeInMs")); 2163 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + "EncodeTimeInMs"));
2161 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.DecodeTimeInMs")); 2164 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.DecodeTimeInMs"));
2162 2165
2163 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + "BitrateSentInKbps")); 2166 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + "BitrateSentInKbps"));
2164 EXPECT_EQ(1, test::NumHistogramSamples( 2167 EXPECT_EQ(1, test::NumHistogramSamples(
2165 "WebRTC.Video.BitrateReceivedInKbps")); 2168 "WebRTC.Video.BitrateReceivedInKbps"));
(...skipping 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after
3504 private: 3507 private:
3505 bool video_observed_; 3508 bool video_observed_;
3506 bool audio_observed_; 3509 bool audio_observed_;
3507 SequenceNumberUnwrapper unwrapper_; 3510 SequenceNumberUnwrapper unwrapper_;
3508 std::set<int64_t> received_packet_ids_; 3511 std::set<int64_t> received_packet_ids_;
3509 } test; 3512 } test;
3510 3513
3511 RunBaseTest(&test); 3514 RunBaseTest(&test);
3512 } 3515 }
3513 } // namespace webrtc 3516 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/video/receive_statistics_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698