Home
last modified time | relevance | path

Searched refs:offer (Results 1 – 25 of 1129) sorted by relevance

12345678910>>...46

/external/webrtc/pc/
Dsrtp_filter_unittest.cc121 std::vector<CryptoParams> offer(MakeVector(kTestCryptoParams1)); in TEST_F() local
123 offer.push_back(kTestCryptoParams1); in TEST_F()
124 offer[1].tag = 2; in TEST_F()
125 offer[1].cipher_suite = CS_AES_CM_128_HMAC_SHA1_32; in TEST_F()
128 EXPECT_TRUE(f1_.SetOffer(offer, CS_LOCAL)); in TEST_F()
135 std::vector<CryptoParams> offer(MakeVector(kTestCryptoParamsGcm1)); in TEST_F() local
137 offer.push_back(kTestCryptoParamsGcm4); in TEST_F()
138 offer[1].tag = 2; in TEST_F()
140 EXPECT_TRUE(f1_.SetOffer(offer, CS_LOCAL)); in TEST_F()
148 std::vector<CryptoParams> offer, answer; in TEST_F() local
[all …]
Dmedia_session_unittest.cc497 void TestTransportInfo(bool offer, in TestTransportInfo() argument
519 if (offer) { in TestTransportInfo()
522 std::unique_ptr<SessionDescription> offer; in TestTransportInfo() local
523 offer = f1_.CreateOffer(options, NULL); in TestTransportInfo()
524 desc = f1_.CreateAnswer(offer.get(), options, current_desc.get()); in TestTransportInfo()
602 void TestCryptoWithBundle(bool offer) { in TestCryptoWithBundle() argument
610 if (offer) { in TestCryptoWithBundle()
657 std::unique_ptr<SessionDescription> offer = in TestMediaDirectionInAnswer() local
659 ASSERT_TRUE(offer.get() != NULL); in TestMediaDirectionInAnswer()
660 ContentInfo* ac_offer = offer->GetContentByName("audio"); in TestMediaDirectionInAnswer()
[all …]
Dpeer_connection_crypto_unittest.cc187 auto offer = caller->CreateOffer(); in TEST_P() local
188 ASSERT_TRUE(offer); in TEST_P()
190 ASSERT_FALSE(offer->description()->contents().empty()); in TEST_P()
191 EXPECT_TRUE(SdpContentsAll(HaveDtlsFingerprint(), offer->description())); in TEST_P()
192 EXPECT_TRUE(SdpContentsNone(HaveSdesCryptos(), offer->description())); in TEST_P()
194 offer->description())); in TEST_P()
220 auto offer = caller->CreateOffer(); in TEST_P() local
221 ASSERT_TRUE(offer); in TEST_P()
223 ASSERT_FALSE(offer->description()->contents().empty()); in TEST_P()
224 EXPECT_TRUE(SdpContentsAll(HaveSdesCryptos(), offer->description())); in TEST_P()
[all …]
Dpeer_connection_simulcast_unittest.cc131 auto offer = local->CreateOfferAndSetAsLocal(); in ExchangeOfferAnswer() local
133 RemoveSimulcast(offer.get()); in ExchangeOfferAnswer()
135 EXPECT_TRUE(remote->SetRemoteDescription(std::move(offer), &err)) << err; in ExchangeOfferAnswer()
278 auto offer = pc->CreateOfferAndSetAsLocal(); in TEST_F() local
279 ASSERT_TRUE(offer); in TEST_F()
280 auto contents = offer->description()->contents(); in TEST_F()
305 auto offer = pc->CreateOffer(); in TEST_F() local
306 ASSERT_TRUE(offer); in TEST_F()
307 auto contents = offer->description()->contents(); in TEST_F()
335 auto offer = local->CreateOfferAndSetAsLocal(); in TEST_F() local
[all …]
Dpeer_connection_interface_unittest.cc870 bool offer) { in DoCreateOfferAnswer() argument
873 if (offer) { in DoCreateOfferAnswer()
970 std::unique_ptr<SessionDescriptionInterface> offer; in CreateOfferAsRemoteDescription() local
971 ASSERT_TRUE(DoCreateOffer(&offer, nullptr)); in CreateOfferAsRemoteDescription()
973 EXPECT_TRUE(offer->ToString(&sdp)); in CreateOfferAsRemoteDescription()
1026 std::unique_ptr<SessionDescriptionInterface> offer; in CreateOfferAsLocalDescription() local
1027 ASSERT_TRUE(DoCreateOffer(&offer, nullptr)); in CreateOfferAsLocalDescription()
1036 EXPECT_TRUE(offer->ToString(&sdp)); in CreateOfferAsLocalDescription()
1152 std::unique_ptr<SessionDescriptionInterface> offer; in CreateOfferWithOneAudioTrack() local
1153 EXPECT_TRUE(DoCreateOffer(&offer, nullptr)); in CreateOfferWithOneAudioTrack()
[all …]
Dpeer_connection_data_channel_unittest.cc275 auto offer = caller->CreateOffer(); in TEST_P() local
276 const auto& offer_contents = offer->description()->contents(); in TEST_P()
285 caller->SetLocalDescription(CloneSessionDescription(offer.get()))); in TEST_P()
286 ASSERT_TRUE(callee->SetRemoteDescription(std::move(offer))); in TEST_P()
309 auto offer = caller->CreateOffer(); in TEST_P() local
311 EXPECT_FALSE(offer->description()->GetContentByName(cricket::CN_DATA)); in TEST_P()
312 EXPECT_FALSE(offer->description()->GetTransportInfoByName(cricket::CN_DATA)); in TEST_P()
375 auto offer = caller->CreateOffer(); in TEST_P() local
376 ChangeSctpPortOnDescription(offer->description(), kNewSendPort); in TEST_P()
377 ASSERT_TRUE(callee->SetRemoteDescription(std::move(offer))); in TEST_P()
[all …]
Dpeer_connection_jsep_unittest.cc113 auto offer = caller->CreateOffer(); in TEST_F() local
114 ASSERT_EQ(0u, offer->description()->contents().size()); in TEST_F()
123 auto offer = caller->CreateOffer(); in TEST_F() local
124 auto contents = offer->description()->contents(); in TEST_F()
135 auto offer = caller->CreateOffer(); in TEST_F() local
136 auto contents = offer->description()->contents(); in TEST_F()
147 auto offer = caller->CreateOffer(); in TEST_F() local
148 auto contents = offer->description()->contents(); in TEST_F()
161 auto offer = caller->CreateOffer(); in TEST_F() local
162 ASSERT_EQ(1u, offer->description()->contents().size()); in TEST_F()
[all …]
Dpeer_connection_ice_unittest.cc332 auto offer = caller->CreateOffer(); in TEST_P() local
335 offer->candidates(0)->count()); in TEST_P()
338 offer->candidates(1)->count()); in TEST_P()
369 auto offer = caller->CreateOfferAndSetAsLocal(); in TEST_P() local
371 AddCandidateToFirstTransport(&candidate, offer.get()); in TEST_P()
373 ASSERT_TRUE(callee->SetRemoteDescription(std::move(offer))); in TEST_P()
383 auto offer = caller->CreateOffer(); in TEST_P() local
384 RemoveIceUfragPwd(offer.get()); in TEST_P()
386 EXPECT_FALSE(caller->SetLocalDescription(std::move(offer))); in TEST_P()
393 auto offer = caller->CreateOfferAndSetAsLocal(); in TEST_P() local
[all …]
Dpeer_connection_bundle_unittest.cc582 auto offer = caller->CreateOffer(options); in TEST_P() local
583 SdpContentsForEach(RemoveRtcpMux(), offer->description()); in TEST_P()
586 EXPECT_FALSE(caller->SetLocalDescription(CloneSessionDescription(offer.get()), in TEST_P()
593 EXPECT_FALSE(callee->SetRemoteDescription(std::move(offer), &error)); in TEST_P()
686 auto offer = caller->CreateOffer(options); in TEST_P() local
688 ASSERT_GE(offer->description()->contents().size(), 2U); in TEST_P()
689 offer->description() in TEST_P()
694 offer->description() in TEST_P()
700 caller->SetLocalDescription(CloneSessionDescription(offer.get()))); in TEST_P()
701 EXPECT_TRUE(callee->SetRemoteDescription(std::move(offer))); in TEST_P()
[all …]
Dpeer_connection_media_unittest.cc334 auto offer = caller->CreateOffer(options); in TEST_F() local
335 auto* description = cricket::GetFirstMediaContent(offer->description(), in TEST_F()
343 caller->SetLocalDescription(std::move(offer)); in TEST_F()
355 auto offer = caller->CreateOffer(); in TEST_F() local
358 ASSERT_TRUE(callee->SetRemoteDescription(std::move(offer))); in TEST_F()
532 auto offer = caller->CreateOfferAndSetAsLocal(); in TEST_P() local
534 cricket::GetFirstVideoContentDescription(offer->description()); in TEST_P()
559 auto offer = caller->CreateOfferAndSetAsLocal(options); in TEST_P() local
561 cricket::GetFirstVideoContentDescription(offer->description()); in TEST_P()
569 ASSERT_TRUE(callee->SetRemoteDescription(std::move(offer))); in TEST_P()
[all …]
Dmedia_session.cc141 RtpTransceiverDirection offer, in NegotiateRtpTransceiverDirection() argument
143 bool offer_send = webrtc::RtpTransceiverDirectionHasSend(offer); in NegotiateRtpTransceiverDirection()
144 bool offer_recv = webrtc::RtpTransceiverDirectionHasRecv(offer); in NegotiateRtpTransceiverDirection()
291 static bool SelectCrypto(const MediaContentDescription* offer, in SelectCrypto() argument
295 bool audio = offer->type() == MEDIA_TYPE_AUDIO; in SelectCrypto()
296 const CryptoParamsVec& cryptos = offer->cryptos(); in SelectCrypto()
679 MediaContentDescription* offer) { in CreateContentOffer() argument
680 offer->set_rtcp_mux(session_options.rtcp_mux_enabled); in CreateContentOffer()
681 if (offer->type() == cricket::MEDIA_TYPE_VIDEO) { in CreateContentOffer()
682 offer->set_rtcp_reduced_size(true); in CreateContentOffer()
[all …]
Dpeer_connection_signaling_unittest.cc330 auto offer = in TEST_P() local
334 ASSERT_FALSE(wrapper->SetLocalDescription(std::move(offer), &error)); in TEST_P()
381 auto offer = in TEST_P() local
387 EXPECT_TRUE(wrapper->SetRemoteDescription(std::move(offer))); in TEST_P()
390 ASSERT_FALSE(wrapper->SetRemoteDescription(std::move(offer), &error)); in TEST_P()
599 auto offer = caller->CreateOffer(RTCOfferAnswerOptions()); in TEST_P() local
603 callee->pc()->SetRemoteDescription(std::move(offer), in TEST_P()
613 auto offer = caller->CreateOffer(RTCOfferAnswerOptions()); in TEST_P() local
622 callee->pc()->SetRemoteDescription(std::move(offer), in TEST_P()
795 auto offer = caller->CreateOffer(RTCOfferAnswerOptions()); in TEST_F() local
[all …]
Dpeer_connection_wrapper.cc88 auto offer = CreateOffer(options); in CreateOfferAndSetAsLocal() local
89 if (!offer) { in CreateOfferAndSetAsLocal()
92 EXPECT_TRUE(SetLocalDescription(CloneSessionDescription(offer.get()))); in CreateOfferAndSetAsLocal()
93 return offer; in CreateOfferAndSetAsLocal()
207 auto offer = CreateOffer(offer_options); in ExchangeOfferAnswerWith() local
208 EXPECT_TRUE(offer); in ExchangeOfferAnswerWith()
209 if (!offer) { in ExchangeOfferAnswerWith()
213 SetLocalDescription(CloneSessionDescription(offer.get())); in ExchangeOfferAnswerWith()
218 bool set_remote_offer = answerer->SetRemoteDescription(std::move(offer)); in ExchangeOfferAnswerWith()
/external/webrtc/p2p/base/
Dtransport_description_factory_unittest.cc77 std::unique_ptr<TransportDescription> offer = in TestIceRestart() local
80 f2_.CreateAnswer(offer.get(), options, true, NULL, &ice_credentials_); in TestIceRestart()
85 f1_.CreateOffer(options, offer.get(), &ice_credentials_); in TestIceRestart()
87 VerifyUfragAndPasswordChanged(dtls, offer.get(), restart_offer.get()); in TestIceRestart()
121 std::unique_ptr<TransportDescription> offer = in TestIceRenomination() local
123 ASSERT_TRUE(offer); in TestIceRenomination()
124 EXPECT_THAT(offer->transport_options, Not(Contains("renomination"))); in TestIceRenomination()
127 offer.get(), options, true, nullptr, &ice_credentials_); in TestIceRenomination()
133 f1_.CreateOffer(options, offer.get(), &ice_credentials_); in TestIceRenomination()
213 std::unique_ptr<TransportDescription> offer = in TEST_F() local
[all …]
Dtransport_description_factory.cc62 const TransportDescription* offer, in CreateAnswer() argument
68 if (!offer) { in CreateAnswer()
91 if (offer && offer->identity_fingerprint.get()) { in CreateAnswer()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/channels/
DChannelBufferOverflowTest.kt14 assertTrue(c.offer(1)) in <lambda>()
15 assertTrue(c.offer(2)) in <lambda>()
16 assertTrue(c.offer(3)) // overflows, dropped in <lambda>()
19 assertTrue(c.offer(5)) in <lambda>()
20 assertTrue(c.offer(6)) // overflows, dropped in <lambda>()
29 assertTrue(c.offer(1)) in <lambda>()
30 assertTrue(c.offer(2)) in <lambda>()
31 assertTrue(c.offer(3)) // overflows, keeps 2, 3 in <lambda>()
34 assertTrue(c.offer(5)) in <lambda>()
35 assertTrue(c.offer(6)) // overflows, keeps 5, 6 in <lambda>()
DArrayChannelTest.kt91 assertTrue(q.offer(1)) in <lambda>()
109 assertTrue(q.offer(2)) in <lambda>()
111 assertTrue(q.offer(3)) in <lambda>()
113 assertFalse(q.offer(4)) in <lambda>()
160 channel.offer(-1) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/channels/
DChannelFlowTest.kt15 assertTrue(offer(1)) in <lambda>()
16 assertTrue(offer(2)) in <lambda>()
17 assertTrue(offer(3)) in <lambda>()
25 assertTrue(offer(1)) in <lambda>()
26 assertTrue(offer(2)) in <lambda>()
27 assertFalse(offer(3)) in <lambda>()
35 assertTrue(offer(1)) in <lambda>()
36 assertTrue(offer(2)) in <lambda>()
37 assertTrue(offer(3)) in <lambda>()
38 assertTrue(offer(4)) in <lambda>()
[all …]
/external/openscreen/cast/streaming/
Doffer_messages_unittest.cc101 void ExpectEqualsValidOffer(const Offer& offer) { in ExpectEqualsValidOffer() argument
102 EXPECT_EQ(CastMode::kMirroring, offer.cast_mode); in ExpectEqualsValidOffer()
103 EXPECT_EQ(true, offer.supports_wifi_status_reporting); in ExpectEqualsValidOffer()
106 EXPECT_EQ(2u, offer.video_streams.size()); in ExpectEqualsValidOffer()
107 const auto& video_streams = offer.video_streams; in ExpectEqualsValidOffer()
167 EXPECT_EQ(1u, offer.audio_streams.size()); in ExpectEqualsValidOffer()
168 const AudioStream& as = offer.audio_streams[0]; in ExpectEqualsValidOffer()
275 const auto offer = Offer::Parse(std::move(root.value())); in TEST() local
276 EXPECT_TRUE(offer.is_value()) << offer.error(); in TEST()
450 ErrorOr<Offer> offer = Offer::Parse(std::move(root.value())); in TEST() local
[all …]
Dsender_session_unittest.cc177 const Json::Value offer = std::move(message_body.value()); in NegotiateOfferAndConstructAnswer() local
178 EXPECT_EQ("OFFER", offer["type"].asString()); in NegotiateOfferAndConstructAnswer()
179 EXPECT_LT(0, offer["seqNum"].asInt()); in NegotiateOfferAndConstructAnswer()
181 const Json::Value& offer_body = offer["offer"]; in NegotiateOfferAndConstructAnswer()
209 return StringPrintf(kAnswerTemplate, offer["seqNum"].asInt(), audio_index, in NegotiateOfferAndConstructAnswer()
271 const Json::Value offer = std::move(message_body.value()); in TEST_F() local
272 EXPECT_EQ("OFFER", offer["type"].asString()); in TEST_F()
285 const Json::Value offer = std::move(message_body.value()); in TEST_F() local
286 EXPECT_EQ("OFFER", offer["type"].asString()); in TEST_F()
299 const Json::Value offer = std::move(message_body.value()); in TEST_F() local
[all …]
Dsender_session.cc101 Offer offer; in CreateOffer() local
105 CreateStreamList(0, audio_configs, &offer.audio_streams); in CreateOffer()
106 CreateStreamList(audio_configs.size(), video_configs, &offer.video_streams); in CreateOffer()
108 return offer; in CreateOffer()
180 Offer offer = CreateOffer(audio_configs, video_configs); in NegotiateMirroring() local
182 offer, std::move(audio_configs), std::move(video_configs)}); in NegotiateMirroring()
186 true, std::move(offer)}, in NegotiateMirroring()
245 for (const AudioStream& stream : current_negotiation_->offer.audio_streams) { in SpawnAudioSender()
263 for (const VideoStream& stream : current_negotiation_->offer.video_streams) { in SpawnVideoSender()
/external/webrtc/test/pc/e2e/sdp/
Dsdp_changer.cc107 SessionDescriptionInterface* offer) { in FillSimulcastContext() argument
108 for (auto& content : offer->description()->contents()) { in FillSimulcastContext()
146 for (auto& transport_info : offer->description()->transport_infos()) { in FillSimulcastContext()
161 std::unique_ptr<SessionDescriptionInterface> offer) { in PatchOffer() argument
162 for (auto& content : offer->description()->contents()) { in PatchOffer()
181 return PatchVp8Offer(std::move(offer)); in PatchOffer()
185 return PatchVp9Offer(std::move(offer)); in PatchOffer()
189 auto offer_for_remote = CloneSessionDescription(offer.get()); in PatchOffer()
190 return LocalAndRemoteSdp(std::move(offer), std::move(offer_for_remote)); in PatchOffer()
194 std::unique_ptr<SessionDescriptionInterface> offer) { in PatchVp8Offer() argument
[all …]
Dsdp_changer.h84 std::unique_ptr<SessionDescriptionInterface> offer);
86 std::unique_ptr<SessionDescriptionInterface> offer);
131 std::unique_ptr<SessionDescriptionInterface> offer);
133 std::unique_ptr<SessionDescriptionInterface> offer);
135 std::unique_ptr<SessionDescriptionInterface> offer);
137 std::unique_ptr<SessionDescriptionInterface> offer);
139 void FillSimulcastContext(SessionDescriptionInterface* offer);
/external/guava/android/guava-tests/test/com/google/common/collect/
DTopKSelectorTest.java62 top.offer(i); in testZeroK()
74 top.offer(3); in testOfferedFewerThanK()
75 top.offer(5); in testOfferedFewerThanK()
76 top.offer(2); in testOfferedFewerThanK()
115 top.offer(1); in testWorstCase()
117 top.offer(0); in testWorstCase()
/external/guava/guava-tests/test/com/google/common/collect/
DTopKSelectorTest.java62 top.offer(i); in testZeroK()
74 top.offer(3); in testOfferedFewerThanK()
75 top.offer(5); in testOfferedFewerThanK()
76 top.offer(2); in testOfferedFewerThanK()
115 top.offer(1); in testWorstCase()
117 top.offer(0); in testWorstCase()

12345678910>>...46