| 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 2115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2126 RunBaseTest(&test); | 2126 RunBaseTest(&test); |
| 2127 | 2127 |
| 2128 // Delete the call for Call stats to be reported. | 2128 // Delete the call for Call stats to be reported. |
| 2129 sender_call_.reset(); | 2129 sender_call_.reset(); |
| 2130 receiver_call_.reset(); | 2130 receiver_call_.reset(); |
| 2131 | 2131 |
| 2132 std::string video_prefix = | 2132 std::string video_prefix = |
| 2133 screenshare ? "WebRTC.Video.Screenshare." : "WebRTC.Video."; | 2133 screenshare ? "WebRTC.Video.Screenshare." : "WebRTC.Video."; |
| 2134 | 2134 |
| 2135 // Verify that stats have been updated once. | 2135 // Verify that stats have been updated once. |
| 2136 EXPECT_EQ(2, metrics::NumSamples("WebRTC.Call.LifetimeInSeconds")); |
| 2136 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.VideoBitrateReceivedInKbps")); | 2137 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.VideoBitrateReceivedInKbps")); |
| 2137 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.RtcpBitrateReceivedInBps")); | 2138 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.RtcpBitrateReceivedInBps")); |
| 2138 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.BitrateReceivedInKbps")); | 2139 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.BitrateReceivedInKbps")); |
| 2139 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.EstimatedSendBitrateInKbps")); | 2140 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.EstimatedSendBitrateInKbps")); |
| 2140 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.PacerBitrateInKbps")); | 2141 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.PacerBitrateInKbps")); |
| 2141 | 2142 |
| 2143 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.SendStreamLifetimeInSeconds")); |
| 2144 EXPECT_EQ(1, |
| 2145 metrics::NumSamples("WebRTC.Video.ReceiveStreamLifetimeInSeconds")); |
| 2146 |
| 2142 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.NackPacketsSentPerMinute")); | 2147 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.NackPacketsSentPerMinute")); |
| 2143 EXPECT_EQ(1, | 2148 EXPECT_EQ(1, |
| 2144 metrics::NumSamples(video_prefix + "NackPacketsReceivedPerMinute")); | 2149 metrics::NumSamples(video_prefix + "NackPacketsReceivedPerMinute")); |
| 2145 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.FirPacketsSentPerMinute")); | 2150 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.FirPacketsSentPerMinute")); |
| 2146 EXPECT_EQ(1, | 2151 EXPECT_EQ(1, |
| 2147 metrics::NumSamples(video_prefix + "FirPacketsReceivedPerMinute")); | 2152 metrics::NumSamples(video_prefix + "FirPacketsReceivedPerMinute")); |
| 2148 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.PliPacketsSentPerMinute")); | 2153 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.PliPacketsSentPerMinute")); |
| 2149 EXPECT_EQ(1, | 2154 EXPECT_EQ(1, |
| 2150 metrics::NumSamples(video_prefix + "PliPacketsReceivedPerMinute")); | 2155 metrics::NumSamples(video_prefix + "PliPacketsReceivedPerMinute")); |
| 2151 | 2156 |
| (...skipping 1492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3644 private: | 3649 private: |
| 3645 bool video_observed_; | 3650 bool video_observed_; |
| 3646 bool audio_observed_; | 3651 bool audio_observed_; |
| 3647 SequenceNumberUnwrapper unwrapper_; | 3652 SequenceNumberUnwrapper unwrapper_; |
| 3648 std::set<int64_t> received_packet_ids_; | 3653 std::set<int64_t> received_packet_ids_; |
| 3649 } test; | 3654 } test; |
| 3650 | 3655 |
| 3651 RunBaseTest(&test); | 3656 RunBaseTest(&test); |
| 3652 } | 3657 } |
| 3653 } // namespace webrtc | 3658 } // namespace webrtc |
| OLD | NEW |