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

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

Issue 1440603002: Add receive bitrate UMA stats. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Can't verify the audio stats in this test. Postponing audio stats tests. Created 5 years, 1 month 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
« webrtc/call/call.cc ('K') | « 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 1925 matching lines...) Expand 10 before | Expand all | Expand 10 after
1936 bool use_rtx_; 1936 bool use_rtx_;
1937 bool use_red_; 1937 bool use_red_;
1938 Call* sender_call_; 1938 Call* sender_call_;
1939 Call* receiver_call_; 1939 Call* receiver_call_;
1940 int64_t start_runtime_ms_; 1940 int64_t start_runtime_ms_;
1941 } test(use_rtx, use_red); 1941 } test(use_rtx, use_red);
1942 1942
1943 test::ClearHistograms(); 1943 test::ClearHistograms();
1944 RunBaseTest(&test, FakeNetworkPipe::Config()); 1944 RunBaseTest(&test, FakeNetworkPipe::Config());
1945 1945
1946 // Delete the call for Call stats to be reported.
1947 receiver_call_.reset();
1948
1946 // Verify that stats have been updated once. 1949 // Verify that stats have been updated once.
1950 EXPECT_EQ(
1951 1, test::NumHistogramSamples("WebRTC.Call.VideoBitrateReceivedInKbps"));
1952 EXPECT_EQ(1,
1953 test::NumHistogramSamples("WebRTC.Call.RtcpBitrateReceivedInBps"));
1954 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Call.BitrateReceivedInKbps"));
1955
1947 EXPECT_EQ(1, test::NumHistogramSamples( 1956 EXPECT_EQ(1, test::NumHistogramSamples(
1948 "WebRTC.Video.NackPacketsSentPerMinute")); 1957 "WebRTC.Video.NackPacketsSentPerMinute"));
1949 EXPECT_EQ(1, test::NumHistogramSamples( 1958 EXPECT_EQ(1, test::NumHistogramSamples(
1950 "WebRTC.Video.NackPacketsReceivedPerMinute")); 1959 "WebRTC.Video.NackPacketsReceivedPerMinute"));
1951 EXPECT_EQ(1, test::NumHistogramSamples( 1960 EXPECT_EQ(1, test::NumHistogramSamples(
1952 "WebRTC.Video.FirPacketsSentPerMinute")); 1961 "WebRTC.Video.FirPacketsSentPerMinute"));
1953 EXPECT_EQ(1, test::NumHistogramSamples( 1962 EXPECT_EQ(1, test::NumHistogramSamples(
1954 "WebRTC.Video.FirPacketsReceivedPerMinute")); 1963 "WebRTC.Video.FirPacketsReceivedPerMinute"));
1955 EXPECT_EQ(1, test::NumHistogramSamples( 1964 EXPECT_EQ(1, test::NumHistogramSamples(
1956 "WebRTC.Video.PliPacketsSentPerMinute")); 1965 "WebRTC.Video.PliPacketsSentPerMinute"));
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after
3171 EXPECT_TRUE(default_receive_config.rtp.rtx.empty()) 3180 EXPECT_TRUE(default_receive_config.rtp.rtx.empty())
3172 << "Enabling RTX requires rtpmap: rtx negotiation."; 3181 << "Enabling RTX requires rtpmap: rtx negotiation.";
3173 EXPECT_TRUE(default_receive_config.rtp.extensions.empty()) 3182 EXPECT_TRUE(default_receive_config.rtp.extensions.empty())
3174 << "Enabling RTP extensions require negotiation."; 3183 << "Enabling RTP extensions require negotiation.";
3175 3184
3176 VerifyEmptyNackConfig(default_receive_config.rtp.nack); 3185 VerifyEmptyNackConfig(default_receive_config.rtp.nack);
3177 VerifyEmptyFecConfig(default_receive_config.rtp.fec); 3186 VerifyEmptyFecConfig(default_receive_config.rtp.fec);
3178 } 3187 }
3179 3188
3180 } // namespace webrtc 3189 } // namespace webrtc
OLDNEW
« webrtc/call/call.cc ('K') | « webrtc/call/call.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698