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 1976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1987 test::LastHistogramSample("WebRTC.Video.ReceivedWidthInPixels")); | 1987 test::LastHistogramSample("WebRTC.Video.ReceivedWidthInPixels")); |
1988 EXPECT_EQ(static_cast<int>(encoder_config_.streams[0].height), | 1988 EXPECT_EQ(static_cast<int>(encoder_config_.streams[0].height), |
1989 test::LastHistogramSample("WebRTC.Video.ReceivedHeightInPixels")); | 1989 test::LastHistogramSample("WebRTC.Video.ReceivedHeightInPixels")); |
1990 | 1990 |
1991 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.InputFramesPerSecond")); | 1991 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.InputFramesPerSecond")); |
1992 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.SentFramesPerSecond")); | 1992 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.SentFramesPerSecond")); |
1993 EXPECT_EQ(1, test::NumHistogramSamples( | 1993 EXPECT_EQ(1, test::NumHistogramSamples( |
1994 "WebRTC.Video.DecodedFramesPerSecond")); | 1994 "WebRTC.Video.DecodedFramesPerSecond")); |
1995 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.RenderFramesPerSecond")); | 1995 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.RenderFramesPerSecond")); |
1996 | 1996 |
| 1997 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.OnewayDelayInMs")); |
| 1998 EXPECT_EQ( |
| 1999 1, test::NumHistogramSamples("WebRTC.Video.RenderSqrtPixelsPerSecond")); |
| 2000 |
1997 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.EncodeTimeInMs")); | 2001 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.EncodeTimeInMs")); |
1998 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.DecodeTimeInMs")); | 2002 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.DecodeTimeInMs")); |
1999 | 2003 |
2000 EXPECT_EQ(1, test::NumHistogramSamples( | 2004 EXPECT_EQ(1, test::NumHistogramSamples( |
2001 "WebRTC.Video.BitrateSentInKbps")); | 2005 "WebRTC.Video.BitrateSentInKbps")); |
2002 EXPECT_EQ(1, test::NumHistogramSamples( | 2006 EXPECT_EQ(1, test::NumHistogramSamples( |
2003 "WebRTC.Video.BitrateReceivedInKbps")); | 2007 "WebRTC.Video.BitrateReceivedInKbps")); |
2004 EXPECT_EQ(1, test::NumHistogramSamples( | 2008 EXPECT_EQ(1, test::NumHistogramSamples( |
2005 "WebRTC.Video.MediaBitrateSentInKbps")); | 2009 "WebRTC.Video.MediaBitrateSentInKbps")); |
2006 EXPECT_EQ(1, test::NumHistogramSamples( | 2010 EXPECT_EQ(1, test::NumHistogramSamples( |
2007 "WebRTC.Video.MediaBitrateReceivedInKbps")); | 2011 "WebRTC.Video.MediaBitrateReceivedInKbps")); |
2008 EXPECT_EQ(1, test::NumHistogramSamples( | 2012 EXPECT_EQ(1, test::NumHistogramSamples( |
2009 "WebRTC.Video.PaddingBitrateSentInKbps")); | 2013 "WebRTC.Video.PaddingBitrateSentInKbps")); |
2010 EXPECT_EQ(1, test::NumHistogramSamples( | 2014 EXPECT_EQ(1, test::NumHistogramSamples( |
2011 "WebRTC.Video.PaddingBitrateReceivedInKbps")); | 2015 "WebRTC.Video.PaddingBitrateReceivedInKbps")); |
2012 EXPECT_EQ(1, test::NumHistogramSamples( | 2016 EXPECT_EQ(1, test::NumHistogramSamples( |
2013 "WebRTC.Video.RetransmittedBitrateSentInKbps")); | 2017 "WebRTC.Video.RetransmittedBitrateSentInKbps")); |
2014 EXPECT_EQ(1, test::NumHistogramSamples( | 2018 EXPECT_EQ(1, test::NumHistogramSamples( |
2015 "WebRTC.Video.RetransmittedBitrateReceivedInKbps")); | 2019 "WebRTC.Video.RetransmittedBitrateReceivedInKbps")); |
2016 | 2020 |
| 2021 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.SendSideDelayInMs")); |
| 2022 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.SendSideDelayMaxInMs")); |
| 2023 |
2017 int num_rtx_samples = use_rtx ? 1 : 0; | 2024 int num_rtx_samples = use_rtx ? 1 : 0; |
2018 EXPECT_EQ(num_rtx_samples, test::NumHistogramSamples( | 2025 EXPECT_EQ(num_rtx_samples, test::NumHistogramSamples( |
2019 "WebRTC.Video.RtxBitrateSentInKbps")); | 2026 "WebRTC.Video.RtxBitrateSentInKbps")); |
2020 EXPECT_EQ(num_rtx_samples, test::NumHistogramSamples( | 2027 EXPECT_EQ(num_rtx_samples, test::NumHistogramSamples( |
2021 "WebRTC.Video.RtxBitrateReceivedInKbps")); | 2028 "WebRTC.Video.RtxBitrateReceivedInKbps")); |
2022 | 2029 |
2023 int num_red_samples = use_red ? 1 : 0; | 2030 int num_red_samples = use_red ? 1 : 0; |
2024 EXPECT_EQ(num_red_samples, test::NumHistogramSamples( | 2031 EXPECT_EQ(num_red_samples, test::NumHistogramSamples( |
2025 "WebRTC.Video.FecBitrateSentInKbps")); | 2032 "WebRTC.Video.FecBitrateSentInKbps")); |
2026 EXPECT_EQ(num_red_samples, test::NumHistogramSamples( | 2033 EXPECT_EQ(num_red_samples, test::NumHistogramSamples( |
(...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3171 EXPECT_TRUE(default_receive_config.rtp.rtx.empty()) | 3178 EXPECT_TRUE(default_receive_config.rtp.rtx.empty()) |
3172 << "Enabling RTX requires rtpmap: rtx negotiation."; | 3179 << "Enabling RTX requires rtpmap: rtx negotiation."; |
3173 EXPECT_TRUE(default_receive_config.rtp.extensions.empty()) | 3180 EXPECT_TRUE(default_receive_config.rtp.extensions.empty()) |
3174 << "Enabling RTP extensions require negotiation."; | 3181 << "Enabling RTP extensions require negotiation."; |
3175 | 3182 |
3176 VerifyEmptyNackConfig(default_receive_config.rtp.nack); | 3183 VerifyEmptyNackConfig(default_receive_config.rtp.nack); |
3177 VerifyEmptyFecConfig(default_receive_config.rtp.fec); | 3184 VerifyEmptyFecConfig(default_receive_config.rtp.fec); |
3178 } | 3185 } |
3179 | 3186 |
3180 } // namespace webrtc | 3187 } // namespace webrtc |
OLD | NEW |