OpenVPN 3 Core Library
|
#include <test_helper.hpp>
Public Types | |
using | Result = std::pair< const std::string, const unsigned short > |
using | ResultList = std::vector< Result > |
using | ResultsType = typename RESOLVABLE::results_type |
using | EndpointType = typename RESOLVABLE::resolver_type::endpoint_type |
using | EndpointList = std::vector< EndpointType > |
Public Member Functions | |
EndpointType | init_endpoint () const |
void | set_results (const std::string &host, const std::string &service, const ResultList &&results) |
FakeAsyncResolvable (CTOR_ARGS... args) | |
void | async_resolve_name (const std::string &host, const std::string &service) override |
Public Attributes | |
std::map< const std::string, EndpointList > | results_ |
Fake DNS resolver. Inherits from tested class and overrides async_resolve_name(). Returns error if host/service pair has not been added with set_results() before.
Definition at line 273 of file test_helper.hpp.
using FakeAsyncResolvable< RESOLVABLE, CTOR_ARGS >::EndpointList = std::vector<EndpointType> |
Definition at line 281 of file test_helper.hpp.
using FakeAsyncResolvable< RESOLVABLE, CTOR_ARGS >::EndpointType = typename RESOLVABLE::resolver_type::endpoint_type |
Definition at line 280 of file test_helper.hpp.
using FakeAsyncResolvable< RESOLVABLE, CTOR_ARGS >::Result = std::pair<const std::string, const unsigned short> |
Definition at line 276 of file test_helper.hpp.
using FakeAsyncResolvable< RESOLVABLE, CTOR_ARGS >::ResultList = std::vector<Result> |
Definition at line 277 of file test_helper.hpp.
using FakeAsyncResolvable< RESOLVABLE, CTOR_ARGS >::ResultsType = typename RESOLVABLE::results_type |
Definition at line 279 of file test_helper.hpp.
|
inline |
Definition at line 301 of file test_helper.hpp.
|
inlineoverride |
Definition at line 306 of file test_helper.hpp.
|
inline |
Definition at line 285 of file test_helper.hpp.
|
inline |
Definition at line 290 of file test_helper.hpp.
std::map<const std::string, EndpointList> FakeAsyncResolvable< RESOLVABLE, CTOR_ARGS >::results_ |
Definition at line 283 of file test_helper.hpp.