Lines Matching refs:goldtest

149         android::net::GoldTest goldtest;  in ToProto()  local
150 ret = goldtest.ParseFromString(content); in ToProto()
153 return goldtest; in ToProto()
156 void SetupMappings(const android::net::GoldTest& goldtest, test::DNSResponder& dns) { in SetupMappings() argument
157 for (const auto& m : goldtest.packet_mapping()) { in SetupMappings()
173 void VerifyAddress(const android::net::GoldTest& goldtest, const AddressType& result) { in VerifyAddress() argument
174 if (goldtest.result().return_code() != GT_EAI_NO_ERROR) { in VerifyAddress()
178 const auto& addresses = goldtest.result().addresses(); in VerifyAddress()
183 void VerifyGetAddrInfo(const android::net::GoldTest& goldtest, const DnsProtocol protocol) { in VerifyGetAddrInfo() argument
184 ASSERT_TRUE(goldtest.config().has_addrinfo()); in VerifyGetAddrInfo()
185 const auto& args = goldtest.config().addrinfo(); in VerifyGetAddrInfo()
204 ASSERT_EQ(rv, goldtest.result().return_code()); in VerifyGetAddrInfo()
205 VerifyAddress(goldtest, result); in VerifyGetAddrInfo()
208 void VerifyGetHostByName(const android::net::GoldTest& goldtest, const DnsProtocol protocol) { in VerifyGetHostByName() argument
209 ASSERT_TRUE(goldtest.config().has_hostbyname()); in VerifyGetHostByName()
210 const auto& args = goldtest.config().hostbyname(); in VerifyGetHostByName()
218 ASSERT_EQ(rv, goldtest.result().return_code()); in VerifyGetHostByName()
219 VerifyAddress(goldtest, hp); in VerifyGetHostByName()
222 void VerifyResolver(const android::net::GoldTest& goldtest, const test::DNSResponder& dns, in VerifyResolver() argument
229 switch (const auto calltype = goldtest.config().call()) { in VerifyResolver()
231 ASSERT_TRUE(goldtest.config().has_addrinfo()); in VerifyResolver()
232 ASSERT_NO_FATAL_FAILURE(VerifyGetAddrInfo(goldtest, protocol)); in VerifyResolver()
233 queries = goldtest.config().addrinfo().family() == AF_UNSPEC ? 2U : 1U; in VerifyResolver()
234 name = goldtest.config().addrinfo().host(); in VerifyResolver()
237 ASSERT_TRUE(goldtest.config().has_hostbyname()); in VerifyResolver()
238 ASSERT_NO_FATAL_FAILURE(VerifyGetHostByName(goldtest, protocol)); in VerifyResolver()
240 name = goldtest.config().hostbyname().host(); in VerifyResolver()
441 const GoldTest& goldtest = result.value(); in TEST_P() local
444 SetupMappings(goldtest, dns); in TEST_P()
447 VerifyResolver(goldtest, dns, tls, protocol); in TEST_P()