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, test_16)
 
 TEST (pktstream, test_32)
 
 TEST (pktstream, test_16_residual)
 
 TEST (pktstream, test_32_residual)
 
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, validate_size_16)
 
 TEST (pktstream, validate_size_32)
 

Function Documentation

◆ do_test()

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

Definition at line 31 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  ,
test_16   
)

Definition at line 119 of file test_pktstream.cpp.

◆ TEST() [2/6]

TEST ( pktstream  ,
test_16_residual   
)

Definition at line 129 of file test_pktstream.cpp.

◆ TEST() [3/6]

TEST ( pktstream  ,
test_32   
)

Definition at line 124 of file test_pktstream.cpp.

◆ TEST() [4/6]

TEST ( pktstream  ,
test_32_residual   
)

Definition at line 134 of file test_pktstream.cpp.

◆ TEST() [5/6]

TEST ( pktstream  ,
validate_size_16   
)

Definition at line 174 of file test_pktstream.cpp.

◆ TEST() [6/6]

TEST ( pktstream  ,
validate_size_32   
)

Definition at line 179 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 140 of file test_pktstream.cpp.

◆ validate_size_test()

template<typename PKTSTREAM >
static void validate_size_test ( )
static

Definition at line 160 of file test_pktstream.cpp.