Lines Matching refs:rport
1155 // |rport| has higher tiebreaker value than |lport|. Since |lport| has lower
1156 // value of tiebreaker, when it receives ping request from |rport| it will
1164 talk_base::scoped_ptr<TestPort> rport(
1166 rport->SetIceProtocolType(ICEPROTO_RFC5245);
1167 rport->SetIceRole(cricket::ICEROLE_CONTROLLING);
1168 rport->SetIceTiebreaker(kTiebreaker2);
1171 rport->PrepareAddress();
1173 ASSERT_FALSE(rport->Candidates().empty());
1174 Connection* lconn = lport->CreateConnection(rport->Candidates()[0],
1176 Connection* rconn = rport->CreateConnection(lport->Candidates()[0],
1180 ASSERT_TRUE_WAIT(rport->last_stun_msg() != NULL, 1000);
1181 IceMessage* msg = rport->last_stun_msg();
1183 // Send rport binding request to lport.
1184 lconn->OnReadPacket(rport->last_stun_buf()->Data(),
1185 rport->last_stun_buf()->Length(),
1335 talk_base::scoped_ptr<TestPort> rport(
1338 rport->SetIceProtocolType(ICEPROTO_GOOGLE);
1340 // Send a fake ping from lport to rport.
1342 rport->PrepareAddress();
1343 ASSERT_FALSE(rport->Candidates().empty());
1344 Connection* conn = lport->CreateConnection(rport->Candidates()[0],
1346 rport->CreateConnection(lport->Candidates()[0], Port::ORIGIN_MESSAGE);
1366 rport->SendBindingResponse(request.get(), lport->Candidates()[0].address());
1367 msg = rport->last_stun_msg();
1385 rport->SendBindingErrorResponse(request.get(),
1386 rport->Candidates()[0].address(),
1389 msg = rport->last_stun_msg();
1412 talk_base::scoped_ptr<TestPort> rport(
1417 rport->SetIceProtocolType(ICEPROTO_RFC5245);
1418 rport->SetIceRole(cricket::ICEROLE_CONTROLLED);
1419 rport->SetIceTiebreaker(kTiebreaker2);
1421 // Send a fake ping from lport to rport.
1423 rport->PrepareAddress();
1424 ASSERT_FALSE(rport->Candidates().empty());
1426 rport->Candidates()[0], Port::ORIGIN_MESSAGE);
1427 Connection* rconn = rport->CreateConnection(
1464 rport->SendBindingResponse(request.get(), lport->Candidates()[0].address());
1465 msg = rport->last_stun_msg();
1477 rport->last_stun_buf()->Data(), rport->last_stun_buf()->Length(),
1495 rport->SendBindingErrorResponse(request.get(),
1499 msg = rport->last_stun_msg();
1509 rport->last_stun_buf()->Data(), rport->last_stun_buf()->Length(),
1518 // Testing STUN binding requests from rport --> lport, having ICE_CONTROLLED
1520 rport->Reset();
1521 rport->set_send_retransmit_count_attribute(true);
1525 ASSERT_TRUE_WAIT(rport->last_stun_msg() != NULL, 1000);
1526 msg = rport->last_stun_msg();
1531 EXPECT_EQ(rport->IceTiebreaker(), ice_controlled_attr->value());
1542 lport->SendBindingResponse(request.get(), rport->Candidates()[0].address());
1554 talk_base::scoped_ptr<TestPort> rport(
1559 rport->SetIceProtocolType(ICEPROTO_RFC5245);
1560 rport->SetIceRole(cricket::ICEROLE_CONTROLLED);
1561 rport->SetIceTiebreaker(kTiebreaker2);
1563 // Send a fake ping from lport to rport.
1565 rport->PrepareAddress();
1566 ASSERT_FALSE(rport->Candidates().empty());
1568 rport->Candidates()[0], Port::ORIGIN_MESSAGE);
2037 talk_base::scoped_ptr<TestPort> rport(
2039 rport->SetIceProtocolType(ICEPROTO_RFC5245);
2040 rport->SetIceRole(cricket::ICEROLE_CONTROLLED);
2041 rport->SetIceTiebreaker(kTiebreaker2);
2044 rport->PrepareAddress();
2046 ASSERT_FALSE(rport->Candidates().empty());
2048 Connection* lconn = lport->CreateConnection(rport->Candidates()[0],
2050 Connection* rconn = rport->CreateConnection(lport->Candidates()[0],
2054 ASSERT_TRUE_WAIT(rport->last_stun_msg() != NULL, 1000);
2055 IceMessage* msg = rport->last_stun_msg();
2057 // Send rport binding request to lport.
2058 lconn->OnReadPacket(rport->last_stun_buf()->Data(),
2059 rport->last_stun_buf()->Length(),
2270 talk_base::scoped_ptr<TestPort> rport(
2272 rport->set_type_preference(cricket::ICE_TYPE_PREFERENCE_RELAY);
2275 rport->set_component(23);
2276 rport->AddCandidateAddress(SocketAddress("10.1.1.100", 1234));
2279 EXPECT_EQ(0x2001EE9U, rport->Candidates()[0].priority());
2284 rport->SetIceRole(cricket::ICEROLE_CONTROLLED);
2286 rport->Candidates()[0], Port::ORIGIN_MESSAGE);
2294 rport->SetIceRole(cricket::ICEROLE_CONTROLLING);
2295 Connection* rconn = rport->CreateConnection(