Lines Matching refs:Port
75 static Candidate GetCandidate(Port* port) { in GetCandidate()
80 static SocketAddress GetAddress(Port* port) { in GetAddress()
98 class TestPort : public Port {
109 : Port(thread, in TestPort()
121 using cricket::Port::GetStunMessage;
219 TestChannel(Port* p1) in TestChannel()
238 conn_ = port_->CreateConnection(remote_candidate, Port::ORIGIN_MESSAGE); in CreateConnection()
260 conn_ = port_->CreateConnection(c, Port::ORIGIN_MESSAGE); in AcceptConnection()
275 void OnPortComplete(Port* port) { in OnPortComplete()
320 Port* destroyed_src = port_.release(); in OnSrcPortDestroyed()
324 Port* port() { return port_.get(); } in port()
343 rtc::scoped_ptr<Port> port_;
385 Port* port1 = CreateUdpPort(kLocalAddr1); in TestLocalToLocal()
387 Port* port2 = CreateUdpPort(kLocalAddr2); in TestLocalToLocal()
392 Port* port1 = CreateUdpPort(kLocalAddr1); in TestLocalToStun()
395 Port* port2 = CreateStunPort(kLocalAddr2, &nat_socket_factory2_); in TestLocalToStun()
402 Port* port1 = CreateUdpPort(kLocalAddr1); in TestLocalToRelay()
404 Port* port2 = CreateRelayPort(kLocalAddr2, rtype, proto, PROTO_UDP); in TestLocalToRelay()
411 Port* port1 = CreateStunPort(kLocalAddr1, &nat_socket_factory1_); in TestStunToLocal()
413 Port* port2 = CreateUdpPort(kLocalAddr2); in TestStunToLocal()
420 Port* port1 = CreateStunPort(kLocalAddr1, &nat_socket_factory1_); in TestStunToStun()
423 Port* port2 = CreateStunPort(kLocalAddr2, &nat_socket_factory2_); in TestStunToStun()
432 Port* port1 = CreateStunPort(kLocalAddr1, &nat_socket_factory1_); in TestStunToRelay()
434 Port* port2 = CreateRelayPort(kLocalAddr2, rtype, proto, PROTO_UDP); in TestStunToRelay()
440 Port* port1 = CreateTcpPort(kLocalAddr1); in TestTcpToTcp()
442 Port* port2 = CreateTcpPort(kLocalAddr2); in TestTcpToTcp()
447 Port* port1 = CreateTcpPort(kLocalAddr1); in TestTcpToRelay()
449 Port* port2 = CreateRelayPort(kLocalAddr2, rtype, proto, PROTO_TCP); in TestTcpToRelay()
455 Port* port1 = CreateTcpPort(kLocalAddr1); in TestSslTcpToRelay()
457 Port* port2 = CreateRelayPort(kLocalAddr2, rtype, proto, PROTO_SSLTCP); in TestSslTcpToRelay()
489 Port* CreateRelayPort(const SocketAddress& addr, RelayType rtype, in CreateRelayPort()
563 void ExpectPortsCanConnect(bool can_connect, Port* p1, Port* p2);
566 void TestConnectivity(const char* name1, Port* port1,
567 const char* name2, Port* port2,
630 Port* port1 = CreateTcpPort(kLocalAddr1); in TestTcpReconnect()
632 Port* port2 = CreateTcpPort(kLocalAddr2); in TestTcpReconnect()
779 void PortTest::TestConnectivity(const char* name1, Port* port1, in TestConnectivity()
780 const char* name2, Port* port2, in TestConnectivity()
1201 Port* port1 = CreateTcpPort(kLocalAddr1); in TEST_F()
1324 Port::ORIGIN_MESSAGE); in TEST_F()
1343 Port::ORIGIN_MESSAGE); in TEST_F()
1391 Port::ORIGIN_MESSAGE); in TEST_F()
1393 Port::ORIGIN_MESSAGE); in TEST_F()
1456 scoped_ptr<Port> ports[4]; in TestCrossFamilyPorts()
1481 Port::ORIGIN_MESSAGE); in TestCrossFamilyPorts()
1485 Port::ORIGIN_MESSAGE); in TestCrossFamilyPorts()
1495 Port::ORIGIN_MESSAGE); in TestCrossFamilyPorts()
1499 Port::ORIGIN_MESSAGE); in TestCrossFamilyPorts()
1512 void PortTest::ExpectPortsCanConnect(bool can_connect, Port* p1, Port* p2) { in ExpectPortsCanConnect()
1514 Port::ORIGIN_MESSAGE); in ExpectPortsCanConnect()
1526 scoped_ptr<Port> ports[4]; in TEST_F()
1540 Port* standard = ports[0].get(); in TEST_F()
1541 Port* link_local1 = ports[1].get(); in TEST_F()
1542 Port* link_local2 = ports[2].get(); in TEST_F()
1543 Port* localhost = ports[3].get(); in TEST_F()
1607 rport->Candidates()[0], Port::ORIGIN_MESSAGE); in TEST_F()
1609 lport->Candidates()[0], Port::ORIGIN_MESSAGE); in TEST_F()
1747 rport->Candidates()[0], Port::ORIGIN_MESSAGE); in TEST_F()
2021 Port::ORIGIN_MESSAGE); in TEST_F()
2023 Port::ORIGIN_MESSAGE); in TEST_F()
2112 rtc::scoped_ptr<Port> stunport( in TEST_F()
2136 rtc::scoped_ptr<Port> turnport1(CreateTurnPort( in TEST_F()
2146 rtc::scoped_ptr<Port> turnport2(CreateTurnPort( in TEST_F()
2158 rtc::scoped_ptr<Port> turnport3(CreateTurnPort( in TEST_F()
2203 rtc::scoped_ptr<Port> turnport(CreateTurnPort( in TEST_F()
2243 rport->Candidates()[0], Port::ORIGIN_MESSAGE); in TEST_F()
2253 lport->Candidates()[0], Port::ORIGIN_MESSAGE); in TEST_F()
2400 ice_full_port->Candidates()[0], cricket::Port::ORIGIN_MESSAGE); in TEST_F()
2515 rtc::scoped_ptr<Port> udp_port(CreateUdpPort(kLocalAddr1)); in TEST_F()
2519 rtc::scoped_ptr<Port> stun_port( in TEST_F()
2524 rtc::scoped_ptr<Port> tcp_port(CreateTcpPort(kLocalAddr1)); in TEST_F()
2529 rtc::scoped_ptr<Port> turn_port( in TEST_F()