Index: webrtc/api/rtcstats_integrationtest.cc |
diff --git a/webrtc/api/rtcstats_integrationtest.cc b/webrtc/api/rtcstats_integrationtest.cc |
index 33b1436e7bc21434b9f38ed37653fc22d31549c8..5ded4470ea5fb13d019e4f7a91e869f435bc08a8 100644 |
--- a/webrtc/api/rtcstats_integrationtest.cc |
+++ b/webrtc/api/rtcstats_integrationtest.cc |
@@ -439,7 +439,12 @@ class RTCStatsReportVerifier { |
media_stream_track.frame_height); |
verifier.TestMemberIsUndefined(media_stream_track.frames_per_second); |
verifier.TestMemberIsUndefined(media_stream_track.frames_sent); |
- verifier.TestMemberIsUndefined(media_stream_track.frames_received); |
+ if (*media_stream_track.remote_source) { |
+ verifier.TestMemberIsNonNegative<uint32_t>( |
+ media_stream_track.frames_received); |
+ } else { |
+ verifier.TestMemberIsUndefined(media_stream_track.frames_received); |
+ } |
verifier.TestMemberIsUndefined(media_stream_track.frames_decoded); |
verifier.TestMemberIsUndefined(media_stream_track.frames_dropped); |
verifier.TestMemberIsUndefined(media_stream_track.frames_corrupted); |
@@ -451,6 +456,8 @@ class RTCStatsReportVerifier { |
verifier.TestMemberIsUndefined( |
media_stream_track.echo_return_loss_enhancement); |
} else { |
+ RTC_DCHECK_EQ(*media_stream_track.kind, |
+ RTCMediaStreamTrackKind::kAudio); |
// Video-only members should be undefined |
verifier.TestMemberIsUndefined(media_stream_track.frame_width); |
verifier.TestMemberIsUndefined(media_stream_track.frame_height); |