webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
RelayServerTest Class Reference
Inheritance diagram for RelayServerTest:
testing::Test

Public Member Functions

 RelayServerTest ()
 

Protected Member Functions

virtual void SetUp ()
 
void Allocate ()
 
void Bind ()
 
void Send1 (const StunMessage *msg)
 
void Send2 (const StunMessage *msg)
 
void SendRaw1 (const char *data, int len)
 
void SendRaw2 (const char *data, int len)
 
void Send (rtc::TestClient *client, const char *data, int len, const SocketAddress &addr)
 
bool Receive1Fails ()
 
bool Receive2Fails ()
 
StunMessageReceive1 ()
 
StunMessageReceive2 ()
 
std::string ReceiveRaw1 ()
 
std::string ReceiveRaw2 ()
 
StunMessageReceive (rtc::TestClient *client)
 
std::string ReceiveRaw (rtc::TestClient *client)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void TearDown ()
 

Static Protected Member Functions

static StunMessageCreateStunMessage (int type)
 
static void AddMagicCookieAttr (StunMessage *msg)
 
static void AddUsernameAttr (StunMessage *msg, const std::string &val)
 
static void AddLifetimeAttr (StunMessage *msg, int val)
 
static void AddDestinationAttr (StunMessage *msg, const SocketAddress &addr)
 

Protected Attributes

std::unique_ptr< rtc::PhysicalSocketServerpss_
 
std::unique_ptr< rtc::VirtualSocketServerss_
 
rtc::SocketServerScope ss_scope_
 
std::unique_ptr< RelayServerserver_
 
std::unique_ptr< rtc::TestClientclient1_
 
std::unique_ptr< rtc::TestClientclient2_
 
std::string username_
 
std::string password_
 

Constructor & Destructor Documentation

◆ RelayServerTest()

RelayServerTest::RelayServerTest ( )
inline

Member Function Documentation

◆ AddDestinationAttr()

static void RelayServerTest::AddDestinationAttr ( StunMessage msg,
const SocketAddress addr 
)
inlinestaticprotected

◆ AddLifetimeAttr()

static void RelayServerTest::AddLifetimeAttr ( StunMessage msg,
int  val 
)
inlinestaticprotected

◆ AddMagicCookieAttr()

static void RelayServerTest::AddMagicCookieAttr ( StunMessage msg)
inlinestaticprotected

◆ AddUsernameAttr()

static void RelayServerTest::AddUsernameAttr ( StunMessage msg,
const std::string val 
)
inlinestaticprotected

◆ Allocate()

void RelayServerTest::Allocate ( )
inlineprotected

◆ Bind()

void RelayServerTest::Bind ( )
inlineprotected

◆ CreateStunMessage()

static StunMessage* RelayServerTest::CreateStunMessage ( int  type)
inlinestaticprotected

◆ Receive()

StunMessage* RelayServerTest::Receive ( rtc::TestClient client)
inlineprotected

◆ Receive1()

StunMessage* RelayServerTest::Receive1 ( )
inlineprotected

◆ Receive1Fails()

bool RelayServerTest::Receive1Fails ( )
inlineprotected

◆ Receive2()

StunMessage* RelayServerTest::Receive2 ( )
inlineprotected

◆ Receive2Fails()

bool RelayServerTest::Receive2Fails ( )
inlineprotected

◆ ReceiveRaw()

std::string RelayServerTest::ReceiveRaw ( rtc::TestClient client)
inlineprotected

◆ ReceiveRaw1()

std::string RelayServerTest::ReceiveRaw1 ( )
inlineprotected

◆ ReceiveRaw2()

std::string RelayServerTest::ReceiveRaw2 ( )
inlineprotected

◆ Send()

void RelayServerTest::Send ( rtc::TestClient client,
const char *  data,
int  len,
const SocketAddress addr 
)
inlineprotected

◆ Send1()

void RelayServerTest::Send1 ( const StunMessage msg)
inlineprotected

◆ Send2()

void RelayServerTest::Send2 ( const StunMessage msg)
inlineprotected

◆ SendRaw1()

void RelayServerTest::SendRaw1 ( const char *  data,
int  len 
)
inlineprotected

◆ SendRaw2()

void RelayServerTest::SendRaw2 ( const char *  data,
int  len 
)
inlineprotected

◆ SetUp()

virtual void RelayServerTest::SetUp ( )
inlineprotectedvirtual

Reimplemented from testing::Test.

Member Data Documentation

◆ client1_

std::unique_ptr<rtc::TestClient> RelayServerTest::client1_
protected

◆ client2_

std::unique_ptr<rtc::TestClient> RelayServerTest::client2_
protected

◆ password_

std::string RelayServerTest::password_
protected

◆ pss_

std::unique_ptr<rtc::PhysicalSocketServer> RelayServerTest::pss_
protected

◆ server_

std::unique_ptr<RelayServer> RelayServerTest::server_
protected

◆ ss_

std::unique_ptr<rtc::VirtualSocketServer> RelayServerTest::ss_
protected

◆ ss_scope_

rtc::SocketServerScope RelayServerTest::ss_scope_
protected

◆ username_

std::string RelayServerTest::username_
protected

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