Searched refs:IsMediaContentOfType (Results 1 – 2 of 2) sorted by relevance
/external/webrtc/talk/session/media/ |
D | mediasession.cc | 88 static bool IsMediaContentOfType(const ContentInfo* content, in IsMediaContentOfType() function 1288 if (IsMediaContentOfType(&*it, MEDIA_TYPE_AUDIO)) { in CreateOffer() 1295 } else if (IsMediaContentOfType(&*it, MEDIA_TYPE_VIDEO)) { in CreateOffer() 1302 } else if (IsMediaContentOfType(&*it, MEDIA_TYPE_DATA)) { in CreateOffer() 1375 if (IsMediaContentOfType(&*it, MEDIA_TYPE_AUDIO)) { in CreateAnswer() 1380 } else if (IsMediaContentOfType(&*it, MEDIA_TYPE_VIDEO)) { in CreateAnswer() 1386 ASSERT(IsMediaContentOfType(&*it, MEDIA_TYPE_DATA)); in CreateAnswer() 1917 return IsMediaContentOfType(content, MEDIA_TYPE_AUDIO); in IsAudioContent() 1921 return IsMediaContentOfType(content, MEDIA_TYPE_VIDEO); in IsVideoContent() 1925 return IsMediaContentOfType(content, MEDIA_TYPE_DATA); in IsDataContent() [all …]
|
D | mediasession_unittest.cc | 199 static bool IsMediaContentOfType(const ContentInfo* content, in IsMediaContentOfType() function 719 EXPECT_TRUE(IsMediaContentOfType(&offer->contents()[0], MEDIA_TYPE_AUDIO)); in TEST_F() 720 EXPECT_TRUE(IsMediaContentOfType(&offer->contents()[1], MEDIA_TYPE_VIDEO)); in TEST_F() 737 EXPECT_TRUE(IsMediaContentOfType(&offer1->contents()[0], MEDIA_TYPE_DATA)); in TEST_F() 744 EXPECT_TRUE(IsMediaContentOfType(&offer2->contents()[0], MEDIA_TYPE_DATA)); in TEST_F() 745 EXPECT_TRUE(IsMediaContentOfType(&offer2->contents()[1], MEDIA_TYPE_VIDEO)); in TEST_F() 752 EXPECT_TRUE(IsMediaContentOfType(&offer3->contents()[0], MEDIA_TYPE_DATA)); in TEST_F() 753 EXPECT_TRUE(IsMediaContentOfType(&offer3->contents()[1], MEDIA_TYPE_VIDEO)); in TEST_F() 754 EXPECT_TRUE(IsMediaContentOfType(&offer3->contents()[2], MEDIA_TYPE_AUDIO)); in TEST_F() 761 EXPECT_TRUE(IsMediaContentOfType(&offer4->contents()[0], MEDIA_TYPE_AUDIO)); in TEST_F() [all …]
|