• Home
  • Raw
  • Download

Lines Matching refs:host_name

100         std::string host_name;  // host name  member
285 dns.addMapping(r.host_name, r.type, r.addr); in StartDns()
325 constexpr char host_name[] = "host.example.com."; in TEST_F() local
335 {"e.example.com.", ns_type::ns_t_cname, host_name}, in TEST_F()
336 {host_name, ns_type::ns_t_a, "1.2.3.3"}, in TEST_F()
337 {host_name, ns_type::ns_t_aaaa, "2001:db8::42"}, in TEST_F()
349 std::string domain_name = records[i].host_name.substr(0, records[i].host_name.size() - 1); in TEST_F()
367 std::string domain_name = records[i].host_name.substr(0, records[i].host_name.size() - 1); in TEST_F()
570 constexpr char host_name[] = "howdy.example.com."; in TEST_F() local
573 {host_name, ns_type::ns_t_a, "1.2.3.4"}, in TEST_F()
574 {host_name, ns_type::ns_t_aaaa, "::1.2.3.4"}, in TEST_F()
587 size_t found = GetNumQueries(dns, host_name); in TEST_F()
598 found = GetNumQueries(dns, host_name); in TEST_F()
612 found = GetNumQueries(dns, host_name); in TEST_F()
613 size_t found2 = GetNumQueries(dns2, host_name); in TEST_F()
744 constexpr char host_name[] = "host.example.com."; in TEST_F() local
752 {"e.example.com.", ns_type::ns_t_cname, host_name}, in TEST_F()
753 {host_name, ns_type::ns_t_a, "1.2.3.3"}, in TEST_F()
754 {host_name, ns_type::ns_t_aaaa, "2001:db8::42"}, in TEST_F()
808 constexpr char host_name[] = "nihao.example2.com."; in TEST_F() local
812 StartDns(dns, {{host_name, ns_type::ns_t_a, "1.2.3.3"}}); in TEST_F()
817 EXPECT_EQ(1U, GetNumQueriesForType(dns, ns_type::ns_t_a, host_name)); in TEST_F()
826 constexpr char host_name[] = "ohayou.example.com."; in TEST_F() local
831 StartDns(dns, {{host_name, ns_type::ns_t_aaaa, "2001:db8::5"}}); in TEST_F()
843 result = safe_getaddrinfo(host_name, nullptr, &hints); in TEST_F()
851 const char* host_name = "ohayou.example.com."; in TEST_F() local
856 StartDns(dns0, {{host_name, ns_type::ns_t_aaaa, "2001:db8::5"}}); in TEST_F()
857 StartDns(dns1, {{host_name, ns_type::ns_t_aaaa, "2001:db8::6"}}); in TEST_F()
880 EXPECT_EQ(0U, GetNumQueries(dns0, host_name)); in TEST_F()
881 EXPECT_EQ(1U, GetNumQueries(dns1, host_name)); in TEST_F()
931 constexpr char host_name[] = "konbanha.example.com."; in TEST_F() local
936 StartDns(dns0, {{host_name, ns_type::ns_t_aaaa, "2001:db8::5"}}); in TEST_F()
937 StartDns(dns1, {{host_name, ns_type::ns_t_aaaa, "2001:db8::6"}}); in TEST_F()
938 StartDns(dns2, {{host_name, ns_type::ns_t_aaaa, "2001:db8::7"}}); in TEST_F()
1174 constexpr char host_name[] = "tlsmissing.example.com."; in TEST_F() local
1177 StartDns(dns, {{host_name, ns_type::ns_t_a, "1.2.3.3"}}); in TEST_F()
1318 std::string host_name = StringPrintf("tlsfingerprint%d.example.com.", chain_length); in TEST_F() local
1319 dns.addMapping(host_name, ns_type::ns_t_a, "1.2.3.1"); in TEST_F()
1352 constexpr char host_name[] = "badtlsfingerprint.example.com."; in TEST_F() local
1355 StartDns(dns, {{host_name, ns_type::ns_t_a, "1.2.3.1"}}); in TEST_F()
1382 constexpr char host_name[] = "twotlsfingerprints.example.com."; in TEST_F() local
1385 StartDns(dns, {{host_name, ns_type::ns_t_a, "1.2.3.1"}}); in TEST_F()
1524 constexpr char host_name[] = "badtlsname.example.com."; in TEST_F() local
1527 StartDns(dns, {{host_name, ns_type::ns_t_a, "1.2.3.1"}}); in TEST_F()
1550 constexpr char host_name[] = "addrinfotls.example.com."; in TEST_F() local
1552 {host_name, ns_type::ns_t_a, "1.2.3.4"}, in TEST_F()
1553 {host_name, ns_type::ns_t_aaaa, "::1.2.3.4"}, in TEST_F()
1571 size_t found = GetNumQueries(dns, host_name); in TEST_F()
1647 const char* host_name = testHostName.c_str(); in TEST_F() local
1648 dns.addMapping(host_name, ns_type::ns_t_a, ADDR4); in TEST_F()
1649 dns.addMapping(host_name, ns_type::ns_t_aaaa, ADDR6); in TEST_F()
1682 h_result = gethostbyname(host_name); in TEST_F()
1684 EXPECT_EQ(1U, GetNumQueriesForType(dns, ns_type::ns_t_a, host_name)); in TEST_F()
1692 ai_result = safe_getaddrinfo(host_name, nullptr, nullptr); in TEST_F()
1695 EXPECT_LE(1U, GetNumQueries(dns, host_name)); in TEST_F()
1702 EXPECT_EQ(0, android_getaddrinfofornet(host_name, /*servname=*/nullptr, in TEST_F()
1707 EXPECT_LE(1U, GetNumQueries(dns, host_name)); in TEST_F()
1730 constexpr char host_name[] = "strictmode.notlsips.example.com."; in TEST_F() local
1732 {host_name, ns_type::ns_t_a, "1.2.3.4"}, in TEST_F()
1733 {host_name, ns_type::ns_t_aaaa, "::1.2.3.4"}, in TEST_F()
1743 EXPECT_NE(0, getaddrinfo(host_name, nullptr, nullptr, &ai_result)); in TEST_F()
1744 EXPECT_EQ(0U, GetNumQueries(dns, host_name)); in TEST_F()
1830 constexpr char host_name[] = "howdy.example.com."; in TEST_F() local
1832 {host_name, ns_type::ns_t_a, "1.2.3.4"}, in TEST_F()
1833 {host_name, ns_type::ns_t_aaaa, "::1.2.3.4"}, in TEST_F()
1856 EXPECT_EQ(2U, GetNumQueries(dns, host_name)); in TEST_F()
1873 EXPECT_EQ(2U, GetNumQueries(dns, host_name)); in TEST_F()
1878 constexpr char host_name[] = "howdy.example.com."; in TEST_F() local
1880 {host_name, ns_type::ns_t_a, "1.2.3.4"}, in TEST_F()
1881 {host_name, ns_type::ns_t_aaaa, "::1.2.3.4"}, in TEST_F()
1921 constexpr char host_name[] = "howdy.example.com."; in TEST_F() local
1923 {host_name, ns_type::ns_t_a, "1.2.3.4"}, in TEST_F()
1924 {host_name, ns_type::ns_t_aaaa, "::1.2.3.4"}, in TEST_F()
1982 constexpr char host_name[] = "howdy.example.com."; in TEST_F() local
1984 {host_name, ns_type::ns_t_a, "1.2.3.4"}, in TEST_F()
1985 {host_name, ns_type::ns_t_aaaa, "::1.2.3.4"}, in TEST_F()
2044 constexpr char host_name[] = "howdy.example.com."; in TEST_F() local
2047 {host_name, ns_type::ns_t_a, "1.2.3.4"}, in TEST_F()
2048 {host_name, ns_type::ns_t_aaaa, "::1.2.3.4"}, in TEST_F()
2074 EXPECT_EQ(3U, GetNumQueries(dns, host_name)); in TEST_F()
2084 EXPECT_EQ(4U, GetNumQueries(dns, host_name)); in TEST_F()
2099 EXPECT_EQ(6U, GetNumQueries(dns, host_name)); in TEST_F()
2108 EXPECT_EQ(6U, GetNumQueries(dns, host_name)); in TEST_F()
2125 EXPECT_EQ(2U, GetNumQueries(dns, host_name)); in TEST_F()
2138 EXPECT_EQ(2U, GetNumQueries(dns, host_name)); in TEST_F()
2175 constexpr char host_name[] = "howdy.example.com."; in TEST_F() local
2177 {host_name, ns_type::ns_t_a, "1.2.3.4"}, in TEST_F()
2178 {host_name, ns_type::ns_t_aaaa, "::1.2.3.4"}, in TEST_F()
2206 EXPECT_EQ(2U, GetNumQueries(dns0, host_name) + GetNumQueries(dns1, host_name)); in TEST_F()
2222 EXPECT_EQ(4U, GetNumQueries(dns0, host_name)); in TEST_F()
2223 EXPECT_EQ(4U, GetNumQueries(dns1, host_name)); in TEST_F()
2228 constexpr char host_name[] = "howdy.example.com."; in TEST_F() local
2230 {host_name, ns_type::ns_t_a, "1.2.3.4"}, in TEST_F()
2231 {host_name, ns_type::ns_t_aaaa, "::1.2.3.4"}, in TEST_F()
2267 EXPECT_EQ(1U, GetNumQueries(dns, host_name)); in TEST_F()
2295 EXPECT_EQ(1U, GetNumQueries(dns, host_name)); in TEST_F()
2384 const char* host_name = testHostName.c_str(); in TEST_F() local
2385 dns.addMapping(host_name, ns_type::ns_t_a, ADDR4); in TEST_F()
2409 const hostent* h_result = gethostbyname(host_name); in TEST_F()
2411 EXPECT_LE(1U, GetNumQueries(dns, host_name)); in TEST_F()
2418 EXPECT_EQ(0U, GetNumQueriesForType(dns, ns_type::ns_t_a, host_name)); in TEST_F()
2425 ai_result = safe_getaddrinfo(host_name, nullptr, &hints); in TEST_F()
2428 EXPECT_EQ(1U, GetNumQueries(dns, host_name)); in TEST_F()
2433 EXPECT_EQ(0U, GetNumQueries(dns, host_name)); in TEST_F()
2515 constexpr char host_name[] = "v4only.example.com."; in TEST_F() local
2518 {host_name, ns_type::ns_t_a, "1.2.3.4"}, in TEST_F()
2538 EXPECT_EQ(3U, GetNumQueries(dns, host_name)); in TEST_F()
2553 EXPECT_EQ(2U, GetNumQueries(dns, host_name)); in TEST_F()
2562 constexpr char host_name[] = "v4only.example.com."; in TEST_F() local
2565 {host_name, ns_type::ns_t_a, "1.2.3.4"}, in TEST_F()
2590 EXPECT_LE(2U, GetNumQueries(dns, host_name)); in TEST_F()
2598 constexpr char host_name[] = "v4v6.example.com."; in TEST_F() local
2601 {host_name, ns_type::ns_t_a, "1.2.3.4"}, in TEST_F()
2602 {host_name, ns_type::ns_t_aaaa, "2001:db8::1.2.3.4"}, in TEST_F()
2617 EXPECT_LE(2U, GetNumQueries(dns, host_name)); in TEST_F()
2630 constexpr char host_name[] = "v4v6.example.com."; in TEST_F() local
2633 {host_name, ns_type::ns_t_a, "1.2.3.4"}, in TEST_F()
2648 EXPECT_LE(2U, GetNumQueries(dns, host_name)); in TEST_F()
2697 const char* host_name = testHostName.c_str(); in TEST_F() local
2698 dns.addMapping(host_name, ns_type::ns_t_a, config.addr.c_str()); in TEST_F()
2706 EXPECT_LE(2U, GetNumQueries(dns, host_name)); in TEST_F()
2714 EXPECT_LE(1U, GetNumQueries(dns, host_name)); in TEST_F()
2725 constexpr char host_name[] = "v4only.example.com."; in TEST_F() local
2729 {host_name, ns_type::ns_t_a, "1.2.3.4"}, in TEST_F()
2747 EXPECT_LE(2U, GetNumQueries(dns, host_name)); in TEST_F()
2940 constexpr char host_name[] = "localhost"; in TEST_F() local
2962 EXPECT_EQ(0U, GetNumQueries(dns, host_name)); in TEST_F()
2969 EXPECT_EQ(result_str, host_name); in TEST_F()
3131 constexpr char host_name[] = "localhost"; in TEST_F() local
3155 EXPECT_EQ(0U, GetNumQueries(dns, host_name)); in TEST_F()
3158 EXPECT_EQ(result_str, host_name); in TEST_F()
3164 constexpr char host_name[] = "ipv4only.example.com."; in TEST_F() local
3167 {host_name, ns_type::ns_t_a, "1.2.3.4"}, in TEST_F()
3182 EXPECT_LE(1U, GetNumQueries(dns, host_name)); in TEST_F()
3189 constexpr char host_name[] = "v4v6.example.com."; in TEST_F() local
3193 {host_name, ns_type::ns_t_a, "1.2.3.4"}, in TEST_F()
3194 {host_name, ns_type::ns_t_aaaa, "2001:db8::1.2.3.4"}, in TEST_F()
3209 EXPECT_LE(1U, GetNumQueries(dns, host_name)); in TEST_F()
3217 EXPECT_LE(1U, GetNumQueries(dns, host_name)); in TEST_F()
3267 const char* host_name = testHostName.c_str(); in TEST_F() local
3268 dns.addMapping(host_name, ns_type::ns_t_a, config.addr.c_str()); in TEST_F()
3271 EXPECT_LE(1U, GetNumQueries(dns, host_name)); in TEST_F()