[Stats] Populate "frames" stats for video source.
Spec: https://www.w3.org/TR/webrtc-stats/#dom-rtcvideosourcestats-frames Wiring up the "frames" stats with the cumulative fps counter on the video source. Tests: ./out/Default/peerconnection_unittests ./out/Default/video_engine_tests Bug: webrtc:12499 Change-Id: I4103f56ed04cb464f5f7e70fbf2d77c25a867a68 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/208782 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Reviewed-by: Henrik Boström <hbos@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33404}
This commit is contained in:
@ -1062,9 +1062,7 @@ class RTCStatsReportVerifier {
|
||||
// reflect real code.
|
||||
verifier.TestMemberIsUndefined(video_source.width);
|
||||
verifier.TestMemberIsUndefined(video_source.height);
|
||||
// TODO(hbos): When |frames| is implemented test that this member should be
|
||||
// expected to be non-negative.
|
||||
verifier.TestMemberIsUndefined(video_source.frames);
|
||||
verifier.TestMemberIsNonNegative<uint32_t>(video_source.frames);
|
||||
verifier.TestMemberIsNonNegative<uint32_t>(video_source.frames_per_second);
|
||||
return verifier.ExpectAllMembersSuccessfullyTested();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user