OpenVPN 3 Core Library
Loading...
Searching...
No Matches
unittests::RouteEmulationTest Class Reference
Inheritance diagram for unittests::RouteEmulationTest:
[legend]
Collaboration diagram for unittests::RouteEmulationTest:
[legend]

Protected Member Functions

 RouteEmulationTest ()
 
void teardown ()
 
void setup (bool ipv6, bool excludeServer, bool keepEmu=false)
 
void inclRoute (const std::string &incRoute)
 
void exclRoute (const std::string &exclRoute)
 
void addRoute (bool include, const std::string &route)
 
void doEmulate (std::string serverip="1.2.3.4")
 
 ~RouteEmulationTest ()
 

Protected Attributes

openvpn::IPVerFlagsipflags
 
openvpn::EmulateExcludeRoute::Ptr emu
 
TunBuilderMocktb
 
openvpn::OptionList emptyOptionList
 

Detailed Description

Definition at line 81 of file test_route_emulation.cpp.

Constructor & Destructor Documentation

◆ RouteEmulationTest()

unittests::RouteEmulationTest::RouteEmulationTest ( )
inlineprotected

Definition at line 89 of file test_route_emulation.cpp.

◆ ~RouteEmulationTest()

unittests::RouteEmulationTest::~RouteEmulationTest ( )
inlineprotected

Definition at line 140 of file test_route_emulation.cpp.

Member Function Documentation

◆ addRoute()

void unittests::RouteEmulationTest::addRoute ( bool  include,
const std::string &  route 
)
inlineprotected

Definition at line 128 of file test_route_emulation.cpp.

Here is the caller graph for this function:

◆ doEmulate()

void unittests::RouteEmulationTest::doEmulate ( std::string  serverip = "1.2.3.4")
inlineprotected

Definition at line 135 of file test_route_emulation.cpp.

◆ exclRoute()

void unittests::RouteEmulationTest::exclRoute ( const std::string &  exclRoute)
inlineprotected

Definition at line 123 of file test_route_emulation.cpp.

Here is the caller graph for this function:

◆ inclRoute()

void unittests::RouteEmulationTest::inclRoute ( const std::string &  incRoute)
inlineprotected

Definition at line 119 of file test_route_emulation.cpp.

◆ setup()

void unittests::RouteEmulationTest::setup ( bool  ipv6,
bool  excludeServer,
bool  keepEmu = false 
)
inlineprotected

Definition at line 100 of file test_route_emulation.cpp.

◆ teardown()

void unittests::RouteEmulationTest::teardown ( )
inlineprotected

Definition at line 94 of file test_route_emulation.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ emptyOptionList

openvpn::OptionList unittests::RouteEmulationTest::emptyOptionList
protected

Definition at line 87 of file test_route_emulation.cpp.

◆ emu

openvpn::EmulateExcludeRoute::Ptr unittests::RouteEmulationTest::emu
protected

Definition at line 85 of file test_route_emulation.cpp.

◆ ipflags

openvpn::IPVerFlags* unittests::RouteEmulationTest::ipflags
protected

Definition at line 84 of file test_route_emulation.cpp.

◆ tb

TunBuilderMock* unittests::RouteEmulationTest::tb
protected

Definition at line 86 of file test_route_emulation.cpp.


The documentation for this class was generated from the following file: