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

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

Issue 1434403004: Add UMA for send bwe and pacer bitrate. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add locks to handle OnNetworkChanged from multiple threads. 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
« 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 1926 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 1946 // Delete the call for Call stats to be reported.
1947 sender_call_.reset();
1947 receiver_call_.reset(); 1948 receiver_call_.reset();
1948 1949
1949 // Verify that stats have been updated once. 1950 // Verify that stats have been updated once.
1950 EXPECT_EQ( 1951 EXPECT_EQ(
1951 1, test::NumHistogramSamples("WebRTC.Call.VideoBitrateReceivedInKbps")); 1952 1, test::NumHistogramSamples("WebRTC.Call.VideoBitrateReceivedInKbps"));
1952 EXPECT_EQ(1, 1953 EXPECT_EQ(1,
1953 test::NumHistogramSamples("WebRTC.Call.RtcpBitrateReceivedInBps")); 1954 test::NumHistogramSamples("WebRTC.Call.RtcpBitrateReceivedInBps"));
1954 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Call.BitrateReceivedInKbps")); 1955 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Call.BitrateReceivedInKbps"));
1956 EXPECT_EQ(
1957 1, test::NumHistogramSamples("WebRTC.Call.EstimatedSendBitrateInKbps"));
1958 EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Call.PacerBitrateInKbps"));
1955 1959
1956 EXPECT_EQ(1, test::NumHistogramSamples( 1960 EXPECT_EQ(1, test::NumHistogramSamples(
1957 "WebRTC.Video.NackPacketsSentPerMinute")); 1961 "WebRTC.Video.NackPacketsSentPerMinute"));
1958 EXPECT_EQ(1, test::NumHistogramSamples( 1962 EXPECT_EQ(1, test::NumHistogramSamples(
1959 "WebRTC.Video.NackPacketsReceivedPerMinute")); 1963 "WebRTC.Video.NackPacketsReceivedPerMinute"));
1960 EXPECT_EQ(1, test::NumHistogramSamples( 1964 EXPECT_EQ(1, test::NumHistogramSamples(
1961 "WebRTC.Video.FirPacketsSentPerMinute")); 1965 "WebRTC.Video.FirPacketsSentPerMinute"));
1962 EXPECT_EQ(1, test::NumHistogramSamples( 1966 EXPECT_EQ(1, test::NumHistogramSamples(
1963 "WebRTC.Video.FirPacketsReceivedPerMinute")); 1967 "WebRTC.Video.FirPacketsReceivedPerMinute"));
1964 EXPECT_EQ(1, test::NumHistogramSamples( 1968 EXPECT_EQ(1, test::NumHistogramSamples(
(...skipping 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after
3180 EXPECT_TRUE(default_receive_config.rtp.rtx.empty()) 3184 EXPECT_TRUE(default_receive_config.rtp.rtx.empty())
3181 << "Enabling RTX requires rtpmap: rtx negotiation."; 3185 << "Enabling RTX requires rtpmap: rtx negotiation.";
3182 EXPECT_TRUE(default_receive_config.rtp.extensions.empty()) 3186 EXPECT_TRUE(default_receive_config.rtp.extensions.empty())
3183 << "Enabling RTP extensions require negotiation."; 3187 << "Enabling RTP extensions require negotiation.";
3184 3188
3185 VerifyEmptyNackConfig(default_receive_config.rtp.nack); 3189 VerifyEmptyNackConfig(default_receive_config.rtp.nack);
3186 VerifyEmptyFecConfig(default_receive_config.rtp.fec); 3190 VerifyEmptyFecConfig(default_receive_config.rtp.fec);
3187 } 3191 }
3188 3192
3189 } // namespace webrtc 3193 } // 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