stats: add transportId to codec stats
BUG=webrtc:12181 Change-Id: Ib8e38f19ef2ddcb98455356087781f146af8c6b5 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/193280 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Henrik Boström <hbos@webrtc.org> Commit-Queue: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32618}
This commit is contained in:

committed by
Commit Bot

parent
a48515736d
commit
95157a054b
@ -874,6 +874,7 @@ TEST_F(RTCStatsCollectorTest, CollectRTCCodecStats) {
|
||||
expected_inbound_audio_codec.clock_rate = 1337;
|
||||
expected_inbound_audio_codec.channels = 1;
|
||||
expected_inbound_audio_codec.sdp_fmtp_line = "minptime=10;useinbandfec=1";
|
||||
expected_inbound_audio_codec.transport_id = "RTCTransport_TransportName_1";
|
||||
|
||||
RTCCodecStats expected_outbound_audio_codec("RTCCodec_AudioMid_Outbound_2",
|
||||
report->timestamp_us());
|
||||
@ -881,6 +882,7 @@ TEST_F(RTCStatsCollectorTest, CollectRTCCodecStats) {
|
||||
expected_outbound_audio_codec.mime_type = "audio/isac";
|
||||
expected_outbound_audio_codec.clock_rate = 1338;
|
||||
expected_outbound_audio_codec.channels = 2;
|
||||
expected_outbound_audio_codec.transport_id = "RTCTransport_TransportName_1";
|
||||
|
||||
RTCCodecStats expected_inbound_video_codec("RTCCodec_VideoMid_Inbound_3",
|
||||
report->timestamp_us());
|
||||
@ -889,12 +891,14 @@ TEST_F(RTCStatsCollectorTest, CollectRTCCodecStats) {
|
||||
expected_inbound_video_codec.clock_rate = 1339;
|
||||
expected_inbound_video_codec.sdp_fmtp_line =
|
||||
"level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f";
|
||||
expected_inbound_video_codec.transport_id = "RTCTransport_TransportName_1";
|
||||
|
||||
RTCCodecStats expected_outbound_video_codec("RTCCodec_VideoMid_Outbound_4",
|
||||
report->timestamp_us());
|
||||
expected_outbound_video_codec.payload_type = 4;
|
||||
expected_outbound_video_codec.mime_type = "video/VP8";
|
||||
expected_outbound_video_codec.clock_rate = 1340;
|
||||
expected_outbound_video_codec.transport_id = "RTCTransport_TransportName_1";
|
||||
|
||||
ASSERT_TRUE(report->Get(expected_inbound_audio_codec.id()));
|
||||
EXPECT_EQ(
|
||||
|
Reference in New Issue
Block a user