Lines Matching refs:DnsProtocol
47 enum class DnsProtocol { CLEARTEXT, TLS }; enum
168 android_net_context GetNetContext(const DnsProtocol protocol) { in GetNetContext()
169 return protocol == DnsProtocol::TLS ? kNetcontextTls : kNetcontext; in GetNetContext()
183 void VerifyGetAddrInfo(const android::net::GoldTest& goldtest, const DnsProtocol protocol) { in VerifyGetAddrInfo()
208 void VerifyGetHostByName(const android::net::GoldTest& goldtest, const DnsProtocol protocol) { in VerifyGetHostByName()
223 const test::DnsTlsFrontend& tls, const DnsProtocol protocol) { in VerifyResolver()
248 if (protocol == DnsProtocol::TLS) EXPECT_TRUE(tls.waitForQueries(queries)); in VerifyResolver()
387 using GoldTestParamType = std::tuple<DnsProtocol, std::string /* filename */>;
394 "%s_%s", protocol == DnsProtocol::CLEARTEXT ? "CLEARTEXT" : "TLS", file.c_str()); in Name()
403 ::testing::Combine(::testing::Values(DnsProtocol::CLEARTEXT),
407 ::testing::Combine(::testing::Values(DnsProtocol::TLS),
413 ::testing::Combine(::testing::Values(DnsProtocol::CLEARTEXT),
417 ::testing::Combine(::testing::Values(DnsProtocol::TLS),
429 if (protocol == DnsProtocol::CLEARTEXT) { in TEST_P()
431 } else if (protocol == DnsProtocol::TLS) { in TEST_P()