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 2228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2239 "WebRTC.Video.DecodedFramesPerSecond")); | 2239 "WebRTC.Video.DecodedFramesPerSecond")); |
2240 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.RenderFramesPerSecond")); | 2240 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.RenderFramesPerSecond")); |
2241 | 2241 |
2242 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.OnewayDelayInMs")); | 2242 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.OnewayDelayInMs")); |
2243 EXPECT_EQ( | 2243 EXPECT_EQ( |
2244 1, test::NumHistogramSamples("WebRTC.Video.RenderSqrtPixelsPerSecond")); | 2244 1, test::NumHistogramSamples("WebRTC.Video.RenderSqrtPixelsPerSecond")); |
2245 | 2245 |
2246 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + "EncodeTimeInMs")); | 2246 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + "EncodeTimeInMs")); |
2247 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.DecodeTimeInMs")); | 2247 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.DecodeTimeInMs")); |
2248 | 2248 |
2249 EXPECT_EQ(1, test::NumHistogramSamples( | 2249 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + "BitrateSentInKbps")); |
2250 "WebRTC.Video.BitrateSentInKbps")); | |
2251 EXPECT_EQ(1, test::NumHistogramSamples( | 2250 EXPECT_EQ(1, test::NumHistogramSamples( |
2252 "WebRTC.Video.BitrateReceivedInKbps")); | 2251 "WebRTC.Video.BitrateReceivedInKbps")); |
2253 EXPECT_EQ(1, test::NumHistogramSamples( | 2252 EXPECT_EQ(1, |
2254 "WebRTC.Video.MediaBitrateSentInKbps")); | 2253 test::NumHistogramSamples(video_prefix + "MediaBitrateSentInKbps")); |
2255 EXPECT_EQ(1, test::NumHistogramSamples( | 2254 EXPECT_EQ(1, test::NumHistogramSamples( |
2256 "WebRTC.Video.MediaBitrateReceivedInKbps")); | 2255 "WebRTC.Video.MediaBitrateReceivedInKbps")); |
2257 EXPECT_EQ(1, test::NumHistogramSamples( | 2256 EXPECT_EQ( |
2258 "WebRTC.Video.PaddingBitrateSentInKbps")); | 2257 1, test::NumHistogramSamples(video_prefix + "PaddingBitrateSentInKbps")); |
2259 EXPECT_EQ(1, test::NumHistogramSamples( | 2258 EXPECT_EQ(1, test::NumHistogramSamples( |
2260 "WebRTC.Video.PaddingBitrateReceivedInKbps")); | 2259 "WebRTC.Video.PaddingBitrateReceivedInKbps")); |
2261 EXPECT_EQ(1, test::NumHistogramSamples( | 2260 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + |
2262 "WebRTC.Video.RetransmittedBitrateSentInKbps")); | 2261 "RetransmittedBitrateSentInKbps")); |
2263 EXPECT_EQ(1, test::NumHistogramSamples( | 2262 EXPECT_EQ(1, test::NumHistogramSamples( |
2264 "WebRTC.Video.RetransmittedBitrateReceivedInKbps")); | 2263 "WebRTC.Video.RetransmittedBitrateReceivedInKbps")); |
2265 | 2264 |
2266 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + "SendSideDelayInMs")); | 2265 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + "SendSideDelayInMs")); |
2267 EXPECT_EQ(1, | 2266 EXPECT_EQ(1, |
2268 test::NumHistogramSamples(video_prefix + "SendSideDelayMaxInMs")); | 2267 test::NumHistogramSamples(video_prefix + "SendSideDelayMaxInMs")); |
2269 | 2268 |
2270 int num_rtx_samples = use_rtx ? 1 : 0; | 2269 int num_rtx_samples = use_rtx ? 1 : 0; |
2271 EXPECT_EQ(num_rtx_samples, test::NumHistogramSamples( | 2270 EXPECT_EQ(num_rtx_samples, test::NumHistogramSamples( |
2272 "WebRTC.Video.RtxBitrateSentInKbps")); | 2271 "WebRTC.Video.RtxBitrateSentInKbps")); |
(...skipping 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3526 private: | 3525 private: |
3527 bool video_observed_; | 3526 bool video_observed_; |
3528 bool audio_observed_; | 3527 bool audio_observed_; |
3529 SequenceNumberUnwrapper unwrapper_; | 3528 SequenceNumberUnwrapper unwrapper_; |
3530 std::set<int64_t> received_packet_ids_; | 3529 std::set<int64_t> received_packet_ids_; |
3531 } test; | 3530 } test; |
3532 | 3531 |
3533 RunBaseTest(&test); | 3532 RunBaseTest(&test); |
3534 } | 3533 } |
3535 } // namespace webrtc | 3534 } // namespace webrtc |
OLD | NEW |