join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
tls_wrapper_test.cpp File Reference
#include <join/tls_wrapper.hpp>
#include <join/acceptor.hpp>
#include <join/reactor.hpp>
#include <gtest/gtest.h>
#include <atomic>
#include <fstream>
#include <thread>
#include <vector>
Include dependency graph for tls_wrapper_test.cpp:

Classes

class  TlsSocket
 Class used to test the stream TLS wrapper API. More...
 

Functions

 TEST_F (TlsSocket, move)
 Test move.
 
 TEST_F (TlsSocket, open)
 Test open method.
 
 TEST_F (TlsSocket, close)
 Test close method.
 
 TEST_F (TlsSocket, bind)
 Test bind method.
 
 TEST_F (TlsSocket, bindToDevice)
 Test bindToDevice method.
 
 TEST_F (TlsSocket, connect)
 Test connect method.
 
 TEST_F (TlsSocket, waitConnected)
 Test waitConnected method.
 
 TEST_F (TlsSocket, handshake)
 Test handshake method.
 
 TEST_F (TlsSocket, waitHandshake)
 Test waitHandshake method.
 
 TEST_F (TlsSocket, disconnect)
 Test disconnect method.
 
 TEST_F (TlsSocket, waitDisconnected)
 Test waitDisconnected method.
 
 TEST_F (TlsSocket, waitReadyRead)
 Test waitReadyRead method.
 
 TEST_F (TlsSocket, canRead)
 Test canRead method.
 
 TEST_F (TlsSocket, read)
 Test read method.
 
 TEST_F (TlsSocket, readExactly)
 
 TEST_F (TlsSocket, waitReadyWrite)
 Test waitReadyWrite method.
 
 TEST_F (TlsSocket, write)
 Test write method.
 
 TEST_F (TlsSocket, writeExactly)
 
 TEST_F (TlsSocket, setMode)
 Test setMode method.
 
 TEST_F (TlsSocket, setOption)
 Test setOption method.
 
 TEST_F (TlsSocket, localEndpoint)
 Test localEndpoint method.
 
 TEST_F (TlsSocket, remoteEndpoint)
 Test remoteEndpoint method.
 
 TEST_F (TlsSocket, opened)
 Test opened method.
 
 TEST_F (TlsSocket, connected)
 Test connected method.
 
 TEST_F (TlsSocket, encrypted)
 Test encrypted method.
 
 TEST_F (TlsSocket, family)
 Test family method.
 
 TEST_F (TlsSocket, type)
 Test type method.
 
 TEST_F (TlsSocket, protocol)
 Test protocol method.
 
 TEST_F (TlsSocket, handle)
 Test handle method.
 
 TEST_F (TlsSocket, mtu)
 Test mtu method.
 
 TEST_F (TlsSocket, verify)
 Test cert verification.
 
 TEST_F (TlsSocket, isLower)
 Test is lower method.
 
int main (int argc, char **argv)
 main function.
 

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

main function.

◆ TEST_F() [1/32]

TEST_F ( TlsSocket ,
bind  )

Test bind method.

◆ TEST_F() [2/32]

TEST_F ( TlsSocket ,
bindToDevice  )

Test bindToDevice method.

◆ TEST_F() [3/32]

TEST_F ( TlsSocket ,
canRead  )

Test canRead method.

◆ TEST_F() [4/32]

TEST_F ( TlsSocket ,
close  )

Test close method.

◆ TEST_F() [5/32]

TEST_F ( TlsSocket ,
connect  )

Test connect method.

◆ TEST_F() [6/32]

TEST_F ( TlsSocket ,
connected  )

Test connected method.

◆ TEST_F() [7/32]

TEST_F ( TlsSocket ,
disconnect  )

Test disconnect method.

◆ TEST_F() [8/32]

TEST_F ( TlsSocket ,
encrypted  )

Test encrypted method.

◆ TEST_F() [9/32]

TEST_F ( TlsSocket ,
family  )

Test family method.

◆ TEST_F() [10/32]

TEST_F ( TlsSocket ,
handle  )

Test handle method.

◆ TEST_F() [11/32]

TEST_F ( TlsSocket ,
handshake  )

Test handshake method.

◆ TEST_F() [12/32]

TEST_F ( TlsSocket ,
isLower  )

Test is lower method.

◆ TEST_F() [13/32]

TEST_F ( TlsSocket ,
localEndpoint  )

Test localEndpoint method.

◆ TEST_F() [14/32]

TEST_F ( TlsSocket ,
move  )

Test move.

◆ TEST_F() [15/32]

TEST_F ( TlsSocket ,
mtu  )

Test mtu method.

◆ TEST_F() [16/32]

TEST_F ( TlsSocket ,
open  )

Test open method.

◆ TEST_F() [17/32]

TEST_F ( TlsSocket ,
opened  )

Test opened method.

◆ TEST_F() [18/32]

TEST_F ( TlsSocket ,
protocol  )

Test protocol method.

◆ TEST_F() [19/32]

TEST_F ( TlsSocket ,
read  )

Test read method.

◆ TEST_F() [20/32]

TEST_F ( TlsSocket ,
readExactly  )

◆ TEST_F() [21/32]

TEST_F ( TlsSocket ,
remoteEndpoint  )

Test remoteEndpoint method.

◆ TEST_F() [22/32]

TEST_F ( TlsSocket ,
setMode  )

Test setMode method.

◆ TEST_F() [23/32]

TEST_F ( TlsSocket ,
setOption  )

Test setOption method.

◆ TEST_F() [24/32]

TEST_F ( TlsSocket ,
type  )

Test type method.

◆ TEST_F() [25/32]

TEST_F ( TlsSocket ,
verify  )

Test cert verification.

◆ TEST_F() [26/32]

TEST_F ( TlsSocket ,
waitConnected  )

Test waitConnected method.

◆ TEST_F() [27/32]

TEST_F ( TlsSocket ,
waitDisconnected  )

Test waitDisconnected method.

◆ TEST_F() [28/32]

TEST_F ( TlsSocket ,
waitHandshake  )

Test waitHandshake method.

◆ TEST_F() [29/32]

TEST_F ( TlsSocket ,
waitReadyRead  )

Test waitReadyRead method.

◆ TEST_F() [30/32]

TEST_F ( TlsSocket ,
waitReadyWrite  )

Test waitReadyWrite method.

◆ TEST_F() [31/32]

TEST_F ( TlsSocket ,
write  )

Test write method.

◆ TEST_F() [32/32]

TEST_F ( TlsSocket ,
writeExactly  )