DNS test class.
More...
|
| void | SetUp () override |
| | set up the test fixture.
|
| |
| void | TearDown () override |
| | tear down the test fixture.
|
| |
| void | onQuery (const DnsPacket &query) override |
| | handle a DNS query.
|
| |
|
| std::unique_ptr< Dns::Resolver > | _resolver |
| | DNS resolver instance.
|
| |
|
| static const uint16_t | _dnsPort = 5353 |
| | DNS server port.
|
| |
| static const IpAddress | _fakeIPv4 |
| | fake IPv4 address.
|
| |
| static const IpAddress | _fakeIPv6 |
| | fake IPv6 address.
|
| |
| static constexpr const char * | _fakePTR = "fake.local" |
| | fake PTR record.
|
| |
| static constexpr const char * | _fakeNS = "ns.fake.local" |
| | fake NS record.
|
| |
| static constexpr const char * | _fakeSOA = "soa.fake.local" |
| | fake SOA record.
|
| |
| static constexpr const char * | _fakeMX = "mail.fake.local" |
| | fake MX record.
|
| |
◆ onQuery()
| void DnsTest::onQuery |
( |
const DnsPacket & | query | ) |
|
|
inlineoverrideprotected |
handle a DNS query.
- Parameters
-
◆ SetUp()
◆ TearDown()
| void DnsTest::TearDown |
( |
| ) |
|
|
inlineoverrideprotected |
tear down the test fixture.
◆ _dnsPort
| const uint16_t DnsTest::_dnsPort = 5353 |
|
staticprotected |
◆ _fakeIPv4
◆ _fakeIPv6
◆ _fakeMX
| const char* DnsTest::_fakeMX = "mail.fake.local" |
|
staticconstexprprotected |
◆ _fakeNS
| const char* DnsTest::_fakeNS = "ns.fake.local" |
|
staticconstexprprotected |
◆ _fakePTR
| const char* DnsTest::_fakePTR = "fake.local" |
|
staticconstexprprotected |
◆ _fakeSOA
| const char* DnsTest::_fakeSOA = "soa.fake.local" |
|
staticconstexprprotected |
◆ _resolver
| std::unique_ptr<Dns::Resolver> DnsTest::_resolver |
|
protected |
The documentation for this class was generated from the following file: