/system/netd/resolv/ |
D | libnetd_resolv_test.cpp | 76 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 …]
|
D | resolver_test.cpp | 193 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 …]
|
D | dnsresolver_binder_test.cpp | 179 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/ |
D | dns_benchmark.cpp | 57 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()
|
D | README.md | 61 - Documented in [dns\_benchmark.cpp](dns_benchmark.cpp)
|
/system/netd/resolv/dns_responder/ |
D | dns_responder_client.cpp | 104 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()
|
D | dns_responder_client.h | 87 std::vector<std::unique_ptr<test::DNSResponder>>* dns,
|
/system/sepolicy/prebuilts/api/28.0/private/ |
D | untrusted_app_25.te | 29 # b/34115651 - net.dns* properties read
|
D | property_contexts | 11 net.dns u:object_r:net_dns_prop:s0
|
D | app_neverallows.te | 40 # net.dns properties are not a public API. Temporarily exempt pre-Oreo apps,
|
/system/sepolicy/prebuilts/api/26.0/private/ |
D | untrusted_app_25.te | 33 # b/34115651 - net.dns* properties read
|
D | property_contexts | 11 net.dns u:object_r:net_dns_prop:s0
|
/system/sepolicy/prebuilts/api/27.0/private/ |
D | untrusted_app_25.te | 33 # b/34115651 - net.dns* properties read
|
D | property_contexts | 11 net.dns u:object_r:net_dns_prop:s0
|
/system/sepolicy/prebuilts/api/29.0/private/ |
D | untrusted_app_25.te | 29 # b/34115651, b/33308258 - net.dns* properties read
|
D | property_contexts | 11 net.dns u:object_r:net_dns_prop:s0
|
D | app_neverallows.te | 40 # net.dns properties are not a public API. Temporarily exempt pre-Oreo apps,
|
/system/sepolicy/private/ |
D | untrusted_app_25.te | 29 # b/34115651, b/33308258 - net.dns* properties read
|
D | property_contexts | 11 net.dns u:object_r:net_dns_prop:s0
|
D | app_neverallows.te | 40 # net.dns properties are not a public API. Temporarily exempt pre-Oreo apps,
|