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

Go to the source code of this file.

Classes

struct  PacketIDControlConstruct
 

Macros

#define INFO   "i=" << i << " id=" << id << " high=" << high << " result=" << Error::name(result) << " expected=" << Error::name(expected)
 

Functions

template<typename PIDRecv >
void testcase (PIDRecv &pr, const PacketIDControl::time_t t, const PacketIDControl::time_t pkt_time, const PacketIDControl::id_t pkt_id, const Error::Type expected_status)
 
 TEST (misc, pktid_test_control)
 
template<unsigned int ORDER, unsigned int EXPIRE>
void perfiter (const long n, const long range, const long step, const long iter_per_step_pre, long &count)
 
template<unsigned int ORDER, unsigned int EXPIRE>
void perf (long &count)
 
 TEST (misc, pktid_control_perf)
 

Macro Definition Documentation

◆ INFO

#define INFO   "i=" << i << " id=" << id << " high=" << high << " result=" << Error::name(result) << " expected=" << Error::name(expected)

Function Documentation

◆ perf()

template<unsigned int ORDER, unsigned int EXPIRE>
void perf ( long &  count)

Definition at line 143 of file test_pktid_control.cpp.

◆ perfiter()

template<unsigned int ORDER, unsigned int EXPIRE>
void perfiter ( const long  n,
const long  range,
const long  step,
const long  iter_per_step_pre,
long &  count 
)

Definition at line 91 of file test_pktid_control.cpp.

◆ TEST() [1/2]

TEST ( misc  ,
pktid_control_perf   
)

Definition at line 157 of file test_pktid_control.cpp.

◆ TEST() [2/2]

TEST ( misc  ,
pktid_test_control   
)

Definition at line 30 of file test_pktid_control.cpp.

◆ testcase()

template<typename PIDRecv >
void testcase ( PIDRecv &  pr,
const PacketIDControl::time_t  t,
const PacketIDControl::time_t  pkt_time,
const PacketIDControl::id_t  pkt_id,
const Error::Type  expected_status 
)

Definition at line 18 of file test_pktid_control.cpp.

Here is the caller graph for this function: