Lines Matching refs:acd
720 const AudioContentDescription* acd = ac->media_description()->as_audio(); in TestVideoGcmCipher() local
722 EXPECT_EQ(MEDIA_TYPE_AUDIO, acd->type()); in TestVideoGcmCipher()
723 EXPECT_THAT(acd->codecs(), ElementsAreArray(kAudioCodecsAnswer)); in TestVideoGcmCipher()
724 EXPECT_EQ(kAutoBandwidth, acd->bandwidth()); // negotiated auto bw in TestVideoGcmCipher()
725 EXPECT_EQ(0U, acd->first_ssrc()); // no sender is attached in TestVideoGcmCipher()
726 EXPECT_TRUE(acd->rtcp_mux()); // negotiated rtcp-mux in TestVideoGcmCipher()
728 ASSERT_CRYPTO(acd, 1U, kDefaultSrtpCryptoSuiteGcm); in TestVideoGcmCipher()
730 ASSERT_CRYPTO(acd, 1U, kDefaultSrtpCryptoSuite); in TestVideoGcmCipher()
817 const AudioContentDescription* acd = ac->media_description()->as_audio(); in TEST_F() local
818 EXPECT_EQ(MEDIA_TYPE_AUDIO, acd->type()); in TEST_F()
819 EXPECT_EQ(f1_.audio_sendrecv_codecs(), acd->codecs()); in TEST_F()
820 EXPECT_EQ(0U, acd->first_ssrc()); // no sender is attached. in TEST_F()
821 EXPECT_EQ(kAutoBandwidth, acd->bandwidth()); // default bandwidth (auto) in TEST_F()
822 EXPECT_TRUE(acd->rtcp_mux()); // rtcp-mux defaults on in TEST_F()
823 ASSERT_CRYPTO(acd, 1U, kDefaultSrtpCryptoSuite); in TEST_F()
824 EXPECT_EQ(cricket::kMediaProtocolSavpf, acd->protocol()); in TEST_F()
840 const AudioContentDescription* acd = ac->media_description()->as_audio(); in TEST_F() local
842 EXPECT_EQ(MEDIA_TYPE_AUDIO, acd->type()); in TEST_F()
843 EXPECT_EQ(f1_.audio_sendrecv_codecs(), acd->codecs()); in TEST_F()
844 EXPECT_EQ(0U, acd->first_ssrc()); // no sender is attached in TEST_F()
845 EXPECT_EQ(kAutoBandwidth, acd->bandwidth()); // default bandwidth (auto) in TEST_F()
846 EXPECT_TRUE(acd->rtcp_mux()); // rtcp-mux defaults on in TEST_F()
847 ASSERT_CRYPTO(acd, 1U, kDefaultSrtpCryptoSuite); in TEST_F()
848 EXPECT_EQ(cricket::kMediaProtocolSavpf, acd->protocol()); in TEST_F()
875 const AudioContentDescription* acd = in TEST_F() local
880 ASSERT_TRUE(NULL != acd); in TEST_F()
882 EXPECT_NE(vcd->codecs()[0].id, acd->codecs()[0].id); in TEST_F()
884 EXPECT_NE(acd->codecs()[0].id, dcd->codecs()[0].id); in TEST_F()
886 EXPECT_EQ(acd->codecs()[0].name, offered_audio_codec.name); in TEST_F()
917 const AudioContentDescription* acd = in TEST_F() local
924 EXPECT_TRUE(NULL != acd); in TEST_F()
927 ASSERT_CRYPTO(acd, 1U, kDefaultSrtpCryptoSuite); in TEST_F()
928 EXPECT_EQ(cricket::kMediaProtocolSavpf, acd->protocol()); in TEST_F()
949 const AudioContentDescription* acd = ac->media_description()->as_audio(); in TEST_F() local
951 EXPECT_EQ(MEDIA_TYPE_AUDIO, acd->type()); in TEST_F()
952 EXPECT_EQ(f1_.audio_sendrecv_codecs(), acd->codecs()); in TEST_F()
953 EXPECT_EQ(0U, acd->first_ssrc()); // no sender is attched. in TEST_F()
954 EXPECT_EQ(kAutoBandwidth, acd->bandwidth()); // default bandwidth (auto) in TEST_F()
955 EXPECT_TRUE(acd->rtcp_mux()); // rtcp-mux defaults on in TEST_F()
956 ASSERT_CRYPTO(acd, 1U, kDefaultSrtpCryptoSuite); in TEST_F()
957 EXPECT_EQ(cricket::kMediaProtocolSavpf, acd->protocol()); in TEST_F()
1186 const AudioContentDescription* acd = ac->media_description()->as_audio(); in TEST_F() local
1190 EXPECT_FALSE(acd->has_ssrcs()); // No StreamParams. in TEST_F()
1261 const AudioContentDescription* acd = ac->media_description()->as_audio(); in TEST_F() local
1262 EXPECT_EQ(MEDIA_TYPE_AUDIO, acd->type()); in TEST_F()
1263 EXPECT_THAT(acd->codecs(), ElementsAreArray(kAudioCodecsAnswer)); in TEST_F()
1264 EXPECT_EQ(0U, acd->first_ssrc()); // no sender is attached in TEST_F()
1265 EXPECT_EQ(kAutoBandwidth, acd->bandwidth()); // negotiated auto bw in TEST_F()
1266 EXPECT_TRUE(acd->rtcp_mux()); // negotiated rtcp-mux in TEST_F()
1267 ASSERT_CRYPTO(acd, 1U, kDefaultSrtpCryptoSuite); in TEST_F()
1268 EXPECT_EQ(cricket::kMediaProtocolSavpf, acd->protocol()); in TEST_F()
1292 const AudioContentDescription* acd = ac->media_description()->as_audio(); in TEST_F() local
1293 EXPECT_EQ(MEDIA_TYPE_AUDIO, acd->type()); in TEST_F()
1294 EXPECT_THAT(acd->codecs(), ElementsAreArray(kAudioCodecsAnswer)); in TEST_F()
1295 EXPECT_EQ(0U, acd->first_ssrc()); // no sender is attached in TEST_F()
1296 EXPECT_EQ(kAutoBandwidth, acd->bandwidth()); // negotiated auto bw in TEST_F()
1297 EXPECT_TRUE(acd->rtcp_mux()); // negotiated rtcp-mux in TEST_F()
1298 ASSERT_CRYPTO(acd, 1U, kDefaultSrtpCryptoSuiteGcm); in TEST_F()
1299 EXPECT_EQ(cricket::kMediaProtocolSavpf, acd->protocol()); in TEST_F()
1318 const AudioContentDescription* acd = ac->media_description()->as_audio(); in TEST_F() local
1320 EXPECT_EQ(MEDIA_TYPE_AUDIO, acd->type()); in TEST_F()
1321 EXPECT_THAT(acd->codecs(), ElementsAreArray(kAudioCodecsAnswer)); in TEST_F()
1322 EXPECT_EQ(kAutoBandwidth, acd->bandwidth()); // negotiated auto bw in TEST_F()
1323 EXPECT_EQ(0U, acd->first_ssrc()); // no sender is attached in TEST_F()
1324 EXPECT_TRUE(acd->rtcp_mux()); // negotiated rtcp-mux in TEST_F()
1325 ASSERT_CRYPTO(acd, 1U, kDefaultSrtpCryptoSuite); in TEST_F()
1367 const AudioContentDescription* acd = ac->media_description()->as_audio(); in TEST_F() local
1369 EXPECT_EQ(MEDIA_TYPE_AUDIO, acd->type()); in TEST_F()
1370 EXPECT_THAT(acd->codecs(), ElementsAreArray(kAudioCodecsAnswer)); in TEST_F()
1371 EXPECT_EQ(kAutoBandwidth, acd->bandwidth()); // negotiated auto bw in TEST_F()
1372 EXPECT_EQ(0U, acd->first_ssrc()); // no sender is attached in TEST_F()
1373 EXPECT_TRUE(acd->rtcp_mux()); // negotiated rtcp-mux in TEST_F()
1374 ASSERT_CRYPTO(acd, 1U, kDefaultSrtpCryptoSuite); in TEST_F()
1404 const AudioContentDescription* acd = ac->media_description()->as_audio(); in TEST_F() local
1406 EXPECT_EQ(MEDIA_TYPE_AUDIO, acd->type()); in TEST_F()
1407 EXPECT_THAT(acd->codecs(), ElementsAreArray(kAudioCodecsAnswer)); in TEST_F()
1408 EXPECT_EQ(kAutoBandwidth, acd->bandwidth()); // negotiated auto bw in TEST_F()
1409 EXPECT_EQ(0U, acd->first_ssrc()); // no sender is attached in TEST_F()
1410 EXPECT_TRUE(acd->rtcp_mux()); // negotiated rtcp-mux in TEST_F()
1411 ASSERT_CRYPTO(acd, 1U, kDefaultSrtpCryptoSuiteGcm); in TEST_F()
2181 const AudioContentDescription* acd = ac->media_description()->as_audio(); in TEST_F() local
2185 EXPECT_FALSE(acd->has_ssrcs()); // No StreamParams. in TEST_F()
2441 const AudioContentDescription* acd = ac->media_description()->as_audio(); in TEST_F() local
2444 EXPECT_EQ(MEDIA_TYPE_AUDIO, acd->type()); in TEST_F()
2445 EXPECT_EQ(f1_.audio_sendrecv_codecs(), acd->codecs()); in TEST_F()
2447 const StreamParamsVec& audio_streams = acd->streams(); in TEST_F()
2457 EXPECT_EQ(kAutoBandwidth, acd->bandwidth()); // default bandwidth (auto) in TEST_F()
2458 EXPECT_TRUE(acd->rtcp_mux()); // rtcp-mux defaults on in TEST_F()
2459 ASSERT_CRYPTO(acd, 1U, kDefaultSrtpCryptoSuite); in TEST_F()
2518 EXPECT_EQ(acd->type(), updated_acd->type()); in TEST_F()
2519 EXPECT_EQ(acd->codecs(), updated_acd->codecs()); in TEST_F()
2525 EXPECT_TRUE(CompareCryptoParams(acd->cryptos(), updated_acd->cryptos())); in TEST_F()
2800 const AudioContentDescription* acd = ac->media_description()->as_audio(); in TEST_F() local
2803 ASSERT_CRYPTO(acd, 1U, kDefaultSrtpCryptoSuite); in TEST_F()
2807 EXPECT_EQ(MEDIA_TYPE_AUDIO, acd->type()); in TEST_F()
2808 EXPECT_THAT(acd->codecs(), ElementsAreArray(kAudioCodecsAnswer)); in TEST_F()
2810 const StreamParamsVec& audio_streams = acd->streams(); in TEST_F()
2820 EXPECT_EQ(kAutoBandwidth, acd->bandwidth()); // default bandwidth (auto) in TEST_F()
2821 EXPECT_TRUE(acd->rtcp_mux()); // rtcp-mux defaults on in TEST_F()
2874 EXPECT_TRUE(CompareCryptoParams(acd->cryptos(), updated_acd->cryptos())); in TEST_F()
2880 EXPECT_EQ(acd->type(), updated_acd->type()); in TEST_F()
2881 EXPECT_EQ(acd->codecs(), updated_acd->codecs()); in TEST_F()
2915 const AudioContentDescription* acd = in TEST_F() local
2917 EXPECT_THAT(acd->codecs(), ElementsAreArray(kAudioCodecsAnswer)); in TEST_F()
2976 const AudioContentDescription* acd = in TEST_F() local
2978 EXPECT_THAT(acd->codecs(), ElementsAreArray(kAudioCodecs2)); in TEST_F()
3033 const AudioContentDescription* acd = in TEST_F() local
3035 EXPECT_THAT(acd->codecs(), ElementsAreArray(kAudioCodecsAnswer)); in TEST_F()
3192 const AudioContentDescription* acd = in TEST_F() local
3194 EXPECT_THAT(acd->codecs(), ElementsAreArray(kAudioCodecsAnswer)); in TEST_F()
3203 int used_pl_type = acd->codecs()[0].id; in TEST_F()
3679 std::unique_ptr<AudioContentDescription> acd = in TEST() local
3681 acd->set_codecs(MAKE_VECTOR(kAudioCodecs1)); in TEST()
3682 acd->AddLegacyStream(1); in TEST()
3683 source.AddContent(cricket::CN_AUDIO, MediaProtocolType::kRtp, acd->Clone()); in TEST()
3699 EXPECT_EQ(acd->codecs(), acd_copy->codecs()); in TEST()
3700 EXPECT_EQ(1u, acd->first_ssrc()); in TEST()
4150 const AudioContentDescription* acd = in TEST_F() local
4152 ASSERT_EQ(1u, acd->streams().size()); in TEST_F()
4153 EXPECT_EQ(kAudioTrack1, acd->streams()[0].id); in TEST_F()
4154 EXPECT_EQ(RtpTransceiverDirection::kSendRecv, acd->direction()); in TEST_F()
4164 acd = offer->contents()[2].media_description()->as_audio(); in TEST_F()
4165 ASSERT_EQ(1u, acd->streams().size()); in TEST_F()
4166 EXPECT_EQ(kAudioTrack2, acd->streams()[0].id); in TEST_F()
4167 EXPECT_EQ(RtpTransceiverDirection::kSendRecv, acd->direction()); in TEST_F()
4212 const AudioContentDescription* acd = in TEST_F() local
4214 ASSERT_EQ(1u, acd->streams().size()); in TEST_F()
4215 EXPECT_EQ(kAudioTrack1, acd->streams()[0].id); in TEST_F()
4216 EXPECT_EQ(RtpTransceiverDirection::kSendRecv, acd->direction()); in TEST_F()
4226 acd = answer->contents()[2].media_description()->as_audio(); in TEST_F()
4227 ASSERT_EQ(1u, acd->streams().size()); in TEST_F()
4228 EXPECT_EQ(kAudioTrack2, acd->streams()[0].id); in TEST_F()
4229 EXPECT_EQ(RtpTransceiverDirection::kSendRecv, acd->direction()); in TEST_F()
4610 const AudioContentDescription* acd = ac->media_description()->as_audio(); in TEST_P() local
4612 EXPECT_EQ(GetParam(), acd->protocol()); in TEST_P()
4722 AudioContentDescription* acd = ac->media_description()->as_audio(); in TestAudioCodecsOffer() local
4727 if (acd->direction() == RtpTransceiverDirection::kSendOnly) { in TestAudioCodecsOffer()
4728 EXPECT_TRUE(CodecsMatch<AudioCodec>(send_codecs, acd->codecs())); in TestAudioCodecsOffer()
4729 } else if (acd->direction() == RtpTransceiverDirection::kRecvOnly) { in TestAudioCodecsOffer()
4730 EXPECT_TRUE(CodecsMatch<AudioCodec>(recv_codecs, acd->codecs())); in TestAudioCodecsOffer()
4732 EXPECT_TRUE(CodecsMatch<AudioCodec>(sendrecv_codecs, acd->codecs())); in TestAudioCodecsOffer()
4836 const AudioContentDescription* acd = ac->media_description()->as_audio(); in TestAudioCodecsAnswer() local
4855 if (acd->direction() == RtpTransceiverDirection::kSendOnly) { in TestAudioCodecsAnswer()
4858 } else if (acd->direction() == RtpTransceiverDirection::kRecvOnly) { in TestAudioCodecsAnswer()
4882 EXPECT_TRUE(acd->codecs() == target_codecs) in TestAudioCodecsAnswer()
4884 << ", got: " << format_codecs(acd->codecs()) << "; Offered: " in TestAudioCodecsAnswer()
4889 << webrtc::RtpTransceiverDirectionToString(acd->direction()); in TestAudioCodecsAnswer()