diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /third_party/libwebrtc/pc/peer_connection_signaling_unittest.cc | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/libwebrtc/pc/peer_connection_signaling_unittest.cc')
-rw-r--r-- | third_party/libwebrtc/pc/peer_connection_signaling_unittest.cc | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/third_party/libwebrtc/pc/peer_connection_signaling_unittest.cc b/third_party/libwebrtc/pc/peer_connection_signaling_unittest.cc index 8ca59fc20c..190fb38b43 100644 --- a/third_party/libwebrtc/pc/peer_connection_signaling_unittest.cc +++ b/third_party/libwebrtc/pc/peer_connection_signaling_unittest.cc @@ -896,8 +896,8 @@ TEST_P(PeerConnectionSignalingTest, UnsupportedContentType) { "m=bogus 9 FOO 0 8\r\n" "c=IN IP4 0.0.0.0\r\n" "a=mid:bogusmid\r\n"; - std::unique_ptr<webrtc::SessionDescriptionInterface> remote_description = - webrtc::CreateSessionDescription(SdpType::kOffer, sdp, nullptr); + std::unique_ptr<SessionDescriptionInterface> remote_description = + CreateSessionDescription(SdpType::kOffer, sdp, nullptr); EXPECT_TRUE(caller->SetRemoteDescription(std::move(remote_description))); @@ -977,20 +977,17 @@ TEST_P(PeerConnectionSignalingTest, ReceiveFlexFec) { "a=ssrc-group:FEC-FR 1224551896 1953032773\r\n" "a=ssrc:1224551896 cname:/exJcmhSLpyu9FgV\r\n" "a=ssrc:1953032773 cname:/exJcmhSLpyu9FgV\r\n"; - std::unique_ptr<webrtc::SessionDescriptionInterface> remote_description = - webrtc::CreateSessionDescription(SdpType::kOffer, sdp, nullptr); + std::unique_ptr<SessionDescriptionInterface> remote_description = + CreateSessionDescription(SdpType::kOffer, sdp, nullptr); EXPECT_TRUE(caller->SetRemoteDescription(std::move(remote_description))); auto answer = caller->CreateAnswer(); ASSERT_EQ(answer->description()->contents().size(), 1u); - ASSERT_NE( - answer->description()->contents()[0].media_description()->as_video(), - nullptr); + ASSERT_NE(answer->description()->contents()[0].media_description(), nullptr); auto codecs = answer->description() ->contents()[0] .media_description() - ->as_video() ->codecs(); ASSERT_EQ(codecs.size(), 2u); EXPECT_EQ(codecs[1].name, "flexfec-03"); @@ -1033,20 +1030,17 @@ TEST_P(PeerConnectionSignalingTest, ReceiveFlexFecReoffer) { "a=ssrc-group:FEC-FR 1224551896 1953032773\r\n" "a=ssrc:1224551896 cname:/exJcmhSLpyu9FgV\r\n" "a=ssrc:1953032773 cname:/exJcmhSLpyu9FgV\r\n"; - std::unique_ptr<webrtc::SessionDescriptionInterface> remote_description = - webrtc::CreateSessionDescription(SdpType::kOffer, sdp, nullptr); + std::unique_ptr<SessionDescriptionInterface> remote_description = + CreateSessionDescription(SdpType::kOffer, sdp, nullptr); EXPECT_TRUE(caller->SetRemoteDescription(std::move(remote_description))); auto answer = caller->CreateAnswer(); ASSERT_EQ(answer->description()->contents().size(), 1u); - ASSERT_NE( - answer->description()->contents()[0].media_description()->as_video(), - nullptr); + ASSERT_NE(answer->description()->contents()[0].media_description(), nullptr); auto codecs = answer->description() ->contents()[0] .media_description() - ->as_video() ->codecs(); ASSERT_EQ(codecs.size(), 2u); EXPECT_EQ(codecs[1].name, "flexfec-03"); @@ -1059,7 +1053,6 @@ TEST_P(PeerConnectionSignalingTest, ReceiveFlexFecReoffer) { auto offer_codecs = offer->description() ->contents()[0] .media_description() - ->as_video() ->codecs(); auto flexfec_it = std::find_if( offer_codecs.begin(), offer_codecs.end(), @@ -1104,8 +1097,8 @@ TEST_P(PeerConnectionSignalingTest, MidAttributeMaxLength) { "a=rtcp-fb:102 nack\r\n" "a=rtcp-fb:102 nack pli\r\n" "a=ssrc:1224551896 cname:/exJcmhSLpyu9FgV\r\n"; - std::unique_ptr<webrtc::SessionDescriptionInterface> remote_description = - webrtc::CreateSessionDescription(SdpType::kOffer, sdp, nullptr); + std::unique_ptr<SessionDescriptionInterface> remote_description = + CreateSessionDescription(SdpType::kOffer, sdp, nullptr); EXPECT_FALSE(caller->SetRemoteDescription(std::move(remote_description))); } @@ -1339,8 +1332,8 @@ TEST_F(PeerConnectionSignalingUnifiedPlanTest, RtxReofferApt) { "a=rtcp-fb:102 nack\r\n" "a=rtcp-fb:102 nack pli\r\n" "a=ssrc:1224551896 cname:/exJcmhSLpyu9FgV\r\n"; - std::unique_ptr<webrtc::SessionDescriptionInterface> remote_description = - webrtc::CreateSessionDescription(SdpType::kOffer, sdp, nullptr); + std::unique_ptr<SessionDescriptionInterface> remote_description = + CreateSessionDescription(SdpType::kOffer, sdp, nullptr); EXPECT_TRUE(callee->SetRemoteDescription(std::move(remote_description))); @@ -1353,7 +1346,6 @@ TEST_F(PeerConnectionSignalingUnifiedPlanTest, RtxReofferApt) { auto codecs = reoffer->description() ->contents()[0] .media_description() - ->as_video() ->codecs(); ASSERT_GT(codecs.size(), 2u); EXPECT_EQ(codecs[0].name, "VP8"); |