Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: webrtc/video/end_to_end_tests.cc

Issue 2972613002: Revert of Add received audio and video call duration metrics based on packets. (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/call/call.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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"));
2649 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.VideoBitrateReceivedInKbps")); 2647 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.VideoBitrateReceivedInKbps"));
2650 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.RtcpBitrateReceivedInBps")); 2648 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.RtcpBitrateReceivedInBps"));
2651 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.BitrateReceivedInKbps")); 2649 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.BitrateReceivedInKbps"));
2652 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.EstimatedSendBitrateInKbps")); 2650 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.EstimatedSendBitrateInKbps"));
2653 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.PacerBitrateInKbps")); 2651 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.PacerBitrateInKbps"));
2654 2652
2655 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.SendStreamLifetimeInSeconds")); 2653 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.SendStreamLifetimeInSeconds"));
2656 EXPECT_EQ(1, 2654 EXPECT_EQ(1,
2657 metrics::NumSamples("WebRTC.Video.ReceiveStreamLifetimeInSeconds")); 2655 metrics::NumSamples("WebRTC.Video.ReceiveStreamLifetimeInSeconds"));
2658 2656
(...skipping 2034 matching lines...) Expand 10 before | Expand all | Expand 10 after
4693 std::unique_ptr<VideoEncoder> encoder_; 4691 std::unique_ptr<VideoEncoder> encoder_;
4694 std::unique_ptr<VideoDecoder> decoder_; 4692 std::unique_ptr<VideoDecoder> decoder_;
4695 rtc::CriticalSection crit_; 4693 rtc::CriticalSection crit_;
4696 int recorded_frames_ GUARDED_BY(crit_); 4694 int recorded_frames_ GUARDED_BY(crit_);
4697 } test(this); 4695 } test(this);
4698 4696
4699 RunBaseTest(&test); 4697 RunBaseTest(&test);
4700 } 4698 }
4701 4699
4702 } // namespace webrtc 4700 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/call/call.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698