Searched refs:DNSResponder (Results 1 – 3 of 3) sorted by relevance
/system/netd/tests/ |
D | dns_responder.cpp | 519 DNSResponder::DNSResponder(std::string listen_address, in DNSResponder() function in test::DNSResponder 527 DNSResponder::~DNSResponder() { in ~DNSResponder() 531 void DNSResponder::addMapping(const char* name, ns_type type, in addMapping() 547 void DNSResponder::removeMapping(const char* name, ns_type type) { in removeMapping() 558 void DNSResponder::setResponseProbability(double response_probability) { in setResponseProbability() 562 bool DNSResponder::running() const { in running() 566 bool DNSResponder::startServer() { in startServer() 637 handler_thread_ = std::thread(&DNSResponder::requestHandler, this); in startServer() 643 bool DNSResponder::stopServer() { in stopServer() 664 std::vector<std::pair<std::string, ns_type >> DNSResponder::queries() const { in queries() [all …]
|
D | netd_test.cpp | 226 std::vector<std::unique_ptr<test::DNSResponder>>* dns, in SetupDNSServers() 236 d = std::make_unique<test::DNSResponder>(server, listen_srv, 250, in SetupDNSServers() 247 void ShutdownDNSServers(std::vector<std::unique_ptr<test::DNSResponder>>* dns) const { in ShutdownDNSServers() 343 size_t GetNumQueries(const test::DNSResponder& dns, const char* name) const { in GetNumQueries() 354 size_t GetNumQueriesForType(const test::DNSResponder& dns, ns_type type, in GetNumQueriesForType() 369 std::vector<std::unique_ptr<test::DNSResponder>> dns; in RunGetAddrInfoStressTest_Binder() 425 test::DNSResponder dns(listen_addr, listen_srv, 250, ns_rcode::ns_r_servfail, 1.0); in TEST_F() 462 std::vector<std::unique_ptr<test::DNSResponder>> dns; in TEST_F() 514 test::DNSResponder dns(listen_addr, listen_srv, 250, in TEST_F() 520 test::DNSResponder dns2(listen_addr2, listen_srv, 250, in TEST_F() [all …]
|
D | dns_responder.h | 43 class DNSResponder { 45 DNSResponder(std::string listen_address, std::string listen_service, 48 ~DNSResponder();
|