OpenVPN 3 Core Library
Loading...
Searching...
No Matches
test_pktstream.cpp File Reference
Include dependency graph for test_pktstream.cpp:

Go to the source code of this file.

Functions

static size_t rand_size (RandomAPI &prng)
 
template<typename PKTSTREAM >
static void do_test (const bool grow, const bool verbose)
 
 TEST (Pktstream, Test16)
 
 TEST (Pktstream, Test32)
 
 TEST (Pktstream, Test16Residual)
 
 TEST (Pktstream, Test32Residual)
 
template<typename PKTSTREAM >
static void validate_size (const Frame::Context &fc, const size_t size, const bool expect_throw)
 
template<typename PKTSTREAM >
static void validate_size_test ()
 
 TEST (Pktstream, ValidateSize16)
 
 TEST (Pktstream, ValidateSize32)
 

Function Documentation

◆ do_test()

template<typename PKTSTREAM >
static void do_test ( const bool  grow,
const bool  verbose 
)
static

Definition at line 30 of file test_pktstream.cpp.

◆ rand_size()

static size_t rand_size ( RandomAPI prng)
static

Definition at line 22 of file test_pktstream.cpp.

Here is the caller graph for this function:

◆ TEST() [1/6]

TEST ( Pktstream  ,
Test16   
)

Definition at line 118 of file test_pktstream.cpp.

◆ TEST() [2/6]

TEST ( Pktstream  ,
Test16Residual   
)

Definition at line 128 of file test_pktstream.cpp.

◆ TEST() [3/6]

TEST ( Pktstream  ,
Test32   
)

Definition at line 123 of file test_pktstream.cpp.

◆ TEST() [4/6]

TEST ( Pktstream  ,
Test32Residual   
)

Definition at line 133 of file test_pktstream.cpp.

◆ TEST() [5/6]

TEST ( Pktstream  ,
ValidateSize16   
)

Definition at line 173 of file test_pktstream.cpp.

◆ TEST() [6/6]

TEST ( Pktstream  ,
ValidateSize32   
)

Definition at line 178 of file test_pktstream.cpp.

◆ validate_size()

template<typename PKTSTREAM >
static void validate_size ( const Frame::Context fc,
const size_t  size,
const bool  expect_throw 
)
static

Definition at line 139 of file test_pktstream.cpp.

◆ validate_size_test()

template<typename PKTSTREAM >
static void validate_size_test ( )
static

Definition at line 159 of file test_pktstream.cpp.