OLD | NEW |
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 2790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2801 Call* receiver_call_; | 2801 Call* receiver_call_; |
2802 int64_t start_runtime_ms_; | 2802 int64_t start_runtime_ms_; |
2803 int num_frames_received_ GUARDED_BY(&crit_); | 2803 int num_frames_received_ GUARDED_BY(&crit_); |
2804 } test(use_rtx, use_red, screenshare); | 2804 } test(use_rtx, use_red, screenshare); |
2805 | 2805 |
2806 metrics::Reset(); | 2806 metrics::Reset(); |
2807 RunBaseTest(&test); | 2807 RunBaseTest(&test); |
2808 | 2808 |
2809 std::string video_prefix = | 2809 std::string video_prefix = |
2810 screenshare ? "WebRTC.Video.Screenshare." : "WebRTC.Video."; | 2810 screenshare ? "WebRTC.Video.Screenshare." : "WebRTC.Video."; |
2811 | 2811 // The content type extension is disabled in non screenshare test, |
| 2812 // therefore no slicing on simulcast id should be present. |
| 2813 std::string video_suffix = screenshare ? ".S0" : ""; |
2812 // Verify that stats have been updated once. | 2814 // Verify that stats have been updated once. |
2813 EXPECT_EQ(2, metrics::NumSamples("WebRTC.Call.LifetimeInSeconds")); | 2815 EXPECT_EQ(2, metrics::NumSamples("WebRTC.Call.LifetimeInSeconds")); |
2814 EXPECT_EQ(1, metrics::NumSamples( | 2816 EXPECT_EQ(1, metrics::NumSamples( |
2815 "WebRTC.Call.TimeReceivingVideoRtpPacketsInSeconds")); | 2817 "WebRTC.Call.TimeReceivingVideoRtpPacketsInSeconds")); |
2816 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.VideoBitrateReceivedInKbps")); | 2818 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.VideoBitrateReceivedInKbps")); |
2817 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.RtcpBitrateReceivedInBps")); | 2819 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.RtcpBitrateReceivedInBps")); |
2818 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.BitrateReceivedInKbps")); | 2820 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.BitrateReceivedInKbps")); |
2819 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.EstimatedSendBitrateInKbps")); | 2821 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.EstimatedSendBitrateInKbps")); |
2820 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.PacerBitrateInKbps")); | 2822 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.PacerBitrateInKbps")); |
2821 | 2823 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2863 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "InputFramesPerSecond")); | 2865 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "InputFramesPerSecond")); |
2864 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "SentFramesPerSecond")); | 2866 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "SentFramesPerSecond")); |
2865 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.DecodedFramesPerSecond")); | 2867 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.DecodedFramesPerSecond")); |
2866 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.RenderFramesPerSecond")); | 2868 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.RenderFramesPerSecond")); |
2867 | 2869 |
2868 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.JitterBufferDelayInMs")); | 2870 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.JitterBufferDelayInMs")); |
2869 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.TargetDelayInMs")); | 2871 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.TargetDelayInMs")); |
2870 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.CurrentDelayInMs")); | 2872 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.CurrentDelayInMs")); |
2871 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.OnewayDelayInMs")); | 2873 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.OnewayDelayInMs")); |
2872 | 2874 |
2873 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "EndToEndDelayInMs")); | 2875 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "EndToEndDelayInMs" + |
2874 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "EndToEndDelayMaxInMs")); | 2876 video_suffix)); |
2875 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "InterframeDelayInMs")); | 2877 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "EndToEndDelayMaxInMs" + |
2876 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "InterframeDelayMaxInMs")); | 2878 video_suffix)); |
| 2879 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "InterframeDelayInMs" + |
| 2880 video_suffix)); |
| 2881 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "InterframeDelayMaxInMs" + |
| 2882 video_suffix)); |
2877 | 2883 |
2878 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.RenderSqrtPixelsPerSecond")); | 2884 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.RenderSqrtPixelsPerSecond")); |
2879 | 2885 |
2880 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "EncodeTimeInMs")); | 2886 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "EncodeTimeInMs")); |
2881 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.DecodeTimeInMs")); | 2887 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.DecodeTimeInMs")); |
2882 | 2888 |
2883 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "NumberOfPauseEvents")); | 2889 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "NumberOfPauseEvents")); |
2884 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "PausedTimeInPercent")); | 2890 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "PausedTimeInPercent")); |
2885 | 2891 |
2886 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "BitrateSentInKbps")); | 2892 EXPECT_EQ(1, metrics::NumSamples(video_prefix + "BitrateSentInKbps")); |
(...skipping 2125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5012 std::unique_ptr<VideoEncoder> encoder_; | 5018 std::unique_ptr<VideoEncoder> encoder_; |
5013 std::unique_ptr<VideoDecoder> decoder_; | 5019 std::unique_ptr<VideoDecoder> decoder_; |
5014 rtc::CriticalSection crit_; | 5020 rtc::CriticalSection crit_; |
5015 int recorded_frames_ GUARDED_BY(crit_); | 5021 int recorded_frames_ GUARDED_BY(crit_); |
5016 } test(this); | 5022 } test(this); |
5017 | 5023 |
5018 RunBaseTest(&test); | 5024 RunBaseTest(&test); |
5019 } | 5025 } |
5020 | 5026 |
5021 } // namespace webrtc | 5027 } // namespace webrtc |
OLD | NEW |