userver: utest::DnsServerMock Class Reference
Loading...
Searching...
No Matches
utest::DnsServerMock Class Referencefinal

Detailed Description

Definition at line 21 of file dns_server_mock.hpp.

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
 

Member Typedef Documentation

◆ DnsAnswerVector

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

Definition at line 43 of file dns_server_mock.hpp.

◆ DnsHandler

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

Definition at line 48 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: