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 14 matching lines...) Expand all Loading... | |
25 #include "webrtc/common_video/include/frame_callback.h" | 25 #include "webrtc/common_video/include/frame_callback.h" |
26 #include "webrtc/modules/include/module_common_types.h" | 26 #include "webrtc/modules/include/module_common_types.h" |
27 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" | 27 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
28 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 28 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
29 #include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h" | 29 #include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h" |
30 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" | 30 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" |
31 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" | 31 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" |
32 #include "webrtc/modules/video_coding/codecs/vp9/include/vp9.h" | 32 #include "webrtc/modules/video_coding/codecs/vp9/include/vp9.h" |
33 #include "webrtc/modules/video_coding/include/video_coding_defines.h" | 33 #include "webrtc/modules/video_coding/include/video_coding_defines.h" |
34 #include "webrtc/system_wrappers/include/metrics.h" | 34 #include "webrtc/system_wrappers/include/metrics.h" |
35 #include "webrtc/system_wrappers/include/metrics_default.h" | |
35 #include "webrtc/system_wrappers/include/sleep.h" | 36 #include "webrtc/system_wrappers/include/sleep.h" |
36 #include "webrtc/test/call_test.h" | 37 #include "webrtc/test/call_test.h" |
37 #include "webrtc/test/direct_transport.h" | 38 #include "webrtc/test/direct_transport.h" |
38 #include "webrtc/test/encoder_settings.h" | 39 #include "webrtc/test/encoder_settings.h" |
39 #include "webrtc/test/fake_decoder.h" | 40 #include "webrtc/test/fake_decoder.h" |
40 #include "webrtc/test/fake_encoder.h" | 41 #include "webrtc/test/fake_encoder.h" |
41 #include "webrtc/test/frame_generator.h" | 42 #include "webrtc/test/frame_generator.h" |
42 #include "webrtc/test/frame_generator_capturer.h" | 43 #include "webrtc/test/frame_generator_capturer.h" |
43 #include "webrtc/test/histogram.h" | |
44 #include "webrtc/test/null_transport.h" | 44 #include "webrtc/test/null_transport.h" |
45 #include "webrtc/test/rtcp_packet_parser.h" | 45 #include "webrtc/test/rtcp_packet_parser.h" |
46 #include "webrtc/test/rtp_rtcp_observer.h" | 46 #include "webrtc/test/rtp_rtcp_observer.h" |
47 #include "webrtc/test/testsupport/fileutils.h" | 47 #include "webrtc/test/testsupport/fileutils.h" |
48 #include "webrtc/test/testsupport/perf_test.h" | 48 #include "webrtc/test/testsupport/perf_test.h" |
49 #include "webrtc/video_encoder.h" | 49 #include "webrtc/video_encoder.h" |
50 | 50 |
51 namespace webrtc { | 51 namespace webrtc { |
52 using metrics::MinSample; | |
pbos-webrtc
2016/05/06 19:58:40
Pref not using using here, metrics::NumSamples is
åsapersson
2016/05/09 14:47:41
Done.
| |
53 using metrics::NumEvents; | |
54 using metrics::NumSamples; | |
52 | 55 |
53 static const int kSilenceTimeoutMs = 2000; | 56 static const int kSilenceTimeoutMs = 2000; |
54 | 57 |
55 class EndToEndTest : public test::CallTest { | 58 class EndToEndTest : public test::CallTest { |
56 public: | 59 public: |
57 EndToEndTest() {} | 60 EndToEndTest() {} |
58 | 61 |
59 virtual ~EndToEndTest() { | 62 virtual ~EndToEndTest() { |
60 EXPECT_EQ(nullptr, video_send_stream_); | 63 EXPECT_EQ(nullptr, video_send_stream_); |
61 EXPECT_TRUE(video_receive_streams_.empty()); | 64 EXPECT_TRUE(video_receive_streams_.empty()); |
(...skipping 1909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1971 | 1974 |
1972 rtc::CriticalSection crit_; | 1975 rtc::CriticalSection crit_; |
1973 uint64_t sent_rtp_packets_; | 1976 uint64_t sent_rtp_packets_; |
1974 uint16_t dropped_rtp_packet_ GUARDED_BY(&crit_); | 1977 uint16_t dropped_rtp_packet_ GUARDED_BY(&crit_); |
1975 bool dropped_rtp_packet_requested_ GUARDED_BY(&crit_); | 1978 bool dropped_rtp_packet_requested_ GUARDED_BY(&crit_); |
1976 std::vector<VideoReceiveStream*> receive_streams_; | 1979 std::vector<VideoReceiveStream*> receive_streams_; |
1977 VideoSendStream* send_stream_; | 1980 VideoSendStream* send_stream_; |
1978 int64_t start_runtime_ms_; | 1981 int64_t start_runtime_ms_; |
1979 } test; | 1982 } test; |
1980 | 1983 |
1981 test::ClearHistograms(); | 1984 metrics::Reset(); |
1985 metrics::Enable(); | |
1982 RunBaseTest(&test); | 1986 RunBaseTest(&test); |
1983 | 1987 |
1984 EXPECT_EQ(1, test::NumHistogramSamples( | 1988 EXPECT_EQ(1, NumSamples("WebRTC.Video.UniqueNackRequestsSentInPercent")); |
1985 "WebRTC.Video.UniqueNackRequestsSentInPercent")); | 1989 EXPECT_EQ(1, NumSamples("WebRTC.Video.UniqueNackRequestsReceivedInPercent")); |
1986 EXPECT_EQ(1, test::NumHistogramSamples( | 1990 EXPECT_GT(MinSample("WebRTC.Video.NackPacketsSentPerMinute"), 0); |
1987 "WebRTC.Video.UniqueNackRequestsReceivedInPercent")); | 1991 EXPECT_GT(MinSample("WebRTC.Video.NackPacketsReceivedPerMinute"), 0); |
1988 EXPECT_GT(test::LastHistogramSample( | |
1989 "WebRTC.Video.NackPacketsSentPerMinute"), 0); | |
1990 EXPECT_GT(test::LastHistogramSample( | |
1991 "WebRTC.Video.NackPacketsReceivedPerMinute"), 0); | |
1992 } | 1992 } |
1993 | 1993 |
1994 void EndToEndTest::VerifyHistogramStats(bool use_rtx, | 1994 void EndToEndTest::VerifyHistogramStats(bool use_rtx, |
1995 bool use_red, | 1995 bool use_red, |
1996 bool screenshare) { | 1996 bool screenshare) { |
1997 class StatsObserver : public test::EndToEndTest { | 1997 class StatsObserver : public test::EndToEndTest { |
1998 public: | 1998 public: |
1999 StatsObserver(bool use_rtx, bool use_red, bool screenshare) | 1999 StatsObserver(bool use_rtx, bool use_red, bool screenshare) |
2000 : EndToEndTest(kLongTimeoutMs), | 2000 : EndToEndTest(kLongTimeoutMs), |
2001 use_rtx_(use_rtx), | 2001 use_rtx_(use_rtx), |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2069 | 2069 |
2070 const bool use_rtx_; | 2070 const bool use_rtx_; |
2071 const bool use_red_; | 2071 const bool use_red_; |
2072 const bool screenshare_; | 2072 const bool screenshare_; |
2073 const std::unique_ptr<VideoEncoder> vp8_encoder_; | 2073 const std::unique_ptr<VideoEncoder> vp8_encoder_; |
2074 Call* sender_call_; | 2074 Call* sender_call_; |
2075 Call* receiver_call_; | 2075 Call* receiver_call_; |
2076 int64_t start_runtime_ms_; | 2076 int64_t start_runtime_ms_; |
2077 } test(use_rtx, use_red, screenshare); | 2077 } test(use_rtx, use_red, screenshare); |
2078 | 2078 |
2079 test::ClearHistograms(); | 2079 metrics::Reset(); |
2080 metrics::Enable(); | |
2080 RunBaseTest(&test); | 2081 RunBaseTest(&test); |
2081 | 2082 |
2082 // Delete the call for Call stats to be reported. | 2083 // Delete the call for Call stats to be reported. |
2083 sender_call_.reset(); | 2084 sender_call_.reset(); |
2084 receiver_call_.reset(); | 2085 receiver_call_.reset(); |
2085 | 2086 |
2086 std::string video_prefix = | 2087 std::string video_prefix = |
2087 screenshare ? "WebRTC.Video.Screenshare." : "WebRTC.Video."; | 2088 screenshare ? "WebRTC.Video.Screenshare." : "WebRTC.Video."; |
2088 | 2089 |
2089 // Verify that stats have been updated once. | 2090 // Verify that stats have been updated once. |
2090 EXPECT_EQ( | 2091 EXPECT_EQ(1, NumSamples("WebRTC.Call.VideoBitrateReceivedInKbps")); |
2091 1, test::NumHistogramSamples("WebRTC.Call.VideoBitrateReceivedInKbps")); | 2092 EXPECT_EQ(1, NumSamples("WebRTC.Call.RtcpBitrateReceivedInBps")); |
2092 EXPECT_EQ(1, | 2093 EXPECT_EQ(1, NumSamples("WebRTC.Call.BitrateReceivedInKbps")); |
2093 test::NumHistogramSamples("WebRTC.Call.RtcpBitrateReceivedInBps")); | 2094 EXPECT_EQ(1, NumSamples("WebRTC.Call.EstimatedSendBitrateInKbps")); |
2094 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Call.BitrateReceivedInKbps")); | 2095 EXPECT_EQ(1, NumSamples("WebRTC.Call.PacerBitrateInKbps")); |
2095 EXPECT_EQ( | |
2096 1, test::NumHistogramSamples("WebRTC.Call.EstimatedSendBitrateInKbps")); | |
2097 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Call.PacerBitrateInKbps")); | |
2098 | 2096 |
2099 EXPECT_EQ(1, test::NumHistogramSamples( | 2097 EXPECT_EQ(1, NumSamples("WebRTC.Video.NackPacketsSentPerMinute")); |
2100 "WebRTC.Video.NackPacketsSentPerMinute")); | 2098 EXPECT_EQ(1, NumSamples(video_prefix + "NackPacketsReceivedPerMinute")); |
2101 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + | 2099 EXPECT_EQ(1, NumSamples("WebRTC.Video.FirPacketsSentPerMinute")); |
2102 "NackPacketsReceivedPerMinute")); | 2100 EXPECT_EQ(1, NumSamples(video_prefix + "FirPacketsReceivedPerMinute")); |
2103 EXPECT_EQ(1, test::NumHistogramSamples( | 2101 EXPECT_EQ(1, NumSamples("WebRTC.Video.PliPacketsSentPerMinute")); |
2104 "WebRTC.Video.FirPacketsSentPerMinute")); | 2102 EXPECT_EQ(1, NumSamples(video_prefix + "PliPacketsReceivedPerMinute")); |
2105 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + | 2103 |
2106 "FirPacketsReceivedPerMinute")); | 2104 EXPECT_EQ(1, NumSamples(video_prefix + "KeyFramesSentInPermille")); |
2107 EXPECT_EQ(1, test::NumHistogramSamples( | 2105 EXPECT_EQ(1, NumSamples("WebRTC.Video.KeyFramesReceivedInPermille")); |
2108 "WebRTC.Video.PliPacketsSentPerMinute")); | 2106 |
2109 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + | 2107 EXPECT_EQ(1, NumSamples(video_prefix + "SentPacketsLostInPercent")); |
2110 "PliPacketsReceivedPerMinute")); | 2108 EXPECT_EQ(1, NumSamples("WebRTC.Video.ReceivedPacketsLostInPercent")); |
2109 | |
2110 EXPECT_EQ(1, NumSamples(video_prefix + "InputWidthInPixels")); | |
2111 EXPECT_EQ(1, NumSamples(video_prefix + "InputHeightInPixels")); | |
2112 EXPECT_EQ(1, NumSamples(video_prefix + "SentWidthInPixels")); | |
2113 EXPECT_EQ(1, NumSamples(video_prefix + "SentHeightInPixels")); | |
2114 EXPECT_EQ(1, NumSamples("WebRTC.Video.ReceivedWidthInPixels")); | |
2115 EXPECT_EQ(1, NumSamples("WebRTC.Video.ReceivedHeightInPixels")); | |
2111 | 2116 |
2112 EXPECT_EQ( | 2117 EXPECT_EQ( |
2113 1, test::NumHistogramSamples(video_prefix + "KeyFramesSentInPermille")); | 2118 1, NumEvents(video_prefix + "InputWidthInPixels", |
2114 EXPECT_EQ(1, test::NumHistogramSamples( | 2119 static_cast<int>(video_encoder_config_.streams[0].width))); |
2115 "WebRTC.Video.KeyFramesReceivedInPermille")); | 2120 EXPECT_EQ( |
2121 1, NumEvents(video_prefix + "InputHeightInPixels", | |
2122 static_cast<int>(video_encoder_config_.streams[0].height))); | |
2123 EXPECT_EQ( | |
2124 1, NumEvents(video_prefix + "SentWidthInPixels", | |
2125 static_cast<int>(video_encoder_config_.streams[0].width))); | |
2126 EXPECT_EQ( | |
2127 1, NumEvents(video_prefix + "SentHeightInPixels", | |
2128 static_cast<int>(video_encoder_config_.streams[0].height))); | |
2129 EXPECT_EQ( | |
2130 1, NumEvents("WebRTC.Video.ReceivedWidthInPixels", | |
2131 static_cast<int>(video_encoder_config_.streams[0].width))); | |
2132 EXPECT_EQ( | |
2133 1, NumEvents("WebRTC.Video.ReceivedHeightInPixels", | |
2134 static_cast<int>(video_encoder_config_.streams[0].height))); | |
2116 | 2135 |
2117 EXPECT_EQ( | 2136 EXPECT_EQ(1, NumSamples(video_prefix + "InputFramesPerSecond")); |
2118 1, test::NumHistogramSamples(video_prefix + "SentPacketsLostInPercent")); | 2137 EXPECT_EQ(1, NumSamples(video_prefix + "SentFramesPerSecond")); |
2119 EXPECT_EQ(1, test::NumHistogramSamples( | 2138 EXPECT_EQ(1, NumSamples("WebRTC.Video.DecodedFramesPerSecond")); |
2120 "WebRTC.Video.ReceivedPacketsLostInPercent")); | 2139 EXPECT_EQ(1, NumSamples("WebRTC.Video.RenderFramesPerSecond")); |
2121 | 2140 |
2122 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + "InputWidthInPixels")); | 2141 EXPECT_EQ(1, NumSamples("WebRTC.Video.JitterBufferDelayInMs")); |
2123 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + "InputHeightInPixels")); | 2142 EXPECT_EQ(1, NumSamples("WebRTC.Video.TargetDelayInMs")); |
2124 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + "SentWidthInPixels")); | 2143 EXPECT_EQ(1, NumSamples("WebRTC.Video.CurrentDelayInMs")); |
2125 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + "SentHeightInPixels")); | 2144 EXPECT_EQ(1, NumSamples("WebRTC.Video.OnewayDelayInMs")); |
2126 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.ReceivedWidthInPixels")); | |
2127 EXPECT_EQ(1, | |
2128 test::NumHistogramSamples("WebRTC.Video.ReceivedHeightInPixels")); | |
2129 | 2145 |
2130 EXPECT_EQ(static_cast<int>(video_encoder_config_.streams[0].width), | 2146 EXPECT_EQ(1, NumSamples("WebRTC.Video.RenderSqrtPixelsPerSecond")); |
2131 test::LastHistogramSample(video_prefix + "InputWidthInPixels")); | |
2132 EXPECT_EQ(static_cast<int>(video_encoder_config_.streams[0].height), | |
2133 test::LastHistogramSample(video_prefix + "InputHeightInPixels")); | |
2134 EXPECT_EQ(static_cast<int>(video_encoder_config_.streams[0].width), | |
2135 test::LastHistogramSample(video_prefix + "SentWidthInPixels")); | |
2136 EXPECT_EQ(static_cast<int>(video_encoder_config_.streams[0].height), | |
2137 test::LastHistogramSample(video_prefix + "SentHeightInPixels")); | |
2138 EXPECT_EQ(static_cast<int>(video_encoder_config_.streams[0].width), | |
2139 test::LastHistogramSample("WebRTC.Video.ReceivedWidthInPixels")); | |
2140 EXPECT_EQ(static_cast<int>(video_encoder_config_.streams[0].height), | |
2141 test::LastHistogramSample("WebRTC.Video.ReceivedHeightInPixels")); | |
2142 | 2147 |
2143 EXPECT_EQ(1, | 2148 EXPECT_EQ(1, NumSamples(video_prefix + "EncodeTimeInMs")); |
2144 test::NumHistogramSamples(video_prefix + "InputFramesPerSecond")); | 2149 EXPECT_EQ(1, NumSamples("WebRTC.Video.DecodeTimeInMs")); |
2145 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + "SentFramesPerSecond")); | |
2146 EXPECT_EQ(1, test::NumHistogramSamples( | |
2147 "WebRTC.Video.DecodedFramesPerSecond")); | |
2148 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.RenderFramesPerSecond")); | |
2149 | 2150 |
2150 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.JitterBufferDelayInMs")); | 2151 EXPECT_EQ(1, NumSamples(video_prefix + "BitrateSentInKbps")); |
2151 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.TargetDelayInMs")); | 2152 EXPECT_EQ(1, NumSamples("WebRTC.Video.BitrateReceivedInKbps")); |
2152 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.CurrentDelayInMs")); | 2153 EXPECT_EQ(1, NumSamples(video_prefix + "MediaBitrateSentInKbps")); |
2153 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.OnewayDelayInMs")); | 2154 EXPECT_EQ(1, NumSamples("WebRTC.Video.MediaBitrateReceivedInKbps")); |
2154 EXPECT_EQ( | 2155 EXPECT_EQ(1, NumSamples(video_prefix + "PaddingBitrateSentInKbps")); |
2155 1, test::NumHistogramSamples("WebRTC.Video.RenderSqrtPixelsPerSecond")); | 2156 EXPECT_EQ(1, NumSamples("WebRTC.Video.PaddingBitrateReceivedInKbps")); |
2157 EXPECT_EQ(1, NumSamples(video_prefix + "RetransmittedBitrateSentInKbps")); | |
2158 EXPECT_EQ(1, NumSamples("WebRTC.Video.RetransmittedBitrateReceivedInKbps")); | |
2156 | 2159 |
2157 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + "EncodeTimeInMs")); | 2160 EXPECT_EQ(1, NumSamples("WebRTC.Video.SendDelayInMs")); |
2158 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.DecodeTimeInMs")); | 2161 EXPECT_EQ(1, NumSamples(video_prefix + "SendSideDelayInMs")); |
2159 | 2162 EXPECT_EQ(1, NumSamples(video_prefix + "SendSideDelayMaxInMs")); |
2160 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + "BitrateSentInKbps")); | |
2161 EXPECT_EQ(1, test::NumHistogramSamples( | |
2162 "WebRTC.Video.BitrateReceivedInKbps")); | |
2163 EXPECT_EQ(1, | |
2164 test::NumHistogramSamples(video_prefix + "MediaBitrateSentInKbps")); | |
2165 EXPECT_EQ(1, test::NumHistogramSamples( | |
2166 "WebRTC.Video.MediaBitrateReceivedInKbps")); | |
2167 EXPECT_EQ( | |
2168 1, test::NumHistogramSamples(video_prefix + "PaddingBitrateSentInKbps")); | |
2169 EXPECT_EQ(1, test::NumHistogramSamples( | |
2170 "WebRTC.Video.PaddingBitrateReceivedInKbps")); | |
2171 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + | |
2172 "RetransmittedBitrateSentInKbps")); | |
2173 EXPECT_EQ(1, test::NumHistogramSamples( | |
2174 "WebRTC.Video.RetransmittedBitrateReceivedInKbps")); | |
2175 | |
2176 EXPECT_EQ(1, test::NumHistogramSamples(video_prefix + "SendSideDelayInMs")); | |
2177 EXPECT_EQ(1, | |
2178 test::NumHistogramSamples(video_prefix + "SendSideDelayMaxInMs")); | |
2179 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.SendDelayInMs")); | |
2180 | 2163 |
2181 int num_rtx_samples = use_rtx ? 1 : 0; | 2164 int num_rtx_samples = use_rtx ? 1 : 0; |
2182 EXPECT_EQ(num_rtx_samples, test::NumHistogramSamples( | 2165 EXPECT_EQ(num_rtx_samples, NumSamples("WebRTC.Video.RtxBitrateSentInKbps")); |
2183 "WebRTC.Video.RtxBitrateSentInKbps")); | 2166 EXPECT_EQ(num_rtx_samples, |
2184 EXPECT_EQ(num_rtx_samples, test::NumHistogramSamples( | 2167 NumSamples("WebRTC.Video.RtxBitrateReceivedInKbps")); |
2185 "WebRTC.Video.RtxBitrateReceivedInKbps")); | |
2186 | 2168 |
2187 int num_red_samples = use_red ? 1 : 0; | 2169 int num_red_samples = use_red ? 1 : 0; |
2188 EXPECT_EQ(num_red_samples, test::NumHistogramSamples( | 2170 EXPECT_EQ(num_red_samples, NumSamples("WebRTC.Video.FecBitrateSentInKbps")); |
2189 "WebRTC.Video.FecBitrateSentInKbps")); | 2171 EXPECT_EQ(num_red_samples, |
2190 EXPECT_EQ(num_red_samples, test::NumHistogramSamples( | 2172 NumSamples("WebRTC.Video.FecBitrateReceivedInKbps")); |
2191 "WebRTC.Video.FecBitrateReceivedInKbps")); | 2173 EXPECT_EQ(num_red_samples, |
2192 EXPECT_EQ(num_red_samples, test::NumHistogramSamples( | 2174 NumSamples("WebRTC.Video.ReceivedFecPacketsInPercent")); |
2193 "WebRTC.Video.ReceivedFecPacketsInPercent")); | |
2194 } | 2175 } |
2195 | 2176 |
2196 TEST_F(EndToEndTest, VerifyHistogramStatsWithRtx) { | 2177 TEST_F(EndToEndTest, VerifyHistogramStatsWithRtx) { |
2197 const bool kEnabledRtx = true; | 2178 const bool kEnabledRtx = true; |
2198 const bool kEnabledRed = false; | 2179 const bool kEnabledRed = false; |
2199 const bool kScreenshare = false; | 2180 const bool kScreenshare = false; |
2200 VerifyHistogramStats(kEnabledRtx, kEnabledRed, kScreenshare); | 2181 VerifyHistogramStats(kEnabledRtx, kEnabledRed, kScreenshare); |
2201 } | 2182 } |
2202 | 2183 |
2203 TEST_F(EndToEndTest, VerifyHistogramStatsWithRed) { | 2184 TEST_F(EndToEndTest, VerifyHistogramStatsWithRed) { |
(...skipping 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3502 private: | 3483 private: |
3503 bool video_observed_; | 3484 bool video_observed_; |
3504 bool audio_observed_; | 3485 bool audio_observed_; |
3505 SequenceNumberUnwrapper unwrapper_; | 3486 SequenceNumberUnwrapper unwrapper_; |
3506 std::set<int64_t> received_packet_ids_; | 3487 std::set<int64_t> received_packet_ids_; |
3507 } test; | 3488 } test; |
3508 | 3489 |
3509 RunBaseTest(&test); | 3490 RunBaseTest(&test); |
3510 } | 3491 } |
3511 } // namespace webrtc | 3492 } // namespace webrtc |
OLD | NEW |