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

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

Issue 1250203002: Add encode and decode time to histograms stats: (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: added todo Created 5 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 | « no previous file | webrtc/video/receive_statistics_proxy.h » ('j') | 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 1643 matching lines...) Expand 10 before | Expand all | Expand 10 after
1654 test::LastHistogramSample("WebRTC.Video.ReceivedWidthInPixels")); 1654 test::LastHistogramSample("WebRTC.Video.ReceivedWidthInPixels"));
1655 EXPECT_EQ(static_cast<int>(encoder_config_.streams[0].height), 1655 EXPECT_EQ(static_cast<int>(encoder_config_.streams[0].height),
1656 test::LastHistogramSample("WebRTC.Video.ReceivedHeightInPixels")); 1656 test::LastHistogramSample("WebRTC.Video.ReceivedHeightInPixels"));
1657 1657
1658 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.InputFramesPerSecond")); 1658 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.InputFramesPerSecond"));
1659 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.SentFramesPerSecond")); 1659 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.SentFramesPerSecond"));
1660 EXPECT_EQ(1, test::NumHistogramSamples( 1660 EXPECT_EQ(1, test::NumHistogramSamples(
1661 "WebRTC.Video.DecodedFramesPerSecond")); 1661 "WebRTC.Video.DecodedFramesPerSecond"));
1662 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.RenderFramesPerSecond")); 1662 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.RenderFramesPerSecond"));
1663 1663
1664 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.EncodeTimeInMs"));
1665 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Video.DecodeTimeInMs"));
1666
1664 EXPECT_EQ(1, test::NumHistogramSamples( 1667 EXPECT_EQ(1, test::NumHistogramSamples(
1665 "WebRTC.Video.BitrateSentInKbps")); 1668 "WebRTC.Video.BitrateSentInKbps"));
1666 EXPECT_EQ(1, test::NumHistogramSamples( 1669 EXPECT_EQ(1, test::NumHistogramSamples(
1667 "WebRTC.Video.BitrateReceivedInKbps")); 1670 "WebRTC.Video.BitrateReceivedInKbps"));
1668 EXPECT_EQ(1, test::NumHistogramSamples( 1671 EXPECT_EQ(1, test::NumHistogramSamples(
1669 "WebRTC.Video.MediaBitrateSentInKbps")); 1672 "WebRTC.Video.MediaBitrateSentInKbps"));
1670 EXPECT_EQ(1, test::NumHistogramSamples( 1673 EXPECT_EQ(1, test::NumHistogramSamples(
1671 "WebRTC.Video.MediaBitrateReceivedInKbps")); 1674 "WebRTC.Video.MediaBitrateReceivedInKbps"));
1672 EXPECT_EQ(1, test::NumHistogramSamples( 1675 EXPECT_EQ(1, test::NumHistogramSamples(
1673 "WebRTC.Video.PaddingBitrateSentInKbps")); 1676 "WebRTC.Video.PaddingBitrateSentInKbps"));
(...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after
2853 EXPECT_TRUE(default_receive_config.rtp.rtx.empty()) 2856 EXPECT_TRUE(default_receive_config.rtp.rtx.empty())
2854 << "Enabling RTX requires rtpmap: rtx negotiation."; 2857 << "Enabling RTX requires rtpmap: rtx negotiation.";
2855 EXPECT_TRUE(default_receive_config.rtp.extensions.empty()) 2858 EXPECT_TRUE(default_receive_config.rtp.extensions.empty())
2856 << "Enabling RTP extensions require negotiation."; 2859 << "Enabling RTP extensions require negotiation.";
2857 2860
2858 VerifyEmptyNackConfig(default_receive_config.rtp.nack); 2861 VerifyEmptyNackConfig(default_receive_config.rtp.nack);
2859 VerifyEmptyFecConfig(default_receive_config.rtp.fec); 2862 VerifyEmptyFecConfig(default_receive_config.rtp.fec);
2860 } 2863 }
2861 2864
2862 } // namespace webrtc 2865 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/video/receive_statistics_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698