join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
tcp_async_acceptor_test.cpp File Reference
#include <join/async_acceptor.hpp>
#include <join/condition.hpp>
#include <thread>
#include <gtest/gtest.h>
Include dependency graph for tcp_async_acceptor_test.cpp:

Classes

class  TcpAsyncAcceptor
 Class used to test the unix asynchronous stream acceptor API. More...
 

Functions

 TEST_F (TcpAsyncAcceptor, create)
 Test create method.
 
 TEST_F (TcpAsyncAcceptor, close)
 Test close method.
 
 TEST_F (TcpAsyncAcceptor, asyncAccept)
 Test asyncAccept method.
 
 TEST_F (TcpAsyncAcceptor, asyncAcceptMulti)
 Test asyncAcceptMulti method.
 
 TEST_F (TcpAsyncAcceptor, resubmit)
 Test asyncAccept method resubmitted from its own handler.
 
 TEST_F (TcpAsyncAcceptor, discard)
 Test asyncAccept method without handler.
 
 TEST_F (TcpAsyncAcceptor, closeFromHandler)
 Test acceptor closed from within its own handler.
 
 TEST_F (TcpAsyncAcceptor, cancel)
 Test cancel method.
 
 TEST_F (TcpAsyncAcceptor, localEndpoint)
 Test localEndpoint method.
 
 TEST_F (TcpAsyncAcceptor, opened)
 Test opened method.
 
 TEST_F (TcpAsyncAcceptor, family)
 Test family method.
 
 TEST_F (TcpAsyncAcceptor, type)
 Test type method.
 
 TEST_F (TcpAsyncAcceptor, protocol)
 Test protocol method.
 
 TEST_F (TcpAsyncAcceptor, handle)
 Test handle method.
 
int main (int argc, char **argv)
 main function.
 

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

main function.

◆ TEST_F() [1/14]

TEST_F ( TcpAsyncAcceptor ,
asyncAccept  )

Test asyncAccept method.

◆ TEST_F() [2/14]

TEST_F ( TcpAsyncAcceptor ,
asyncAcceptMulti  )

Test asyncAcceptMulti method.

◆ TEST_F() [3/14]

TEST_F ( TcpAsyncAcceptor ,
cancel  )

Test cancel method.

◆ TEST_F() [4/14]

TEST_F ( TcpAsyncAcceptor ,
close  )

Test close method.

◆ TEST_F() [5/14]

TEST_F ( TcpAsyncAcceptor ,
closeFromHandler  )

Test acceptor closed from within its own handler.

◆ TEST_F() [6/14]

TEST_F ( TcpAsyncAcceptor ,
create  )

Test create method.

◆ TEST_F() [7/14]

TEST_F ( TcpAsyncAcceptor ,
discard  )

Test asyncAccept method without handler.

◆ TEST_F() [8/14]

TEST_F ( TcpAsyncAcceptor ,
family  )

Test family method.

◆ TEST_F() [9/14]

TEST_F ( TcpAsyncAcceptor ,
handle  )

Test handle method.

◆ TEST_F() [10/14]

TEST_F ( TcpAsyncAcceptor ,
localEndpoint  )

Test localEndpoint method.

◆ TEST_F() [11/14]

TEST_F ( TcpAsyncAcceptor ,
opened  )

Test opened method.

◆ TEST_F() [12/14]

TEST_F ( TcpAsyncAcceptor ,
protocol  )

Test protocol method.

◆ TEST_F() [13/14]

TEST_F ( TcpAsyncAcceptor ,
resubmit  )

Test asyncAccept method resubmitted from its own handler.

◆ TEST_F() [14/14]

TEST_F ( TcpAsyncAcceptor ,
type  )

Test type method.