Home
last modified time | relevance | path

Searched refs:dns (Results 1 – 20 of 20) sorted by relevance

/system/netd/resolv/
Dlibnetd_resolv_test.cpp76 size_t GetNumQueries(const test::DNSResponder& dns, const char* name) const { in GetNumQueries() argument
77 auto queries = dns.queries(); in GetNumQueries()
335 test::DNSResponder dns(listen_addr, listen_srv, 250, ns_rcode::ns_r_servfail); in TEST_F() local
336 dns.addMapping(v4_host_name, ns_type::ns_t_a, "1.2.3.3"); in TEST_F()
337 ASSERT_TRUE(dns.startServer()); in TEST_F()
342 dns.clearQueries(); in TEST_F()
348 EXPECT_LE(1U, GetNumQueries(dns, v4_host_name)); in TEST_F()
362 test::DNSResponder dns(listen_addr, listen_srv, 250, ns_rcode::ns_r_servfail); in TEST_F() local
363 dns.addMapping(host_name, ns_type::ns_t_a, v4addr); in TEST_F()
364 dns.addMapping(host_name, ns_type::ns_t_aaaa, v6addr); in TEST_F()
[all …]
Dresolver_test.cpp193 size_t GetNumQueries(const test::DNSResponder& dns, const char* name) const { in GetNumQueries() argument
194 auto queries = dns.queries(); in GetNumQueries()
204 size_t GetNumQueriesForType(const test::DNSResponder& dns, ns_type type, in GetNumQueriesForType() argument
206 auto queries = dns.queries(); in GetNumQueriesForType()
233 std::vector<std::unique_ptr<test::DNSResponder>> dns; in RunGetAddrInfoStressTest_Binder() local
237 ASSERT_NO_FATAL_FAILURE(mDnsClient.SetupDNSServers(MAXNS, mappings, &dns, &servers)); in RunGetAddrInfoStressTest_Binder()
283 void StartDns(test::DNSResponder& dns, const std::vector<DnsRecord>& records) { in StartDns() argument
285 dns.addMapping(r.host_name, r.type, r.addr); in StartDns()
288 ASSERT_TRUE(dns.startServer()); in StartDns()
289 dns.clearQueries(); in StartDns()
[all …]
Ddnsresolver_binder_test.cpp179 test::DNSResponder dns(listen_addr, listen_srv, 250, ns_rcode::ns_r_servfail); in TEST_F() local
180 dns.addMapping("hi.example.com.", ns_type::ns_t_a, "1.2.3.4"); in TEST_F()
181 ASSERT_TRUE(dns.startServer()); in TEST_F()
190 dns.clearQueries(); in TEST_F()
/system/netd/tests/benchmarks/
Ddns_benchmark.cpp57 DnsResponderClient dns; member in DnsFixture
64 dns.SetUp(); in SetUp()
68 dns.SetupMappings(num_hosts, domains, &mappings); in SetUp()
70 dns.SetupDNSServers(MAXNS, mappings, &mDns, &servers); in SetUp()
73 dns.SetResolversForNetwork(servers, domains, mDefaultParams_Binder); in SetUp()
79 dns.TearDown(); in TearDown()
DREADME.md61 - Documented in [dns\_benchmark.cpp](dns_benchmark.cpp)
/system/netd/resolv/dns_responder/
Ddns_responder_client.cpp104 std::vector<std::unique_ptr<test::DNSResponder>>* dns, in SetupDNSServers() argument
107 dns->resize(num_servers); in SetupDNSServers()
111 auto& d = (*dns)[i]; in SetupDNSServers()
Ddns_responder_client.h87 std::vector<std::unique_ptr<test::DNSResponder>>* dns,
/system/sepolicy/prebuilts/api/28.0/private/
Duntrusted_app_25.te29 # b/34115651 - net.dns* properties read
Dproperty_contexts11 net.dns u:object_r:net_dns_prop:s0
Dapp_neverallows.te40 # net.dns properties are not a public API. Temporarily exempt pre-Oreo apps,
/system/sepolicy/prebuilts/api/26.0/private/
Duntrusted_app_25.te33 # b/34115651 - net.dns* properties read
Dproperty_contexts11 net.dns u:object_r:net_dns_prop:s0
/system/sepolicy/prebuilts/api/27.0/private/
Duntrusted_app_25.te33 # b/34115651 - net.dns* properties read
Dproperty_contexts11 net.dns u:object_r:net_dns_prop:s0
/system/sepolicy/prebuilts/api/29.0/private/
Duntrusted_app_25.te29 # b/34115651, b/33308258 - net.dns* properties read
Dproperty_contexts11 net.dns u:object_r:net_dns_prop:s0
Dapp_neverallows.te40 # net.dns properties are not a public API. Temporarily exempt pre-Oreo apps,
/system/sepolicy/private/
Duntrusted_app_25.te29 # b/34115651, b/33308258 - net.dns* properties read
Dproperty_contexts11 net.dns u:object_r:net_dns_prop:s0
Dapp_neverallows.te40 # net.dns properties are not a public API. Temporarily exempt pre-Oreo apps,