Lines Matching refs:candidate

57       cricket::Candidate* candidate) {  in CreateJsepCandidateForFirstTransport()  argument
62 candidate->set_transport_name(first_content.name); in CreateJsepCandidateForFirstTransport()
63 return CreateIceCandidate(first_content.name, -1, *candidate); in CreateJsepCandidateForFirstTransport()
67 bool AddIceCandidate(cricket::Candidate* candidate) { in AddIceCandidate() argument
69 CreateJsepCandidateForFirstTransport(candidate).get()); in AddIceCandidate()
162 cricket::Candidate candidate; in CreateLocalUdpCandidate() local
163 candidate.set_component(cricket::ICE_CANDIDATE_COMPONENT_DEFAULT); in CreateLocalUdpCandidate()
164 candidate.set_protocol(cricket::UDP_PROTOCOL_NAME); in CreateLocalUdpCandidate()
165 candidate.set_address(address); in CreateLocalUdpCandidate()
166 candidate.set_type(cricket::LOCAL_PORT_TYPE); in CreateLocalUdpCandidate()
167 return candidate; in CreateLocalUdpCandidate()
255 bool AddCandidateToFirstTransport(cricket::Candidate* candidate, in AddCandidateToFirstTransport() argument
260 candidate->set_transport_name(first_content.name); in AddCandidateToFirstTransport()
262 CreateIceCandidate(first_content.name, 0, *candidate); in AddCandidateToFirstTransport()
370 cricket::Candidate candidate = CreateLocalUdpCandidate(kCallerAddress); in TEST_P() local
371 AddCandidateToFirstTransport(&candidate, offer.get()); in TEST_P()
376 EXPECT_PRED_FORMAT2(AssertCandidatesEqual, candidate, in TEST_P()
377 remote_candidates[0]->candidate()); in TEST_P()
437 cricket::Candidate candidate = CreateLocalUdpCandidate(kCallerAddress); in TEST_P() local
438 AddCandidateToFirstTransport(&candidate, offer.get()); in TEST_P()
451 cricket::Candidate candidate = CreateLocalUdpCandidate(kCalleeAddress); in TEST_P() local
453 CreateIceCandidate(cricket::CN_AUDIO, 0, candidate); in TEST_P()
473 cricket::Candidate candidate = CreateLocalUdpCandidate(kCalleeAddress); in TEST_P() local
477 CreateIceCandidate(audio_content->name, 0, candidate); in TEST_P()
494 cricket::Candidate candidate = CreateLocalUdpCandidate(kCalleeAddress); in TEST_P() local
495 caller->AddIceCandidate(&candidate); in TEST_P()
496 EXPECT_TRUE(caller->AddIceCandidate(&candidate)); in TEST_P()
509 cricket::Candidate candidate = CreateLocalUdpCandidate(kCalleeAddress); in TEST_P() local
513 CreateIceCandidate(audio_content->name, 0, candidate); in TEST_P()
519 EXPECT_FALSE(caller->pc()->RemoveIceCandidates({candidate})); in TEST_P()
534 cricket::Candidate candidate = CreateLocalUdpCandidate(kCalleeAddress); in TEST_P() local
538 CreateIceCandidate(audio_content->name, 0, candidate); in TEST_P()
540 EXPECT_TRUE(caller->pc()->RemoveIceCandidates({candidate})); in TEST_P()
553 cricket::Candidate candidate = CreateLocalUdpCandidate(kCalleeAddress); in TEST_P() local
554 ASSERT_TRUE(caller->AddIceCandidate(&candidate)); in TEST_P()
555 EXPECT_TRUE(caller->pc()->RemoveIceCandidates({candidate})); in TEST_P()
631 for (const auto* candidate : candidates) { in AssertIpInCandidates() local
632 const auto& candidate_ip = candidate->candidate().address().ipaddr(); in AssertIpInCandidates()
668 cricket::Candidate candidate = CreateLocalUdpCandidate(kCallerAddress); in TEST_P() local
669 callee->AddIceCandidate(&candidate); in TEST_P()
672 EXPECT_PRED_FORMAT2(AssertCandidatesEqual, candidate, in TEST_P()
673 candidates[0]->candidate()); in TEST_P()
696 candidates[0]->candidate()); in TEST_P()
698 candidates[1]->candidate()); in TEST_P()
702 auto candidate = CreateLocalUdpCandidate(SocketAddress("1.1.1.1", 1111)); in TEST_P() local
710 callee->CreateJsepCandidateForFirstTransport(&candidate); in TEST_P()
721 EXPECT_PRED_FORMAT2(AssertCandidatesEqual, candidate, in TEST_P()
722 candidates[0]->candidate()); in TEST_P()
727 auto candidate = CreateLocalUdpCandidate(SocketAddress("1.1.1.1", 1111)); in TEST_P() local
735 callee->CreateJsepCandidateForFirstTransport(&candidate); in TEST_P()
745 auto candidate = CreateLocalUdpCandidate(SocketAddress("1.1.1.1", 1111)); in TEST_P() local
758 callee->CreateJsepCandidateForFirstTransport(&candidate); in TEST_P()
774 auto candidate = CreateLocalUdpCandidate(SocketAddress("1.1.1.1", 1111)); in TEST_P() local
778 CreateIceCandidate(cricket::CN_AUDIO, 0, candidate); in TEST_P()
793 auto candidate = CreateLocalUdpCandidate(SocketAddress("1.1.1.1", 1111)); in TEST_P() local
806 callee->CreateJsepCandidateForFirstTransport(&candidate); in TEST_P()
904 cricket::Candidate candidate = CreateLocalUdpCandidate(kCallerAddress); in TEST_P() local
905 AddCandidateToFirstTransport(&candidate, offer.get()); in TEST_P()
943 remote_candidates[0]->candidate()); in TEST_P()