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 2626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2637 | 2637 |
2638 // Delete the call for Call stats to be reported. | 2638 // Delete the call for Call stats to be reported. |
2639 sender_call_.reset(); | 2639 sender_call_.reset(); |
2640 receiver_call_.reset(); | 2640 receiver_call_.reset(); |
2641 | 2641 |
2642 std::string video_prefix = | 2642 std::string video_prefix = |
2643 screenshare ? "WebRTC.Video.Screenshare." : "WebRTC.Video."; | 2643 screenshare ? "WebRTC.Video.Screenshare." : "WebRTC.Video."; |
2644 | 2644 |
2645 // Verify that stats have been updated once. | 2645 // Verify that stats have been updated once. |
2646 EXPECT_EQ(2, metrics::NumSamples("WebRTC.Call.LifetimeInSeconds")); | 2646 EXPECT_EQ(2, metrics::NumSamples("WebRTC.Call.LifetimeInSeconds")); |
| 2647 EXPECT_EQ(1, metrics::NumSamples( |
| 2648 "WebRTC.Call.TimeReceivingVideoRtpPacketsInSeconds")); |
2647 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.VideoBitrateReceivedInKbps")); | 2649 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.VideoBitrateReceivedInKbps")); |
2648 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.RtcpBitrateReceivedInBps")); | 2650 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.RtcpBitrateReceivedInBps")); |
2649 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.BitrateReceivedInKbps")); | 2651 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.BitrateReceivedInKbps")); |
2650 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.EstimatedSendBitrateInKbps")); | 2652 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.EstimatedSendBitrateInKbps")); |
2651 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.PacerBitrateInKbps")); | 2653 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.PacerBitrateInKbps")); |
2652 | 2654 |
2653 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.SendStreamLifetimeInSeconds")); | 2655 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.SendStreamLifetimeInSeconds")); |
2654 EXPECT_EQ(1, | 2656 EXPECT_EQ(1, |
2655 metrics::NumSamples("WebRTC.Video.ReceiveStreamLifetimeInSeconds")); | 2657 metrics::NumSamples("WebRTC.Video.ReceiveStreamLifetimeInSeconds")); |
2656 | 2658 |
(...skipping 2034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4691 std::unique_ptr<VideoEncoder> encoder_; | 4693 std::unique_ptr<VideoEncoder> encoder_; |
4692 std::unique_ptr<VideoDecoder> decoder_; | 4694 std::unique_ptr<VideoDecoder> decoder_; |
4693 rtc::CriticalSection crit_; | 4695 rtc::CriticalSection crit_; |
4694 int recorded_frames_ GUARDED_BY(crit_); | 4696 int recorded_frames_ GUARDED_BY(crit_); |
4695 } test(this); | 4697 } test(this); |
4696 | 4698 |
4697 RunBaseTest(&test); | 4699 RunBaseTest(&test); |
4698 } | 4700 } |
4699 | 4701 |
4700 } // namespace webrtc | 4702 } // namespace webrtc |
OLD | NEW |