/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder.cpp | 489 DNSResponder::DNSResponder(std::string listen_address, std::string listen_service, in DNSResponder() function in test::DNSResponder 496 DNSResponder::~DNSResponder() { in ~DNSResponder() 500 void DNSResponder::addMapping(const std::string& name, ns_type type, const std::string& addr) { in addMapping() 505 void DNSResponder::addMappingDnsHeader(const std::string& name, ns_type type, in addMappingDnsHeader() 511 void DNSResponder::addMappingBinaryPacket(const std::vector<uint8_t>& query, in addMappingBinaryPacket() 517 void DNSResponder::removeMapping(const std::string& name, ns_type type) { in removeMapping() 525 void DNSResponder::removeMappingDnsHeader(const std::string& name, ns_type type) { in removeMappingDnsHeader() 533 void DNSResponder::removeMappingBinaryPacket(const std::vector<uint8_t>& query) { in removeMappingBinaryPacket() 544 void DNSResponder::setResponseProbability(double response_probability) { in setResponseProbability() 549 void DNSResponder::setResponseDelayMs(unsigned timeMs) { in setResponseDelayMs() [all …]
|
D | dns_responder.h | 128 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(unsigned netId, std::string listen_address) : DNSResponder(listen_address) { in DNSResponder() function 168 ~DNSResponder();
|
D | dns_responder_client_ndk.cpp | 157 std::vector<std::unique_ptr<test::DNSResponder>>* dns, in SetupDNSServers() 166 d = std::make_unique<test::DNSResponder>(server, listenSrv, ns_rcode::ns_r_servfail); in SetupDNSServers()
|
D | dns_responder_client_ndk.h | 124 std::vector<std::unique_ptr<test::DNSResponder>>* dns,
|
/packages/modules/DnsResolver/tests/ |
D | resolv_integration_test.cpp | 257 void StartDns(test::DNSResponder& dns, const std::vector<DnsRecord>& records) { in StartDns() 442 test::DNSResponder dns; in TEST_F() 478 test::DNSResponder dns; in TEST_F() 532 test::DNSResponder dns; in TEST_F() 555 test::DNSResponder dns; in TEST_F() 604 test::DNSResponder dns; in TEST_F() 666 std::vector<std::unique_ptr<test::DNSResponder>> dns; in TEST_F() 725 test::DNSResponder dns(listen_addr); in TEST_F() 726 test::DNSResponder dns2(listen_addr2); in TEST_F() 772 test::DNSResponder dns; in TEST_F() [all …]
|
D | resolv_unit_test.cpp | 77 EXPECT_TRUE(test::DNSResponder::fillRdata(rdata, record)); in MakeAnswerRecord() 118 void StartDns(test::DNSResponder& dns, const std::vector<DnsMessage>& messages) { in StartDns() 460 test::DNSResponder dns; in TEST_F() 545 test::DNSResponder dns; in TEST_F() 579 test::DNSResponder dns; in TEST_F() 640 test::DNSResponder dns(config.rcode); in TEST_F() 846 test::DNSResponder dns(static_cast<ns_rcode>(-1) /*no response*/); in TEST_F() 864 test::DNSResponder dns; in TEST_F() 899 test::DNSResponder dns; in TEST_F() 951 test::DNSResponder dns; in TEST_F() [all …]
|
D | resolv_test_utils.cpp | 106 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()
|
D | resolv_gold_test.cpp | 156 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() 285 test::DNSResponder dns(test::DNSResponder::MappingType::BINARY_PACKET); in TEST_F() 311 test::DNSResponder dns(test::DNSResponder::MappingType::BINARY_PACKET); in TEST_F() 362 test::DNSResponder dns; in TEST_F() 431 test::DNSResponder dns(test::DNSResponder::MappingType::BINARY_PACKET); in TEST_P()
|
D | resolv_test_utils.h | 184 size_t GetNumQueries(const test::DNSResponder& dns, const char* name); 185 size_t GetNumQueriesForProtocol(const test::DNSResponder& dns, const int protocol, 187 size_t GetNumQueriesForType(const test::DNSResponder& dns, ns_type type, const char* name);
|
D | resolv_callback_unit_test.cpp | 147 test::DNSResponder dns; in TEST_F()
|
D | resolv_stress_test.cpp | 45 std::vector<std::unique_ptr<test::DNSResponder>> dns; in RunGetAddrInfoStressTest()
|
D | dnsresolver_binder_test.cpp | 365 test::DNSResponder dns(listen_addr, listen_srv, ns_rcode::ns_r_servfail); in TEST_F()
|
D | resolv_cache_unit_test.cpp | 92 test::DNSResponder::fillRdata(rdata_str, record); in makeAnswer()
|
/packages/modules/DnsResolver/ |
D | PrivateDnsConfigurationTest.cpp | 136 inline static test::DNSResponder backend{kBackend, "53"}; 137 inline static test::DNSResponder backend1ForUdpProbe{kServer1, "53"}; 138 inline static test::DNSResponder backend2ForUdpProbe{kServer2, "53"};
|