Move pause and freeze metrics to standardized location.
These metrics were recently standardized. Part of the standardization effort was to move them from obsolete "track" stats (on track for deprecation and removal: https://crbug.com/webrtc/14175) into the "inbound-rtp" stats which are not deprecated. To ease transition for downstream projects, the metrics are temporarily duplicated in both the old and new locations. In a follow-up CL, they will be deleted from "track". Bug: webrtc:14521 Change-Id: I0d9036472607a8c717ec823a458a79a49ddb80c7 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/278080 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38308}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
7fe7091f8a
commit
c57a28c46b
@ -2376,12 +2376,14 @@ TEST_F(RTCStatsCollectorTest,
|
||||
video_receiver_info_ssrc3.frames_decoded = 995;
|
||||
video_receiver_info_ssrc3.frames_dropped = 10;
|
||||
video_receiver_info_ssrc3.frames_rendered = 990;
|
||||
video_receiver_info_ssrc3.total_frames_duration_ms = 15000;
|
||||
video_receiver_info_ssrc3.sum_squared_frame_durations = 1.5;
|
||||
// TODO(crbug.com/webrtc/14521): When removed from "track", there's no need to
|
||||
// test these here.
|
||||
video_receiver_info_ssrc3.freeze_count = 3;
|
||||
video_receiver_info_ssrc3.pause_count = 2;
|
||||
video_receiver_info_ssrc3.total_freezes_duration_ms = 1000;
|
||||
video_receiver_info_ssrc3.total_pauses_duration_ms = 10000;
|
||||
video_receiver_info_ssrc3.total_frames_duration_ms = 15000;
|
||||
video_receiver_info_ssrc3.sum_squared_frame_durations = 1.5;
|
||||
|
||||
stats_->CreateMockRtpSendersReceiversAndChannels(
|
||||
{}, {}, {},
|
||||
@ -2425,12 +2427,13 @@ TEST_F(RTCStatsCollectorTest,
|
||||
expected_remote_video_track_ssrc3.frames_received = 1000;
|
||||
expected_remote_video_track_ssrc3.frames_decoded = 995;
|
||||
expected_remote_video_track_ssrc3.frames_dropped = 10;
|
||||
expected_remote_video_track_ssrc3.total_frames_duration = 15;
|
||||
expected_remote_video_track_ssrc3.sum_squared_frame_durations = 1.5;
|
||||
// TODO(crbug.com/webrtc/14521): These metrics have been moved, delete them.
|
||||
expected_remote_video_track_ssrc3.freeze_count = 3;
|
||||
expected_remote_video_track_ssrc3.pause_count = 2;
|
||||
expected_remote_video_track_ssrc3.total_freezes_duration = 1;
|
||||
expected_remote_video_track_ssrc3.total_pauses_duration = 10;
|
||||
expected_remote_video_track_ssrc3.total_frames_duration = 15;
|
||||
expected_remote_video_track_ssrc3.sum_squared_frame_durations = 1.5;
|
||||
|
||||
ASSERT_TRUE(report->Get(expected_remote_video_track_ssrc3.id()));
|
||||
EXPECT_EQ(expected_remote_video_track_ssrc3,
|
||||
@ -2576,6 +2579,10 @@ TEST_F(RTCStatsCollectorTest, CollectRTCInboundRTPStreamStats_Video) {
|
||||
video_media_info.receivers[0].frames_assembled_from_multiple_packets = 23;
|
||||
video_media_info.receivers[0].total_inter_frame_delay = 0.123;
|
||||
video_media_info.receivers[0].total_squared_inter_frame_delay = 0.00456;
|
||||
video_media_info.receivers[0].pause_count = 2;
|
||||
video_media_info.receivers[0].total_pauses_duration_ms = 10000;
|
||||
video_media_info.receivers[0].freeze_count = 3;
|
||||
video_media_info.receivers[0].total_freezes_duration_ms = 1000;
|
||||
video_media_info.receivers[0].jitter_ms = 1199;
|
||||
video_media_info.receivers[0].jitter_buffer_delay_seconds = 3.456;
|
||||
video_media_info.receivers[0].jitter_buffer_target_delay_seconds = 1.1;
|
||||
@ -2638,6 +2645,10 @@ TEST_F(RTCStatsCollectorTest, CollectRTCInboundRTPStreamStats_Video) {
|
||||
expected_video.frames_assembled_from_multiple_packets = 23;
|
||||
expected_video.total_inter_frame_delay = 0.123;
|
||||
expected_video.total_squared_inter_frame_delay = 0.00456;
|
||||
expected_video.pause_count = 2;
|
||||
expected_video.total_pauses_duration = 10;
|
||||
expected_video.freeze_count = 3;
|
||||
expected_video.total_freezes_duration = 1;
|
||||
expected_video.jitter = 1.199;
|
||||
expected_video.jitter_buffer_delay = 3.456;
|
||||
expected_video.jitter_buffer_target_delay = 1.1;
|
||||
|
||||
Reference in New Issue
Block a user