Lines Matching refs:acd
492 const AudioContentDescription* acd =
494 EXPECT_EQ(MEDIA_TYPE_AUDIO, acd->type());
495 EXPECT_EQ(f1_.audio_codecs(), acd->codecs());
496 EXPECT_NE(0U, acd->first_ssrc()); // a random nonzero ssrc
497 EXPECT_EQ(kAutoBandwidth, acd->bandwidth()); // default bandwidth (auto)
498 EXPECT_TRUE(acd->rtcp_mux()); // rtcp-mux defaults on
499 ASSERT_CRYPTO(acd, 2U, CS_AES_CM_128_HMAC_SHA1_32);
500 EXPECT_EQ(std::string(cricket::kMediaProtocolSavpf), acd->protocol());
517 const AudioContentDescription* acd =
521 EXPECT_EQ(MEDIA_TYPE_AUDIO, acd->type());
522 EXPECT_EQ(f1_.audio_codecs(), acd->codecs());
523 EXPECT_NE(0U, acd->first_ssrc()); // a random nonzero ssrc
524 EXPECT_EQ(kAutoBandwidth, acd->bandwidth()); // default bandwidth (auto)
525 EXPECT_TRUE(acd->rtcp_mux()); // rtcp-mux defaults on
526 ASSERT_CRYPTO(acd, 2U, CS_AES_CM_128_HMAC_SHA1_32);
527 EXPECT_EQ(std::string(cricket::kMediaProtocolSavpf), acd->protocol());
556 const AudioContentDescription* acd =
561 ASSERT_TRUE(NULL != acd);
563 EXPECT_NE(vcd->codecs()[0].id, acd->codecs()[0].id);
565 EXPECT_NE(acd->codecs()[0].id, dcd->codecs()[0].id);
567 EXPECT_EQ(acd->codecs()[0].name, offered_audio_codec.name);
594 const AudioContentDescription* acd =
601 EXPECT_TRUE(NULL != acd);
604 ASSERT_CRYPTO(acd, 1U, CS_AES_CM_128_HMAC_SHA1_80);
605 EXPECT_EQ(std::string(cricket::kMediaProtocolSavpf), acd->protocol());
626 const AudioContentDescription* acd =
630 EXPECT_EQ(MEDIA_TYPE_AUDIO, acd->type());
631 EXPECT_EQ(f1_.audio_codecs(), acd->codecs());
632 EXPECT_NE(0U, acd->first_ssrc()); // a random nonzero ssrc
633 EXPECT_EQ(kAutoBandwidth, acd->bandwidth()); // default bandwidth (auto)
634 EXPECT_TRUE(acd->rtcp_mux()); // rtcp-mux defaults on
635 ASSERT_CRYPTO(acd, 2U, CS_AES_CM_128_HMAC_SHA1_32);
636 EXPECT_EQ(std::string(cricket::kMediaProtocolSavpf), acd->protocol());
699 const AudioContentDescription* acd =
705 EXPECT_FALSE(acd->has_ssrcs()); // No StreamParams.
780 const AudioContentDescription* acd =
782 EXPECT_EQ(MEDIA_TYPE_AUDIO, acd->type());
783 EXPECT_EQ(MAKE_VECTOR(kAudioCodecsAnswer), acd->codecs());
784 acd->first_ssrc()); // a random nonzero ssrc
785 EXPECT_EQ(kAutoBandwidth, acd->bandwidth()); // negotiated auto bw
786 EXPECT_TRUE(acd->rtcp_mux()); // negotiated rtcp-mux
787 ASSERT_CRYPTO(acd, 1U, CS_AES_CM_128_HMAC_SHA1_32);
788 EXPECT_EQ(std::string(cricket::kMediaProtocolSavpf), acd->protocol());
807 const AudioContentDescription* acd =
811 EXPECT_EQ(MEDIA_TYPE_AUDIO, acd->type());
812 EXPECT_EQ(MAKE_VECTOR(kAudioCodecsAnswer), acd->codecs());
813 EXPECT_EQ(kAutoBandwidth, acd->bandwidth()); // negotiated auto bw
814 EXPECT_NE(0U, acd->first_ssrc()); // a random nonzero ssrc
815 EXPECT_TRUE(acd->rtcp_mux()); // negotiated rtcp-mux
816 ASSERT_CRYPTO(acd, 1U, CS_AES_CM_128_HMAC_SHA1_32);
840 const AudioContentDescription* acd =
844 EXPECT_EQ(MEDIA_TYPE_AUDIO, acd->type());
845 EXPECT_EQ(MAKE_VECTOR(kAudioCodecsAnswer), acd->codecs());
846 EXPECT_EQ(kAutoBandwidth, acd->bandwidth()); // negotiated auto bw
847 EXPECT_NE(0U, acd->first_ssrc()); // a random nonzero ssrc
848 EXPECT_TRUE(acd->rtcp_mux()); // negotiated rtcp-mux
849 ASSERT_CRYPTO(acd, 1U, CS_AES_CM_128_HMAC_SHA1_32);
1017 const AudioContentDescription* acd =
1024 EXPECT_FALSE(acd->has_ssrcs()); // No StreamParams.
1040 AudioContentDescription* acd = const_cast<AudioContentDescription*>(
1047 EXPECT_FALSE(acd->partial()); // default is false.
1048 acd->set_partial(true);
1049 EXPECT_TRUE(acd->partial());
1050 acd->set_partial(false);
1051 EXPECT_FALSE(acd->partial());
1241 const AudioContentDescription* acd =
1247 EXPECT_EQ(MEDIA_TYPE_AUDIO, acd->type());
1248 EXPECT_EQ(f1_.audio_codecs(), acd->codecs());
1250 const StreamParamsVec& audio_streams = acd->streams();
1260 EXPECT_EQ(kAutoBandwidth, acd->bandwidth()); // default bandwidth (auto)
1261 EXPECT_TRUE(acd->rtcp_mux()); // rtcp-mux defaults on
1262 ASSERT_CRYPTO(acd, 2U, CS_AES_CM_128_HMAC_SHA1_32);
1319 EXPECT_EQ(acd->type(), updated_acd->type());
1320 EXPECT_EQ(acd->codecs(), updated_acd->codecs());
1326 EXPECT_TRUE(CompareCryptoParams(acd->cryptos(), updated_acd->cryptos()));
1410 const AudioContentDescription* acd =
1416 ASSERT_CRYPTO(acd, 1U, CS_AES_CM_128_HMAC_SHA1_32);
1420 EXPECT_EQ(MEDIA_TYPE_AUDIO, acd->type());
1421 EXPECT_EQ(MAKE_VECTOR(kAudioCodecsAnswer), acd->codecs());
1423 const StreamParamsVec& audio_streams = acd->streams();
1433 EXPECT_EQ(kAutoBandwidth, acd->bandwidth()); // default bandwidth (auto)
1434 EXPECT_TRUE(acd->rtcp_mux()); // rtcp-mux defaults on
1486 EXPECT_TRUE(CompareCryptoParams(acd->cryptos(), updated_acd->cryptos()));
1492 EXPECT_EQ(acd->type(), updated_acd->type());
1493 EXPECT_EQ(acd->codecs(), updated_acd->codecs());
1528 const AudioContentDescription* acd =
1530 EXPECT_EQ(MAKE_VECTOR(kAudioCodecsAnswer), acd->codecs());
1635 const AudioContentDescription* acd =
1637 EXPECT_EQ(MAKE_VECTOR(kAudioCodecsAnswer), acd->codecs());
1646 int used_pl_type = acd->codecs()[0].id;
1925 AudioContentDescription* acd(new AudioContentDescription());
1926 acd->set_codecs(MAKE_VECTOR(kAudioCodecs1));
1927 acd->AddLegacyStream(1);
1928 source.AddContent(cricket::CN_AUDIO, cricket::NS_JINGLE_RTP, acd);
1944 EXPECT_EQ(acd->codecs(), acd_copy->codecs());
1945 EXPECT_EQ(1u, acd->first_ssrc());