Bug 1708813: Test-case for bug. r=mjf

Differential Revision: https://phabricator.services.mozilla.com/D114039
This commit is contained in:
Byron Campen [:bwc] 2021-05-03 18:53:16 +00:00
parent 185ab5e4f4
commit 98d9c7db9a

View File

@ -5026,6 +5026,13 @@ TEST_F(JsepSessionTest, TestAnswerPTAsymmetry) {
ASSERT_TRUE(codec);
ASSERT_EQ("opus", codec->mName);
ASSERT_EQ("105", codec->mDefaultPt);
// Offerer should use 105 for reoffers
offer = CreateOffer();
ASSERT_NE(std::string::npos, offer.find("a=rtpmap:105 opus")) << offer;
ASSERT_EQ(std::string::npos, offer.find("a=rtpmap:109 opus")) << offer;
ASSERT_NE(std::string::npos, offer.find("a=fmtp:105")) << offer;
ASSERT_EQ(std::string::npos, offer.find("a=fmtp:109")) << offer;
}
TEST_F(JsepSessionTest, PayloadTypeClash) {