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

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

Issue 1905563002: Add histogram for end-to-end delay. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase + add separate histogram for end-to-end delay Created 4 years, 2 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 2171 matching lines...) Expand 10 before | Expand all | Expand 10 after
2182 } 2182 }
2183 // RTX 2183 // RTX
2184 if (use_rtx_) { 2184 if (use_rtx_) {
2185 send_config->rtp.rtx.ssrcs.push_back(kSendRtxSsrcs[0]); 2185 send_config->rtp.rtx.ssrcs.push_back(kSendRtxSsrcs[0]);
2186 send_config->rtp.rtx.payload_type = kSendRtxPayloadType; 2186 send_config->rtp.rtx.payload_type = kSendRtxPayloadType;
2187 (*receive_configs)[0].rtp.rtx[kFakeVideoSendPayloadType].ssrc = 2187 (*receive_configs)[0].rtp.rtx[kFakeVideoSendPayloadType].ssrc =
2188 kSendRtxSsrcs[0]; 2188 kSendRtxSsrcs[0];
2189 (*receive_configs)[0].rtp.rtx[kFakeVideoSendPayloadType].payload_type = 2189 (*receive_configs)[0].rtp.rtx[kFakeVideoSendPayloadType].payload_type =
2190 kSendRtxPayloadType; 2190 kSendRtxPayloadType;
2191 } 2191 }
2192 // RTT needed for RemoteNtpTimeEstimator for the receive stream.
2193 (*receive_configs)[0].rtp.rtcp_xr.receiver_reference_time_report = true;
2192 encoder_config->content_type = 2194 encoder_config->content_type =
2193 screenshare_ ? VideoEncoderConfig::ContentType::kScreen 2195 screenshare_ ? VideoEncoderConfig::ContentType::kScreen
2194 : VideoEncoderConfig::ContentType::kRealtimeVideo; 2196 : VideoEncoderConfig::ContentType::kRealtimeVideo;
2195 } 2197 }
2196 2198
2197 void OnCallsCreated(Call* sender_call, Call* receiver_call) override { 2199 void OnCallsCreated(Call* sender_call, Call* receiver_call) override {
2198 sender_call_ = sender_call; 2200 sender_call_ = sender_call;
2199 receiver_call_ = receiver_call; 2201 receiver_call_ = receiver_call;
2200 } 2202 }
2201 2203
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
2280 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "InputFramesPerSecond")); 2282 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "InputFramesPerSecond"));
2281 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "SentFramesPerSecond")); 2283 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "SentFramesPerSecond"));
2282 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.DecodedFramesPerSecond")); 2284 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.DecodedFramesPerSecond"));
2283 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.RenderFramesPerSecond")); 2285 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.RenderFramesPerSecond"));
2284 2286
2285 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.JitterBufferDelayInMs")); 2287 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.JitterBufferDelayInMs"));
2286 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.TargetDelayInMs")); 2288 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.TargetDelayInMs"));
2287 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.CurrentDelayInMs")); 2289 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.CurrentDelayInMs"));
2288 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.OnewayDelayInMs")); 2290 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.OnewayDelayInMs"));
2289 2291
2292 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.EndToEndDelayInMs"));
2290 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.RenderSqrtPixelsPerSecond")); 2293 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.RenderSqrtPixelsPerSecond"));
2291 2294
2292 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "EncodeTimeInMs")); 2295 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "EncodeTimeInMs"));
2293 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.DecodeTimeInMs")); 2296 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.DecodeTimeInMs"));
2294 2297
2295 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "BitrateSentInKbps")); 2298 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "BitrateSentInKbps"));
2296 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.BitrateReceivedInKbps")); 2299 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.BitrateReceivedInKbps"));
2297 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "MediaBitrateSentInKbps")); 2300 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "MediaBitrateSentInKbps"));
2298 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.MediaBitrateReceivedInKbps")); 2301 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.MediaBitrateReceivedInKbps"));
2299 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "PaddingBitrateSentInKbps")); 2302 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "PaddingBitrateSentInKbps"));
(...skipping 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after
3741 private: 3744 private:
3742 bool video_observed_; 3745 bool video_observed_;
3743 bool audio_observed_; 3746 bool audio_observed_;
3744 SequenceNumberUnwrapper unwrapper_; 3747 SequenceNumberUnwrapper unwrapper_;
3745 std::set<int64_t> received_packet_ids_; 3748 std::set<int64_t> received_packet_ids_;
3746 } test; 3749 } test;
3747 3750
3748 RunBaseTest(&test); 3751 RunBaseTest(&test);
3749 } 3752 }
3750 } // namespace webrtc 3753 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc ('k') | webrtc/video/receive_statistics_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698