join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
raw_async_socket_test.cpp File Reference
#include <join/async_raw_socket.hpp>
#include <join/condition.hpp>
#include <gtest/gtest.h>
#include <net/ethernet.h>
#include <netinet/udp.h>
#include <netinet/ip.h>
#include <unistd.h>
Include dependency graph for raw_async_socket_test.cpp:

Classes

class  RawAsyncSocket
 Class used to test the raw asynchronous socket API. More...
 

Functions

 TEST_F (RawAsyncSocket, move)
 Test move.
 
 TEST_F (RawAsyncSocket, open)
 Test open method.
 
 TEST_F (RawAsyncSocket, close)
 Test close method.
 
 TEST_F (RawAsyncSocket, bind)
 Test bind method.
 
 TEST_F (RawAsyncSocket, bindToDevice)
 Test bindToDevice method.
 
 TEST_F (RawAsyncSocket, asyncWait)
 Test asyncWait method.
 
 TEST_F (RawAsyncSocket, asyncWaitMulti)
 Test asyncWaitMulti method.
 
 TEST_F (RawAsyncSocket, asyncReadMulti)
 Test asyncReadMulti method.
 
 TEST_F (RawAsyncSocket, asyncWrite)
 Test asyncWrite method.
 
 TEST_F (RawAsyncSocket, asyncRead)
 Test asyncRead method.
 
 TEST_F (RawAsyncSocket, resubmit)
 Test async operations resubmitted from their own handlers.
 
 TEST_F (RawAsyncSocket, closeFromWriteHandler)
 Test close called from within a write handler.
 
 TEST_F (RawAsyncSocket, truncated)
 Test a packet larger than the supplied buffer.
 
 TEST_F (RawAsyncSocket, cancel)
 Test cancel method.
 
 TEST_F (RawAsyncSocket, setOption)
 Test setOption method.
 
 TEST_F (RawAsyncSocket, localEndpoint)
 Test localEndpoint method.
 
 TEST_F (RawAsyncSocket, opened)
 Test opened method.
 
 TEST_F (RawAsyncSocket, canRead)
 Test canRead method.
 
 TEST_F (RawAsyncSocket, family)
 Test family method.
 
 TEST_F (RawAsyncSocket, type)
 Test type method.
 
 TEST_F (RawAsyncSocket, protocol)
 Test protocol method.
 
 TEST_F (RawAsyncSocket, 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/22]

TEST_F ( RawAsyncSocket ,
asyncRead  )

Test asyncRead method.

◆ TEST_F() [2/22]

TEST_F ( RawAsyncSocket ,
asyncReadMulti  )

Test asyncReadMulti method.

◆ TEST_F() [3/22]

TEST_F ( RawAsyncSocket ,
asyncWait  )

Test asyncWait method.

◆ TEST_F() [4/22]

TEST_F ( RawAsyncSocket ,
asyncWaitMulti  )

Test asyncWaitMulti method.

◆ TEST_F() [5/22]

TEST_F ( RawAsyncSocket ,
asyncWrite  )

Test asyncWrite method.

◆ TEST_F() [6/22]

TEST_F ( RawAsyncSocket ,
bind  )

Test bind method.

◆ TEST_F() [7/22]

TEST_F ( RawAsyncSocket ,
bindToDevice  )

Test bindToDevice method.

◆ TEST_F() [8/22]

TEST_F ( RawAsyncSocket ,
cancel  )

Test cancel method.

◆ TEST_F() [9/22]

TEST_F ( RawAsyncSocket ,
canRead  )

Test canRead method.

◆ TEST_F() [10/22]

TEST_F ( RawAsyncSocket ,
close  )

Test close method.

◆ TEST_F() [11/22]

TEST_F ( RawAsyncSocket ,
closeFromWriteHandler  )

Test close called from within a write handler.

◆ TEST_F() [12/22]

TEST_F ( RawAsyncSocket ,
family  )

Test family method.

◆ TEST_F() [13/22]

TEST_F ( RawAsyncSocket ,
handle  )

Test handle method.

◆ TEST_F() [14/22]

TEST_F ( RawAsyncSocket ,
localEndpoint  )

Test localEndpoint method.

◆ TEST_F() [15/22]

TEST_F ( RawAsyncSocket ,
move  )

Test move.

◆ TEST_F() [16/22]

TEST_F ( RawAsyncSocket ,
open  )

Test open method.

◆ TEST_F() [17/22]

TEST_F ( RawAsyncSocket ,
opened  )

Test opened method.

◆ TEST_F() [18/22]

TEST_F ( RawAsyncSocket ,
protocol  )

Test protocol method.

◆ TEST_F() [19/22]

TEST_F ( RawAsyncSocket ,
resubmit  )

Test async operations resubmitted from their own handlers.

◆ TEST_F() [20/22]

TEST_F ( RawAsyncSocket ,
setOption  )

Test setOption method.

◆ TEST_F() [21/22]

TEST_F ( RawAsyncSocket ,
truncated  )

Test a packet larger than the supplied buffer.

◆ TEST_F() [22/22]

TEST_F ( RawAsyncSocket ,
type  )

Test type method.