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

Go to the source code of this file.

Functions

const std::string nopull_options ("ip-win32\n" "tap-sleep\n" "block-ipv6\n" "client-nat\n" "register-dns\n" "dhcp-renew\n" "dhcp-option\n" "dhcp-release\n" "dhcp-pre-release\n" "route 1.2.3.4\n" "route 192.168.0.0 255.255.255.0\n" "route 10.0.0.0 255.0.0.0\n" "route-ipv6\n" "route-delay\n" "route-metric\n" "route-method\n" "redirect-gateway\n" "redirect-private\n")
 
const std::string pull_filter_options ("option1 arg1\n" "option1 arg2\n" "option2 \"arg with space\"\n" "option2 \"arg with more space\"\n" "option3 arg1 arg2\n" "option3 arg1 arg2\n" "option10 something else\n")
 
 TEST (PushedOptionsFilter, RouteNopullEnabled)
 
 TEST (PushedOptionsFilter, RouteNopullDisabled)
 
 TEST (PushedOptionsFilter, PullFilterAcceptAll)
 
 TEST (PushedOptionsFilter, PullFilterMalformedAction)
 
 TEST (PushedOptionsFilter, PullFilterMalformedShort)
 
 TEST (PushedOptionsFilter, PullFilterMalformedLong)
 
 TEST (PushedOptionsFilter, PullFilterSingleQuote)
 
 TEST (PushedOptionsFilter, PullFilterMisplacedQuote)
 
 TEST (PushedOptionsFilter, PullFilterIgnoreAll)
 
 TEST (PushedOptionsFilter, PullFilterRejectOne)
 
 TEST (PushedOptionsFilter, PullFilterAcceptWhitespace)
 
 TEST (PushedOptionsFilter, PullFilterIgnoreQuotedWhitespace)
 
 TEST (PushedOptionsFilter, PullFilterOverrideRouteNopull)
 
 TEST (PushedOptionsFilter, RejectDnsServerPrioNegative)
 

Function Documentation

◆ nopull_options()

const std::string nopull_options ( "ip-win32\n" "tap-sleep\n" "block-ipv6\n" "client-nat\n" "register-dns\n" "dhcp-renew\n" "dhcp-option\n" "dhcp-release\n" "dhcp-pre-release\n" "route 1.2.3.4\n" "route 192.168.0.0 255.255.255.0\n" "route 10.0.0.0 255.0.0.0\n" "route-ipv6\n" "route-delay\n" "route-metric\n" "route-method\n" "redirect-gateway\n" "redirect-private\n"  )
Here is the caller graph for this function:

◆ pull_filter_options()

const std::string pull_filter_options ( "option1 arg1\n" "option1 arg2\n" "option2 \"arg with space\"\n" "option2 \"arg with more space\"\n" "option3 arg1 arg2\n" "option3 arg1 arg2\n" "option10 something else\n"  )
Here is the caller graph for this function:

◆ TEST() [1/14]

TEST ( PushedOptionsFilter  ,
PullFilterAcceptAll   
)

Definition at line 99 of file test_optfilt.cpp.

◆ TEST() [2/14]

TEST ( PushedOptionsFilter  ,
PullFilterAcceptWhitespace   
)

Definition at line 216 of file test_optfilt.cpp.

◆ TEST() [3/14]

TEST ( PushedOptionsFilter  ,
PullFilterIgnoreAll   
)

Definition at line 178 of file test_optfilt.cpp.

◆ TEST() [4/14]

TEST ( PushedOptionsFilter  ,
PullFilterIgnoreQuotedWhitespace   
)

Definition at line 240 of file test_optfilt.cpp.

◆ TEST() [5/14]

TEST ( PushedOptionsFilter  ,
PullFilterMalformedAction   
)

Definition at line 120 of file test_optfilt.cpp.

◆ TEST() [6/14]

TEST ( PushedOptionsFilter  ,
PullFilterMalformedLong   
)

Definition at line 138 of file test_optfilt.cpp.

◆ TEST() [7/14]

TEST ( PushedOptionsFilter  ,
PullFilterMalformedShort   
)

Definition at line 129 of file test_optfilt.cpp.

◆ TEST() [8/14]

TEST ( PushedOptionsFilter  ,
PullFilterMisplacedQuote   
)

Definition at line 169 of file test_optfilt.cpp.

◆ TEST() [9/14]

TEST ( PushedOptionsFilter  ,
PullFilterOverrideRouteNopull   
)

Definition at line 269 of file test_optfilt.cpp.

◆ TEST() [10/14]

TEST ( PushedOptionsFilter  ,
PullFilterRejectOne   
)

Definition at line 199 of file test_optfilt.cpp.

◆ TEST() [11/14]

TEST ( PushedOptionsFilter  ,
PullFilterSingleQuote   
)

Definition at line 147 of file test_optfilt.cpp.

◆ TEST() [12/14]

TEST ( PushedOptionsFilter  ,
RejectDnsServerPrioNegative   
)

Definition at line 309 of file test_optfilt.cpp.

◆ TEST() [13/14]

TEST ( PushedOptionsFilter  ,
RouteNopullDisabled   
)

Definition at line 79 of file test_optfilt.cpp.

◆ TEST() [14/14]

TEST ( PushedOptionsFilter  ,
RouteNopullEnabled   
)

Definition at line 51 of file test_optfilt.cpp.