Lines Matching +full:- +full:- +full:host
3 * Copyright (c) The c-ares project and its contributors
24 * SPDX-License-Identifier: MIT
26 #include "ares-test.h"
27 #include "dns-proto.h"
43 0x84, // response + query + AA + not-TC + not-RD in TEST_F()
44 0x00, // not-RA + not-Z + not-AD + not-CD + rc=NoError in TEST_F()
75 struct hostent *host = nullptr; in TEST_F() local
79 &host, info, &count)); in TEST_F()
85 ASSERT_NE(nullptr, host); in TEST_F()
87 ss << HostEnt(host); in TEST_F()
89 ares_free_hostent(host); in TEST_F()
103 0x84, // [2] response + query + AA + not-TC + not-RD in TEST_F()
104 0x00, // [3] not-RA + not-Z + not-AD + not-CD + rc=NoError in TEST_F()
125 struct hostent *host = nullptr; in TEST_F() local
129 // Invalid RR-len. in TEST_F()
133 &host, info, &count)); in TEST_F()
135 // Truncate mid-question. in TEST_F()
137 &host, info, &count)); in TEST_F()
139 // Truncate mid-answer. in TEST_F()
141 &host, info, &count)); in TEST_F()
144 EXPECT_EQ(ARES_EBADRESP, ares_parse_a_reply(data.data(), -1, in TEST_F()
145 &host, info, &count)); in TEST_F()
153 struct hostent *host = nullptr; in TEST_F() local
157 &host, info, &count)); in TEST_F()
159 EXPECT_EQ(nullptr, host); in TEST_F()
164 …// Expect success as per https://github.com/c-ares/c-ares/commit/2c63440127feed70ccefb148b8f938a2d… in TEST_F()
166 &host, info, &count)); in TEST_F()
168 EXPECT_NE(nullptr, host); in TEST_F()
170 ss << HostEnt(host); in TEST_F()
172 ares_free_hostent(host); in TEST_F()
184 struct hostent *host = nullptr; in TEST_F() local
189 &host, info, &count)); in TEST_F()
193 ares_free_hostent(host); in TEST_F()
201 struct hostent *host = nullptr; in TEST_F() local
206 &host, info, &count)); in TEST_F()
208 ASSERT_NE(nullptr, host); in TEST_F()
210 ss << HostEnt(host); in TEST_F()
212 ares_free_hostent(host); in TEST_F()
229 struct hostent *host = nullptr; in TEST_F() local
234 &host, info, &count)); in TEST_F()
239 ares_free_hostent(host); in TEST_F()
260 struct hostent *host = nullptr; in TEST_F() local
265 &host, info, &count)); in TEST_F()
269 ares_free_hostent(host); in TEST_F()
279 struct hostent *host = nullptr; in TEST_F() local
287 &host, info, &count)); in TEST_F()
288 EXPECT_EQ(nullptr, host); in TEST_F()
296 &host, info, &count)); in TEST_F()
297 ASSERT_NE(nullptr, host); in TEST_F()
299 ss << HostEnt(host); in TEST_F()
301 ares_free_hostent(host); in TEST_F()
302 host = nullptr; in TEST_F()
312 &host, info, &count)); in TEST_F()
313 EXPECT_EQ(nullptr, host); in TEST_F()
320 &host, info, &count)); in TEST_F()
321 EXPECT_EQ(nullptr, host); in TEST_F()
329 &host, info, &count)); in TEST_F()
330 EXPECT_EQ(nullptr, host); in TEST_F()
339 &host, info, &count)); in TEST_F()
340 EXPECT_EQ(nullptr, host); in TEST_F()
348 &host, info, &count)); in TEST_F()
349 EXPECT_EQ(nullptr, host); in TEST_F()
356 &host, info, &count)); in TEST_F()
357 EXPECT_EQ(nullptr, host); in TEST_F()
371 struct hostent *host = nullptr; in TEST_F() local
379 &host, info, &count)) << ii; in TEST_F()
380 EXPECT_EQ(nullptr, host); in TEST_F()