userver: utest::DnsServerMock Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
utest::DnsServerMock Class Referencefinal

Classes

struct  DnsAnswer
 
struct  DnsQuery
 
struct  NoAnswer
 

Public Types

enum class  RecordType {
  kInvalid = 0 ,
  kA = 1 ,
  kAAAA = 28 ,
  kCname = 5
}
 
using DnsAnswerVector = std::vector< DnsAnswer >
 
using DnsHandler = std::function< DnsAnswerVector(const DnsQuery &)>
 

Public Member Functions

 DnsServerMock (DnsHandler)
 
std::string GetServerAddress () const
 

Detailed Description

Definition at line 21 of file dns_server_mock.hpp.

Member Typedef Documentation

◆ DnsAnswerVector

using utest::DnsServerMock::DnsAnswerVector = std::vector<DnsAnswer>

Definition at line 44 of file dns_server_mock.hpp.

◆ DnsHandler

using utest::DnsServerMock::DnsHandler = std::function<DnsAnswerVector(const DnsQuery&)>

Definition at line 49 of file dns_server_mock.hpp.

Member Enumeration Documentation

◆ RecordType

enum class utest::DnsServerMock::RecordType
strong

Definition at line 23 of file dns_server_mock.hpp.


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