Home
last modified time | relevance | path

Searched refs:DNSResponder (Results 1 – 13 of 13) sorted by relevance

/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp459 DNSResponder::DNSResponder(std::string listen_address, std::string listen_service, in DNSResponder() function in test::DNSResponder
466 DNSResponder::~DNSResponder() { in ~DNSResponder()
470 void DNSResponder::addMapping(const std::string& name, ns_type type, const std::string& addr) { in addMapping()
475 void DNSResponder::addMappingDnsHeader(const std::string& name, ns_type type, in addMappingDnsHeader()
481 void DNSResponder::addMappingBinaryPacket(const std::vector<uint8_t>& query, in addMappingBinaryPacket()
487 void DNSResponder::removeMapping(const std::string& name, ns_type type) { in removeMapping()
495 void DNSResponder::removeMappingDnsHeader(const std::string& name, ns_type type) { in removeMappingDnsHeader()
503 void DNSResponder::removeMappingBinaryPacket(const std::vector<uint8_t>& query) { in removeMappingBinaryPacket()
514 void DNSResponder::setResponseProbability(double response_probability) { in setResponseProbability()
519 void DNSResponder::setResponseDelayMs(unsigned timeMs) { in setResponseDelayMs()
[all …]
Ddns_responder.h128 class DNSResponder {
152 DNSResponder(std::string listen_address = kDefaultListenAddr,
155 DNSResponder::MappingType mapping_type = MappingType::ADDRESS_OR_HOSTNAME);
157 DNSResponder(ns_rcode error_rcode) in DNSResponder() function
158 : DNSResponder(kDefaultListenAddr, kDefaultListenService, error_rcode){}; in DNSResponder()
160 DNSResponder(MappingType mapping_type) in DNSResponder() function
161 : DNSResponder(kDefaultListenAddr, kDefaultListenService, kDefaultErrorCode, in DNSResponder()
164 ~DNSResponder();
Ddns_responder_client_ndk.cpp173 std::vector<std::unique_ptr<test::DNSResponder>>* dns, in SetupDNSServers()
182 d = std::make_unique<test::DNSResponder>(server, listenSrv, ns_rcode::ns_r_servfail); in SetupDNSServers()
Ddns_responder_client_ndk.h102 std::vector<std::unique_ptr<test::DNSResponder>>* dns,
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp222 void StartDns(test::DNSResponder& dns, const std::vector<DnsRecord>& records) { in StartDns()
373 test::DNSResponder dns; in TEST_F()
396 test::DNSResponder dns; in TEST_F()
450 test::DNSResponder dns; in TEST_F()
473 test::DNSResponder dns; in TEST_F()
522 test::DNSResponder dns; in TEST_F()
584 std::vector<std::unique_ptr<test::DNSResponder>> dns; in TEST_F()
643 test::DNSResponder dns(listen_addr); in TEST_F()
644 test::DNSResponder dns2(listen_addr2); in TEST_F()
690 test::DNSResponder dns; in TEST_F()
[all …]
Dresolv_test_utils.cpp106 size_t GetNumQueries(const test::DNSResponder& dns, const char* name) { in GetNumQueries()
107 std::vector<test::DNSResponder::QueryInfo> queries = dns.queries(); in GetNumQueries()
117 size_t GetNumQueriesForProtocol(const test::DNSResponder& dns, const int protocol, in GetNumQueriesForProtocol()
119 std::vector<test::DNSResponder::QueryInfo> queries = dns.queries(); in GetNumQueriesForProtocol()
129 size_t GetNumQueriesForType(const test::DNSResponder& dns, ns_type type, const char* name) { in GetNumQueriesForType()
130 std::vector<test::DNSResponder::QueryInfo> queries = dns.queries(); in GetNumQueriesForType()
Dresolv_gold_test.cpp156 void SetupMappings(const android::net::GoldTest& goldtest, test::DNSResponder& dns) { in SetupMappings()
222 void VerifyResolver(const android::net::GoldTest& goldtest, const test::DNSResponder& dns, in VerifyResolver()
281 test::DNSResponder dns(test::DNSResponder::MappingType::BINARY_PACKET); in TEST_F()
307 test::DNSResponder dns(test::DNSResponder::MappingType::BINARY_PACKET); in TEST_F()
358 test::DNSResponder dns; in TEST_F()
425 test::DNSResponder dns(test::DNSResponder::MappingType::BINARY_PACKET); in TEST_P()
Dresolv_test_utils.h183 size_t GetNumQueries(const test::DNSResponder& dns, const char* name);
184 size_t GetNumQueriesForProtocol(const test::DNSResponder& dns, const int protocol,
186 size_t GetNumQueriesForType(const test::DNSResponder& dns, ns_type type, const char* name);
Dresolv_stress_test.cpp45 std::vector<std::unique_ptr<test::DNSResponder>> dns; in RunGetAddrInfoStressTest()
Ddnsresolver_binder_test.cpp146 test::DNSResponder dns(listen_addr, listen_srv, ns_rcode::ns_r_servfail); in TEST_F()
/packages/modules/DnsResolver/
Dresolv_unit_test.cpp77 EXPECT_TRUE(test::DNSResponder::fillRdata(rdata, record)); in MakeAnswerRecord()
118 void StartDns(test::DNSResponder& dns, const std::vector<DnsMessage>& messages) { in StartDns()
458 test::DNSResponder dns; in TEST_F()
543 test::DNSResponder dns; in TEST_F()
577 test::DNSResponder dns; in TEST_F()
638 test::DNSResponder dns(config.rcode); in TEST_F()
844 test::DNSResponder dns(static_cast<ns_rcode>(-1) /*no response*/); in TEST_F()
862 test::DNSResponder dns; in TEST_F()
897 test::DNSResponder dns; in TEST_F()
949 test::DNSResponder dns; in TEST_F()
[all …]
Dresolv_callback_unit_test.cpp147 test::DNSResponder dns; in TEST_F()
Dresolv_cache_unit_test.cpp93 test::DNSResponder::fillRdata(rdata_str, record); in makeAnswer()