Lines Matching refs:td
2568 for (auto& td : kTestData) { in TEST_F() local
2569 SCOPED_TRACE(td.dname); in TEST_F()
2570 td.fd = resNetworkQuery(TEST_NETID, td.dname, ns_c_in, td.queryType, 0); in TEST_F()
2571 EXPECT_TRUE(td.fd != -1); in TEST_F()
2575 for (const auto& td : kTestData) { in TEST_F() local
2578 SCOPED_TRACE(td.dname); in TEST_F()
2579 int res = getAsyncResponse(td.fd, &rcode, buf, MAXPACKET); in TEST_F()
2581 EXPECT_EQ(rcode, td.expectRcode); in TEST_F()
2680 auto& td = kTestData[i]; in TEST_F() local
2681 SCOPED_TRACE(td.cmd); in TEST_F()
2682 ssize_t rc = TEMP_FAILURE_RETRY(write(fd, td.cmd.c_str(), td.cmd.size())); in TEST_F()
2683 EXPECT_EQ(rc, static_cast<ssize_t>(td.cmd.size())); in TEST_F()
2688 EXPECT_EQ(static_cast<int>(ntohl(tmp)), td.expectErr); in TEST_F()
4522 for (auto& td : kTestData) { in TEST_F() local
4523 SCOPED_TRACE(td.hname); in TEST_F()
4530 EXPECT_EQ(EAI_NODATA, getaddrinfo(td.hname, nullptr, &hints, &result)); in TEST_F()
4531 ExpectDnsEvent(INetdEventListener::EVENT_GETADDRINFO, td.expectedErrorCode, td.hname, in TEST_F()
4534 ScopedAddrinfo result = safe_getaddrinfo(td.hname, nullptr, &hints); in TEST_F()