Lines Matching refs:dns

156     void SetupMappings(const android::net::GoldTest& goldtest, test::DNSResponder& dns) {  in SetupMappings()  argument
162 dns.addMappingBinaryPacket( in SetupMappings()
222 void VerifyResolver(const android::net::GoldTest& goldtest, const test::DNSResponder& dns, in VerifyResolver() argument
247 EXPECT_EQ(GetNumQueries(dns, name.c_str()), queries); in VerifyResolver()
281 test::DNSResponder dns(test::DNSResponder::MappingType::BINARY_PACKET); in TEST_F() local
282 ASSERT_TRUE(dns.startServer()); in TEST_F()
285 dns.addMappingBinaryPacket(kHelloExampleComQueryV4, kHelloExampleComResponseV4); in TEST_F()
297 dns.removeMappingBinaryPacket(kHelloExampleComQueryV4); in TEST_F()
307 test::DNSResponder dns(test::DNSResponder::MappingType::BINARY_PACKET); in TEST_F() local
308 ASSERT_TRUE(dns.startServer()); in TEST_F()
312 dns.addMappingBinaryPacket(kHelloExampleComQueryV4, kHelloExampleComResponseV4); in TEST_F()
347 dns.addMappingBinaryPacket(kHelloExampleComQueryV4, newHelloExampleComResponseV4); in TEST_F()
358 test::DNSResponder dns; in TEST_F() local
359 dns.addMapping(kHelloExampleCom, ns_type::ns_t_a, kHelloExampleComAddrV4); in TEST_F()
360 dns.addMapping(kHelloExampleCom, ns_type::ns_t_aaaa, kHelloExampleComAddrV6); in TEST_F()
361 ASSERT_TRUE(dns.startServer()); in TEST_F()
368 dns.clearQueries(); in TEST_F()
379 EXPECT_EQ(GetNumQueries(dns, kHelloExampleCom), 2U); in TEST_F()
425 test::DNSResponder dns(test::DNSResponder::MappingType::BINARY_PACKET); in TEST_P() local
426 ASSERT_TRUE(dns.startServer()); in TEST_P()
444 SetupMappings(goldtest, dns); in TEST_P()
447 VerifyResolver(goldtest, dns, tls, protocol); in TEST_P()