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); |