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

Unified Diff: webrtc/api/rtcstats_integrationtest.cc

Issue 2602033002: RTCMediaStreamTrackStats.frameWidth/Height,framesPerSecond,framesDecoded (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/api/rtcstatscollector.cc » ('j') | webrtc/api/rtcstatscollector.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/rtcstats_integrationtest.cc
diff --git a/webrtc/api/rtcstats_integrationtest.cc b/webrtc/api/rtcstats_integrationtest.cc
index 27c5c1578e38a36344f493437291375ed5bdd309..c97e71129fe0c1ca6a7b0eb5ac8c106df7a89441 100644
--- a/webrtc/api/rtcstats_integrationtest.cc
+++ b/webrtc/api/rtcstats_integrationtest.cc
@@ -395,10 +395,15 @@ class RTCStatsReportVerifier {
// Video-only members
verifier.TestMemberIsDefined(media_stream_track.frame_width);
verifier.TestMemberIsDefined(media_stream_track.frame_height);
- verifier.TestMemberIsUndefined(media_stream_track.frames_per_second);
+ verifier.TestMemberIsDefined(media_stream_track.frames_per_second);
verifier.TestMemberIsUndefined(media_stream_track.frames_sent);
verifier.TestMemberIsUndefined(media_stream_track.frames_received);
- verifier.TestMemberIsUndefined(media_stream_track.frames_decoded);
+ if (media_stream_track.remote_source.is_defined() &&
+ *media_stream_track.remote_source) {
+ verifier.TestMemberIsDefined(media_stream_track.frames_decoded);
+ } else {
+ verifier.TestMemberIsUndefined(media_stream_track.frames_decoded);
+ }
verifier.TestMemberIsUndefined(media_stream_track.frames_dropped);
verifier.TestMemberIsUndefined(media_stream_track.frames_corrupted);
verifier.TestMemberIsUndefined(media_stream_track.partial_frames_lost);
« no previous file with comments | « no previous file | webrtc/api/rtcstatscollector.cc » ('j') | webrtc/api/rtcstatscollector.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698