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

Go to the source code of this file.

Classes

class  Mean
 
struct  MeanDev
 

Functions

int my_abs (const int value)
 
void test_skew (const Time::Duration &dur, const unsigned int skew_factor, MeanDev &md, const bool verbose, RandomAPI &prng)
 
 TEST (time, timeskew)
 
 TEST (time, test1)
 
static void sub (const Time &t1, const Time &t2, bool large)
 
static void sub (const Time::Duration &d1, const Time::Duration &d2)
 
static void add (const Time &t1, const Time::Duration &d1)
 
static void add (const Time::Duration &d1, const Time::Duration &d2)
 
 TEST (time, timeaddsub)
 

Function Documentation

◆ add() [1/2]

static void add ( const Time t1,
const Time::Duration &  d1 
)
static

Definition at line 136 of file test_time.cpp.

Here is the caller graph for this function:

◆ add() [2/2]

static void add ( const Time::Duration &  d1,
const Time::Duration &  d2 
)
static

Definition at line 145 of file test_time.cpp.

◆ my_abs()

int my_abs ( const int  value)

Definition at line 12 of file test_time.cpp.

Here is the caller graph for this function:

◆ sub() [1/2]

static void sub ( const Time t1,
const Time t2,
bool  large 
)
static

Definition at line 117 of file test_time.cpp.

Here is the caller graph for this function:

◆ sub() [2/2]

static void sub ( const Time::Duration &  d1,
const Time::Duration &  d2 
)
static

Definition at line 127 of file test_time.cpp.

◆ TEST() [1/3]

TEST ( time  ,
test1   
)

Definition at line 92 of file test_time.cpp.

◆ TEST() [2/3]

TEST ( time  ,
timeaddsub   
)

Definition at line 154 of file test_time.cpp.

◆ TEST() [3/3]

TEST ( time  ,
timeskew   
)

Definition at line 79 of file test_time.cpp.

◆ test_skew()

void test_skew ( const Time::Duration &  dur,
const unsigned int  skew_factor,
MeanDev md,
const bool  verbose,
RandomAPI prng 
)

Definition at line 66 of file test_time.cpp.

Here is the caller graph for this function: