webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
PortTest Class Reference
Inheritance diagram for PortTest:
testing::Test sigslot::has_slots<> sigslot::has_slots_interface sigslot::has_slots_interface

Public Member Functions

 PortTest ()
 
- Public Member Functions inherited from sigslot::has_slots<>
 has_slots ()
 
 has_slots ()
 
 ~has_slots ()
 
 ~has_slots ()
 
- Public Member Functions inherited from sigslot::has_slots_interface
void signal_connect (_signal_base_interface *sender)
 
void signal_disconnect (_signal_base_interface *sender)
 
void disconnect_all ()
 
void signal_connect (_signal_base_interface *sender)
 
void signal_disconnect (_signal_base_interface *sender)
 
void disconnect_all ()
 

Protected Member Functions

void TestLocalToLocal ()
 
void TestLocalToStun (NATType ntype)
 
void TestLocalToRelay (RelayType rtype, ProtocolType proto)
 
void TestStunToLocal (NATType ntype)
 
void TestStunToStun (NATType ntype1, NATType ntype2)
 
void TestStunToRelay (NATType ntype, RelayType rtype, ProtocolType proto)
 
void TestTcpToTcp ()
 
void TestTcpToRelay (RelayType rtype, ProtocolType proto)
 
void TestSslTcpToRelay (RelayType rtype, ProtocolType proto)
 
UDPPortCreateUdpPort (const SocketAddress &addr)
 
UDPPortCreateUdpPort (const SocketAddress &addr, PacketSocketFactory *socket_factory)
 
TCPPortCreateTcpPort (const SocketAddress &addr)
 
TCPPortCreateTcpPort (const SocketAddress &addr, PacketSocketFactory *socket_factory)
 
StunPortCreateStunPort (const SocketAddress &addr, rtc::PacketSocketFactory *factory)
 
PortCreateRelayPort (const SocketAddress &addr, RelayType rtype, ProtocolType int_proto, ProtocolType ext_proto)
 
TurnPortCreateTurnPort (const SocketAddress &addr, PacketSocketFactory *socket_factory, ProtocolType int_proto, ProtocolType ext_proto)
 
TurnPortCreateTurnPort (const SocketAddress &addr, PacketSocketFactory *socket_factory, ProtocolType int_proto, ProtocolType ext_proto, const rtc::SocketAddress &server_addr)
 
RelayPortCreateGturnPort (const SocketAddress &addr, ProtocolType int_proto, ProtocolType ext_proto)
 
RelayPortCreateGturnPort (const SocketAddress &addr)
 
rtc::NATServerCreateNatServer (const SocketAddress &addr, rtc::NATType type)
 
void SetNetworkType (rtc::AdapterType adapter_type)
 
void TestCrossFamilyPorts (int type)
 
void ExpectPortsCanConnect (bool can_connect, Port *p1, Port *p2)
 
void TestConnectivity (const char *name1, Port *port1, const char *name2, Port *port2, bool accept, bool same_addr1, bool same_addr2, bool possible)
 
void ConnectStartedChannels (TestChannel *ch1, TestChannel *ch2)
 
void StartConnectAndStopChannels (TestChannel *ch1, TestChannel *ch2)
 
void DisconnectTcpTestChannels (TestChannel *ch1, TestChannel *ch2)
 
void TestTcpReconnect (bool ping_after_disconnected, bool send_after_disconnected)
 
IceMessageCreateStunMessage (int type)
 
IceMessageCreateStunMessageWithUsername (int type, const std::string &username)
 
TestPortCreateTestPort (const rtc::SocketAddress &addr, const std::string &username, const std::string &password)
 
TestPortCreateTestPort (const rtc::SocketAddress &addr, const std::string &username, const std::string &password, cricket::IceRole role, int tiebreaker)
 
void OnRoleConflict (PortInterface *port)
 
bool role_conflict () const
 
void ConnectToSignalDestroyed (PortInterface *port)
 
void OnDestroyed (PortInterface *port)
 
int ports_destroyed () const
 
rtc::BasicPacketSocketFactorynat_socket_factory1 ()
 
rtc::VirtualSocketServervss ()
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 
- Protected Member Functions inherited from sigslot::has_slots_interface
 has_slots_interface (signal_connect_t conn, signal_disconnect_t disc, disconnect_all_t disc_all)
 
virtual ~has_slots_interface ()
 
 has_slots_interface (signal_connect_t conn, signal_disconnect_t disc, disconnect_all_t disc_all)
 
virtual ~has_slots_interface ()
 

Static Protected Member Functions

static const char * StunName (NATType type)
 
static const char * RelayName (RelayType type, ProtocolType proto)
 

Constructor & Destructor Documentation

◆ PortTest()

PortTest::PortTest ( )
inline

Member Function Documentation

◆ ConnectStartedChannels()

void PortTest::ConnectStartedChannels ( TestChannel ch1,
TestChannel ch2 
)
inlineprotected

◆ ConnectToSignalDestroyed()

void PortTest::ConnectToSignalDestroyed ( PortInterface port)
inlineprotected

◆ CreateGturnPort() [1/2]

RelayPort* PortTest::CreateGturnPort ( const SocketAddress addr,
ProtocolType  int_proto,
ProtocolType  ext_proto 
)
inlineprotected

◆ CreateGturnPort() [2/2]

RelayPort* PortTest::CreateGturnPort ( const SocketAddress addr)
inlineprotected

◆ CreateNatServer()

rtc::NATServer* PortTest::CreateNatServer ( const SocketAddress addr,
rtc::NATType  type 
)
inlineprotected

◆ CreateRelayPort()

Port* PortTest::CreateRelayPort ( const SocketAddress addr,
RelayType  rtype,
ProtocolType  int_proto,
ProtocolType  ext_proto 
)
inlineprotected

◆ CreateStunMessage()

IceMessage* PortTest::CreateStunMessage ( int  type)
inlineprotected

◆ CreateStunMessageWithUsername()

IceMessage* PortTest::CreateStunMessageWithUsername ( int  type,
const std::string username 
)
inlineprotected

◆ CreateStunPort()

StunPort* PortTest::CreateStunPort ( const SocketAddress addr,
rtc::PacketSocketFactory factory 
)
inlineprotected

◆ CreateTcpPort() [1/2]

TCPPort* PortTest::CreateTcpPort ( const SocketAddress addr)
inlineprotected

◆ CreateTcpPort() [2/2]

TCPPort* PortTest::CreateTcpPort ( const SocketAddress addr,
PacketSocketFactory socket_factory 
)
inlineprotected

◆ CreateTestPort() [1/2]

TestPort* PortTest::CreateTestPort ( const rtc::SocketAddress addr,
const std::string username,
const std::string password 
)
inlineprotected

◆ CreateTestPort() [2/2]

TestPort* PortTest::CreateTestPort ( const rtc::SocketAddress addr,
const std::string username,
const std::string password,
cricket::IceRole  role,
int  tiebreaker 
)
inlineprotected

◆ CreateTurnPort() [1/2]

TurnPort* PortTest::CreateTurnPort ( const SocketAddress addr,
PacketSocketFactory socket_factory,
ProtocolType  int_proto,
ProtocolType  ext_proto 
)
inlineprotected

◆ CreateTurnPort() [2/2]

TurnPort* PortTest::CreateTurnPort ( const SocketAddress addr,
PacketSocketFactory socket_factory,
ProtocolType  int_proto,
ProtocolType  ext_proto,
const rtc::SocketAddress server_addr 
)
inlineprotected

◆ CreateUdpPort() [1/2]

UDPPort* PortTest::CreateUdpPort ( const SocketAddress addr)
inlineprotected

◆ CreateUdpPort() [2/2]

UDPPort* PortTest::CreateUdpPort ( const SocketAddress addr,
PacketSocketFactory socket_factory 
)
inlineprotected

◆ DisconnectTcpTestChannels()

void PortTest::DisconnectTcpTestChannels ( TestChannel ch1,
TestChannel ch2 
)
inlineprotected

◆ ExpectPortsCanConnect()

void PortTest::ExpectPortsCanConnect ( bool  can_connect,
Port p1,
Port p2 
)
protected

◆ nat_socket_factory1()

rtc::BasicPacketSocketFactory* PortTest::nat_socket_factory1 ( )
inlineprotected

◆ OnDestroyed()

void PortTest::OnDestroyed ( PortInterface port)
inlineprotected

◆ OnRoleConflict()

void PortTest::OnRoleConflict ( PortInterface port)
inlineprotected

◆ ports_destroyed()

int PortTest::ports_destroyed ( ) const
inlineprotected

◆ RelayName()

static const char* PortTest::RelayName ( RelayType  type,
ProtocolType  proto 
)
inlinestaticprotected

◆ role_conflict()

bool PortTest::role_conflict ( ) const
inlineprotected

◆ SetNetworkType()

void PortTest::SetNetworkType ( rtc::AdapterType  adapter_type)
inlineprotected

◆ StartConnectAndStopChannels()

void PortTest::StartConnectAndStopChannels ( TestChannel ch1,
TestChannel ch2 
)
inlineprotected

◆ StunName()

static const char* PortTest::StunName ( NATType  type)
inlinestaticprotected

◆ TestConnectivity()

void PortTest::TestConnectivity ( const char *  name1,
Port port1,
const char *  name2,
Port port2,
bool  accept,
bool  same_addr1,
bool  same_addr2,
bool  possible 
)
protected

◆ TestCrossFamilyPorts()

void PortTest::TestCrossFamilyPorts ( int  type)
protected

◆ TestLocalToLocal()

void PortTest::TestLocalToLocal ( )
inlineprotected

◆ TestLocalToRelay()

void PortTest::TestLocalToRelay ( RelayType  rtype,
ProtocolType  proto 
)
inlineprotected

◆ TestLocalToStun()

void PortTest::TestLocalToStun ( NATType  ntype)
inlineprotected

◆ TestSslTcpToRelay()

void PortTest::TestSslTcpToRelay ( RelayType  rtype,
ProtocolType  proto 
)
inlineprotected

◆ TestStunToLocal()

void PortTest::TestStunToLocal ( NATType  ntype)
inlineprotected

◆ TestStunToRelay()

void PortTest::TestStunToRelay ( NATType  ntype,
RelayType  rtype,
ProtocolType  proto 
)
inlineprotected

◆ TestStunToStun()

void PortTest::TestStunToStun ( NATType  ntype1,
NATType  ntype2 
)
inlineprotected

◆ TestTcpReconnect()

void PortTest::TestTcpReconnect ( bool  ping_after_disconnected,
bool  send_after_disconnected 
)
inlineprotected

◆ TestTcpToRelay()

void PortTest::TestTcpToRelay ( RelayType  rtype,
ProtocolType  proto 
)
inlineprotected

◆ TestTcpToTcp()

void PortTest::TestTcpToTcp ( )
inlineprotected

◆ vss()

rtc::VirtualSocketServer* PortTest::vss ( )
inlineprotected

The documentation for this class was generated from the following file: