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 135 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 144 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 116 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 126 of file test_time.cpp.

◆ TEST() [1/3]

TEST ( Time  ,
Test1   
)

Definition at line 91 of file test_time.cpp.

◆ TEST() [2/3]

TEST ( Time  ,
Timeaddsub   
)

Definition at line 153 of file test_time.cpp.

◆ TEST() [3/3]

TEST ( Time  ,
Timeskew   
)

Definition at line 78 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 65 of file test_time.cpp.

Here is the caller graph for this function: