/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder.cpp | 459 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 …]
|
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();
|
D | dns_responder_client_ndk.cpp | 173 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()
|
D | dns_responder_client_ndk.h | 102 std::vector<std::unique_ptr<test::DNSResponder>>* dns,
|
/packages/modules/DnsResolver/tests/ |
D | resolv_integration_test.cpp | 222 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 …]
|
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() 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()
|
D | resolv_test_utils.h | 183 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);
|
D | resolv_stress_test.cpp | 45 std::vector<std::unique_ptr<test::DNSResponder>> dns; in RunGetAddrInfoStressTest()
|
D | dnsresolver_binder_test.cpp | 146 test::DNSResponder dns(listen_addr, listen_srv, ns_rcode::ns_r_servfail); in TEST_F()
|
/packages/modules/DnsResolver/ |
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() 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 …]
|
D | resolv_callback_unit_test.cpp | 147 test::DNSResponder dns; in TEST_F()
|
D | resolv_cache_unit_test.cpp | 93 test::DNSResponder::fillRdata(rdata_str, record); in makeAnswer()
|