rippled
Classes | Public Member Functions | List of all members
ripple::test::Server_test Class Reference
Inheritance diagram for ripple::test::Server_test:
Inheritance graph
[legend]
Collaboration diagram for ripple::test::Server_test:
Collaboration graph
[legend]

Classes

struct  TestHandler
 
class  TestSink
 
class  TestThread
 

Public Member Functions

template<class Socket >
bool connect (Socket &s, typename Socket::endpoint_type const &ep)
 
template<class SyncWriteStream >
bool write (SyncWriteStream &s, std::string const &text)
 
template<class SyncReadStream >
bool expect_read (SyncReadStream &s, std::string const &match)
 
void test_request (boost::asio::ip::tcp::endpoint const &ep)
 
void test_keepalive (boost::asio::ip::tcp::endpoint const &ep)
 
void basicTests ()
 
void stressTest ()
 
void testBadConfig ()
 
void run () override
 

Detailed Description

Definition at line 48 of file Server_test.cpp.

Member Function Documentation

◆ connect()

template<class Socket >
bool ripple::test::Server_test::connect ( Socket &  s,
typename Socket::endpoint_type const &  ep 
)

Definition at line 163 of file Server_test.cpp.

◆ write()

template<class SyncWriteStream >
bool ripple::test::Server_test::write ( SyncWriteStream &  s,
std::string const &  text 
)

Definition at line 182 of file Server_test.cpp.

◆ expect_read()

template<class SyncReadStream >
bool ripple::test::Server_test::expect_read ( SyncReadStream &  s,
std::string const &  match 
)

Definition at line 200 of file Server_test.cpp.

◆ test_request()

void ripple::test::Server_test::test_request ( boost::asio::ip::tcp::endpoint const &  ep)

Definition at line 227 of file Server_test.cpp.

◆ test_keepalive()

void ripple::test::Server_test::test_keepalive ( boost::asio::ip::tcp::endpoint const &  ep)

Definition at line 253 of file Server_test.cpp.

◆ basicTests()

void ripple::test::Server_test::basicTests ( )

Definition at line 287 of file Server_test.cpp.

◆ stressTest()

void ripple::test::Server_test::stressTest ( )

Definition at line 310 of file Server_test.cpp.

◆ testBadConfig()

void ripple::test::Server_test::testBadConfig ( )

Definition at line 382 of file Server_test.cpp.

◆ run()

void ripple::test::Server_test::run ( )
override

Definition at line 507 of file Server_test.cpp.