зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1363667 - P2.1 - Fix jsep extmap unit test r=mjf
MozReview-Commit-ID: A5aqX2t5Lqu --HG-- extra : rebase_source : ff985e6046bb1819a9489f5af4d4c316d6905005
This commit is contained in:
Родитель
bc576f0c9f
Коммит
34b88025d1
|
@ -4438,13 +4438,16 @@ TEST_F(JsepSessionTest, TestExtmap)
|
|||
auto& answerMediaAttrs = parsedAnswer->GetMediaSection(0).GetAttributeList();
|
||||
ASSERT_TRUE(answerMediaAttrs.HasAttribute(SdpAttribute::kExtmapAttribute));
|
||||
auto& answerExtmap = answerMediaAttrs.GetExtmap().mExtmaps;
|
||||
ASSERT_EQ(2U, answerExtmap.size());
|
||||
ASSERT_EQ("urn:ietf:params:rtp-hdrext:sdes:mid",
|
||||
answerExtmap[0].extensionname);
|
||||
ASSERT_EQ(3U, answerExtmap.size());
|
||||
ASSERT_EQ("urn:ietf:params:rtp-hdrext:ssrc-audio-level",
|
||||
offerExtmap[0].extensionname);
|
||||
ASSERT_EQ(1U, offerExtmap[0].entry);
|
||||
ASSERT_EQ("urn:ietf:params:rtp-hdrext:sdes:mid",
|
||||
answerExtmap[1].extensionname);
|
||||
ASSERT_EQ(2U, offerExtmap[1].entry);
|
||||
// We ensure that the entry for "bar" matches what was in the offer
|
||||
ASSERT_EQ("bar", answerExtmap[1].extensionname);
|
||||
ASSERT_EQ(4U, answerExtmap[1].entry);
|
||||
ASSERT_EQ("bar", answerExtmap[2].extensionname);
|
||||
ASSERT_EQ(4U, answerExtmap[2].entry);
|
||||
}
|
||||
|
||||
TEST_F(JsepSessionTest, TestExtmapWithDuplicates)
|
||||
|
|
Загрузка…
Ссылка в новой задаче