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

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

Issue 2136533002: Only update codec type histogram if lifetime is long enough (10 sec). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: updated test Created 4 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') | 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 2112 matching lines...) Expand 10 before | Expand all | Expand 10 after
2123 RunBaseTest(&test); 2123 RunBaseTest(&test);
2124 2124
2125 // Delete the call for Call stats to be reported. 2125 // Delete the call for Call stats to be reported.
2126 sender_call_.reset(); 2126 sender_call_.reset();
2127 receiver_call_.reset(); 2127 receiver_call_.reset();
2128 2128
2129 std::string video_prefix = 2129 std::string video_prefix =
2130 screenshare ? "WebRTC.Video.Screenshare." : "WebRTC.Video."; 2130 screenshare ? "WebRTC.Video.Screenshare." : "WebRTC.Video.";
2131 2131
2132 // Verify that stats have been updated once. 2132 // Verify that stats have been updated once.
2133 EXPECT_EQ(2, metrics::NumSamples("WebRTC.Call.LifetimeInSeconds"));
pbos-webrtc 2016/07/10 17:43:03 This sounds very flaky to me, deleting the call et
åsapersson 2016/07/25 07:54:04 Checks that the metric is reported twice, once for
2133 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.VideoBitrateReceivedInKbps")); 2134 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.VideoBitrateReceivedInKbps"));
2134 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.RtcpBitrateReceivedInBps")); 2135 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.RtcpBitrateReceivedInBps"));
2135 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.BitrateReceivedInKbps")); 2136 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.BitrateReceivedInKbps"));
2136 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.EstimatedSendBitrateInKbps")); 2137 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.EstimatedSendBitrateInKbps"));
2137 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.PacerBitrateInKbps")); 2138 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Call.PacerBitrateInKbps"));
2138 2139
2140 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.SendStreamLifetimeInSeconds"));
pbos-webrtc 2016/07/10 17:43:03 Same here?
åsapersson 2016/07/25 07:54:04 Reported once for the send/receive stream.
2141 EXPECT_EQ(1,
2142 metrics::NumSamples("WebRTC.Video.ReceiveStreamLifetimeInSeconds"));
2143
2139 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.NackPacketsSentPerMinute")); 2144 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.NackPacketsSentPerMinute"));
2140 EXPECT_EQ(1, 2145 EXPECT_EQ(1,
2141 metrics::NumSamples(video_prefix + "NackPacketsReceivedPerMinute")); 2146 metrics::NumSamples(video_prefix + "NackPacketsReceivedPerMinute"));
2142 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.FirPacketsSentPerMinute")); 2147 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.FirPacketsSentPerMinute"));
2143 EXPECT_EQ(1, 2148 EXPECT_EQ(1,
2144 metrics::NumSamples(video_prefix + "FirPacketsReceivedPerMinute")); 2149 metrics::NumSamples(video_prefix + "FirPacketsReceivedPerMinute"));
2145 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.PliPacketsSentPerMinute")); 2150 EXPECT_EQ(1, metrics::NumSamples("WebRTC.Video.PliPacketsSentPerMinute"));
2146 EXPECT_EQ(1, 2151 EXPECT_EQ(1,
2147 metrics::NumSamples(video_prefix + "PliPacketsReceivedPerMinute")); 2152 metrics::NumSamples(video_prefix + "PliPacketsReceivedPerMinute"));
2148 2153
(...skipping 1426 matching lines...) Expand 10 before | Expand all | Expand 10 after
3575 private: 3580 private:
3576 bool video_observed_; 3581 bool video_observed_;
3577 bool audio_observed_; 3582 bool audio_observed_;
3578 SequenceNumberUnwrapper unwrapper_; 3583 SequenceNumberUnwrapper unwrapper_;
3579 std::set<int64_t> received_packet_ids_; 3584 std::set<int64_t> received_packet_ids_;
3580 } test; 3585 } test;
3581 3586
3582 RunBaseTest(&test); 3587 RunBaseTest(&test);
3583 } 3588 }
3584 } // namespace webrtc 3589 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/call/call.cc ('k') | webrtc/video/receive_statistics_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698