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

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

Issue 2986893002: Piggybacking simulcast id and ALR experiment id into video content type extension. (Closed)
Patch Set: Change nameing style of metrics with simulcast suffixies Created 3 years, 4 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 | « webrtc/system_wrappers/include/metrics.h ('k') | 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 2623 matching lines...) Expand 10 before | Expand all | Expand 10 after
2634 2634
2635 metrics::Reset(); 2635 metrics::Reset();
2636 RunBaseTest(&test); 2636 RunBaseTest(&test);
2637 2637
2638 // Delete the call for Call stats to be reported. 2638 // Delete the call for Call stats to be reported.
2639 sender_call_.reset(); 2639 sender_call_.reset();
2640 receiver_call_.reset(); 2640 receiver_call_.reset();
2641 2641
2642 std::string video_prefix = 2642 std::string video_prefix =
2643 screenshare ? "WebRTC.Video.Screenshare." : "WebRTC.Video."; 2643 screenshare ? "WebRTC.Video.Screenshare." : "WebRTC.Video.";
2644 2644 std::string video_prefix_sliced =
2645 screenshare ? "WebRTC.Video.Screenshare.S0." : "WebRTC.Video.";
2645 // Verify that stats have been updated once. 2646 // Verify that stats have been updated once.
2646 EXPECT_EQ(2, metrics::NumSamples("WebRTC.Call.LifetimeInSeconds")); 2647 EXPECT_EQ(2, metrics::NumSamples("WebRTC.Call.LifetimeInSeconds"));
2647 EXPECT_EQ(1, metrics::NumSamples( 2648 EXPECT_EQ(1, metrics::NumSamples(
2648 "WebRTC.Call.TimeReceivingVideoRtpPacketsInSeconds")); 2649 "WebRTC.Call.TimeReceivingVideoRtpPacketsInSeconds"));
2649 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.VideoBitrateReceivedInKbps")); 2650 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.VideoBitrateReceivedInKbps"));
2650 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.RtcpBitrateReceivedInBps")); 2651 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.RtcpBitrateReceivedInBps"));
2651 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.BitrateReceivedInKbps")); 2652 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.BitrateReceivedInKbps"));
2652 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.EstimatedSendBitrateInKbps")); 2653 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.EstimatedSendBitrateInKbps"));
2653 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.PacerBitrateInKbps")); 2654 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.PacerBitrateInKbps"));
2654 2655
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
2696 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "InputFramesPerSecond")); 2697 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "InputFramesPerSecond"));
2697 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "SentFramesPerSecond")); 2698 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "SentFramesPerSecond"));
2698 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.DecodedFramesPerSecond")); 2699 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.DecodedFramesPerSecond"));
2699 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.RenderFramesPerSecond")); 2700 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.RenderFramesPerSecond"));
2700 2701
2701 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.JitterBufferDelayInMs")); 2702 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.JitterBufferDelayInMs"));
2702 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.TargetDelayInMs")); 2703 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.TargetDelayInMs"));
2703 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.CurrentDelayInMs")); 2704 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.CurrentDelayInMs"));
2704 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.OnewayDelayInMs")); 2705 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.OnewayDelayInMs"));
2705 2706
2706 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "EndToEndDelayInMs")); 2707 EXPECT_EQ(1, metrics::NumSamples(video_prefix_sliced + "EndToEndDelayInMs"));
ilnik 2017/07/26 14:15:23 Need to fix this test. S0 comes at the very end of
2707 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "EndToEndDelayMaxInMs")); 2708 EXPECT_EQ(1,
2708 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "InterframeDelayInMs")); 2709 metrics::NumSamples(video_prefix_sliced + "EndToEndDelayMaxInMs"));
2709 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "InterframeDelayMaxInMs")); 2710 EXPECT_EQ(1,
2711 metrics::NumSamples(video_prefix_sliced + "InterframeDelayInMs"));
2712 EXPECT_EQ(
2713 1, metrics::NumSamples(video_prefix_sliced + "InterframeDelayMaxInMs"));
2710 2714
2711 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.RenderSqrtPixelsPerSecond")); 2715 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.RenderSqrtPixelsPerSecond"));
2712 2716
2713 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "EncodeTimeInMs")); 2717 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "EncodeTimeInMs"));
2714 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.DecodeTimeInMs")); 2718 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.DecodeTimeInMs"));
2715 2719
2716 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "NumberOfPauseEvents")); 2720 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "NumberOfPauseEvents"));
2717 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "PausedTimeInPercent")); 2721 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "PausedTimeInPercent"));
2718 2722
2719 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "BitrateSentInKbps")); 2723 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "BitrateSentInKbps"));
(...skipping 2037 matching lines...) Expand 10 before | Expand all | Expand 10 after
4757 std::unique_ptr<VideoEncoder> encoder_; 4761 std::unique_ptr<VideoEncoder> encoder_;
4758 std::unique_ptr<VideoDecoder> decoder_; 4762 std::unique_ptr<VideoDecoder> decoder_;
4759 rtc::CriticalSection crit_; 4763 rtc::CriticalSection crit_;
4760 int recorded_frames_ GUARDED_BY(crit_); 4764 int recorded_frames_ GUARDED_BY(crit_);
4761 } test(this); 4765 } test(this);
4762 4766
4763 RunBaseTest(&test); 4767 RunBaseTest(&test);
4764 } 4768 }
4765 4769
4766 } // namespace webrtc 4770 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/system_wrappers/include/metrics.h ('k') | webrtc/video/receive_statistics_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698