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

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

Issue 2992043002: Renamed fields in common_types.h/RtcpStatistics. (Closed)
Patch Set: Rebase on new master Created 3 years, 4 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
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 3159 matching lines...) Expand 10 before | Expand all | Expand 10 after
3170 stats.decoder_implementation_name == 3170 stats.decoder_implementation_name ==
3171 test::FakeDecoder::kImplementationName; 3171 test::FakeDecoder::kImplementationName;
3172 receive_stats_filled_["RenderDelayAsHighAsExpected"] |= 3172 receive_stats_filled_["RenderDelayAsHighAsExpected"] |=
3173 stats.render_delay_ms >= kExpectedRenderDelayMs; 3173 stats.render_delay_ms >= kExpectedRenderDelayMs;
3174 3174
3175 receive_stats_filled_["FrameCallback"] |= stats.decode_frame_rate != 0; 3175 receive_stats_filled_["FrameCallback"] |= stats.decode_frame_rate != 0;
3176 3176
3177 receive_stats_filled_["FrameRendered"] |= stats.render_frame_rate != 0; 3177 receive_stats_filled_["FrameRendered"] |= stats.render_frame_rate != 0;
3178 3178
3179 receive_stats_filled_["StatisticsUpdated"] |= 3179 receive_stats_filled_["StatisticsUpdated"] |=
3180 stats.rtcp_stats.cumulative_lost != 0 || 3180 stats.rtcp_stats.packets_lost != 0 ||
3181 stats.rtcp_stats.extended_max_sequence_number != 0 || 3181 stats.rtcp_stats.extended_highest_sequence_number != 0 ||
3182 stats.rtcp_stats.fraction_lost != 0 || stats.rtcp_stats.jitter != 0; 3182 stats.rtcp_stats.fraction_lost != 0 || stats.rtcp_stats.jitter != 0;
3183 3183
3184 receive_stats_filled_["DataCountersUpdated"] |= 3184 receive_stats_filled_["DataCountersUpdated"] |=
3185 stats.rtp_stats.transmitted.payload_bytes != 0 || 3185 stats.rtp_stats.transmitted.payload_bytes != 0 ||
3186 stats.rtp_stats.fec.packets != 0 || 3186 stats.rtp_stats.fec.packets != 0 ||
3187 stats.rtp_stats.transmitted.header_bytes != 0 || 3187 stats.rtp_stats.transmitted.header_bytes != 0 ||
3188 stats.rtp_stats.transmitted.packets != 0 || 3188 stats.rtp_stats.transmitted.packets != 0 ||
3189 stats.rtp_stats.transmitted.padding_bytes != 0 || 3189 stats.rtp_stats.transmitted.padding_bytes != 0 ||
3190 stats.rtp_stats.retransmitted.packets != 0; 3190 stats.rtp_stats.retransmitted.packets != 0;
3191 3191
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
3237 it != stats.substreams.end(); ++it) { 3237 it != stats.substreams.end(); ++it) {
3238 if (expected_send_ssrcs_.find(it->first) == expected_send_ssrcs_.end()) 3238 if (expected_send_ssrcs_.find(it->first) == expected_send_ssrcs_.end())
3239 continue; // Probably RTX. 3239 continue; // Probably RTX.
3240 3240
3241 send_stats_filled_[CompoundKey("CapturedFrameRate", it->first)] |= 3241 send_stats_filled_[CompoundKey("CapturedFrameRate", it->first)] |=
3242 stats.input_frame_rate != 0; 3242 stats.input_frame_rate != 0;
3243 3243
3244 const VideoSendStream::StreamStats& stream_stats = it->second; 3244 const VideoSendStream::StreamStats& stream_stats = it->second;
3245 3245
3246 send_stats_filled_[CompoundKey("StatisticsUpdated", it->first)] |= 3246 send_stats_filled_[CompoundKey("StatisticsUpdated", it->first)] |=
3247 stream_stats.rtcp_stats.cumulative_lost != 0 || 3247 stream_stats.rtcp_stats.packets_lost != 0 ||
3248 stream_stats.rtcp_stats.extended_max_sequence_number != 0 || 3248 stream_stats.rtcp_stats.extended_highest_sequence_number != 0 ||
3249 stream_stats.rtcp_stats.fraction_lost != 0; 3249 stream_stats.rtcp_stats.fraction_lost != 0;
3250 3250
3251 send_stats_filled_[CompoundKey("DataCountersUpdated", it->first)] |= 3251 send_stats_filled_[CompoundKey("DataCountersUpdated", it->first)] |=
3252 stream_stats.rtp_stats.fec.packets != 0 || 3252 stream_stats.rtp_stats.fec.packets != 0 ||
3253 stream_stats.rtp_stats.transmitted.padding_bytes != 0 || 3253 stream_stats.rtp_stats.transmitted.padding_bytes != 0 ||
3254 stream_stats.rtp_stats.retransmitted.packets != 0 || 3254 stream_stats.rtp_stats.retransmitted.packets != 0 ||
3255 stream_stats.rtp_stats.transmitted.packets != 0; 3255 stream_stats.rtp_stats.transmitted.packets != 0;
3256 3256
3257 send_stats_filled_[CompoundKey("BitrateStatisticsObserver.Total", 3257 send_stats_filled_[CompoundKey("BitrateStatisticsObserver.Total",
3258 it->first)] |= 3258 it->first)] |=
(...skipping 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after
4757 std::unique_ptr<VideoEncoder> encoder_; 4757 std::unique_ptr<VideoEncoder> encoder_;
4758 std::unique_ptr<VideoDecoder> decoder_; 4758 std::unique_ptr<VideoDecoder> decoder_;
4759 rtc::CriticalSection crit_; 4759 rtc::CriticalSection crit_;
4760 int recorded_frames_ GUARDED_BY(crit_); 4760 int recorded_frames_ GUARDED_BY(crit_);
4761 } test(this); 4761 } test(this);
4762 4762
4763 RunBaseTest(&test); 4763 RunBaseTest(&test);
4764 } 4764 }
4765 4765
4766 } // namespace webrtc 4766 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc ('k') | webrtc/video/receive_statistics_proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698