Lines Matching refs:mapping
239 for (const auto& mapping : mappings) { in SetupDNSServers() local
240 d->addMapping(mapping.entry.c_str(), ns_type::ns_t_a, mapping.ip4.c_str()); in SetupDNSServers()
241 d->addMapping(mapping.entry.c_str(), ns_type::ns_t_aaaa, mapping.ip6.c_str()); in SetupDNSServers()
384 auto& mapping = mappings[i]; in RunGetAddrInfoStressTest_Binder() local
386 int rv = getaddrinfo(mapping.host.c_str(), nullptr, nullptr, &result); in RunGetAddrInfoStressTest_Binder()
390 EXPECT_TRUE(result_str == mapping.ip4 || result_str == mapping.ip6) in RunGetAddrInfoStressTest_Binder()
391 << "result='" << result_str << "', ip4='" << mapping.ip4 in RunGetAddrInfoStressTest_Binder()
392 << "', ip6='" << mapping.ip6; in RunGetAddrInfoStressTest_Binder()
468 const Mapping& mapping = mappings[0]; in TEST_F() local
472 const hostent* result = gethostbyname(mapping.host.c_str()); in TEST_F()
474 [this, &mapping](size_t total, auto& d) { in TEST_F()
475 return total + GetNumQueriesForType(*d, ns_type::ns_t_a, mapping.entry.c_str()); in TEST_F()
482 EXPECT_EQ(mapping.ip4, ToString(result)); in TEST_F()