Home
last modified time | relevance | path

Searched refs:ARES_SUCCESS (Results 1 – 25 of 51) sorted by relevance

123

/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/test/
Dares-test-init.cc7 #define EXPECTED_NONINIT ARES_SUCCESS
15 EXPECT_EQ(ARES_SUCCESS, ares_library_init(ARES_LIB_INIT_ALL)); in TEST()
16 EXPECT_EQ(ARES_SUCCESS, ares_library_initialized()); in TEST()
36 EXPECT_EQ(ARES_SUCCESS, ares_library_init(ARES_LIB_INIT_ALL)); in TEST()
37 EXPECT_EQ(ARES_SUCCESS, ares_library_initialized()); in TEST()
38 EXPECT_EQ(ARES_SUCCESS, ares_library_init(ARES_LIB_INIT_ALL)); in TEST()
39 EXPECT_EQ(ARES_SUCCESS, ares_library_initialized()); in TEST()
41 EXPECT_EQ(ARES_SUCCESS, ares_library_initialized()); in TEST()
47 EXPECT_EQ(ARES_SUCCESS, ares_library_init(ARES_LIB_INIT_ALL)); in TEST()
49 EXPECT_EQ(ARES_SUCCESS, ares_init(&channel)); in TEST()
[all …]
Dares-test-live.cc26 EXPECT_EQ(ARES_SUCCESS, result.status_); in VIRT_NONVIRT_TEST_F()
36 EXPECT_EQ(ARES_SUCCESS, result.status_); in VIRT_NONVIRT_TEST_F()
46 EXPECT_EQ(ARES_SUCCESS, result.status_); in VIRT_NONVIRT_TEST_F()
56 EXPECT_EQ(ARES_SUCCESS, result.status_); in VIRT_NONVIRT_TEST_F()
73 if (rc == ARES_SUCCESS) { in VIRT_NONVIRT_TEST_F()
85 EXPECT_EQ(ARES_SUCCESS, result.status_); in TEST_P()
97 if (result.status_ == ARES_SUCCESS) { in TEST_P()
111 EXPECT_EQ(ARES_SUCCESS, result.status_); in TEST_P()
125 EXPECT_EQ(ARES_SUCCESS, result.status_); in TEST_P()
150 EXPECT_EQ(ARES_SUCCESS, result.status_); in TEST_P()
[all …]
Dares-test-misc.cc20 EXPECT_EQ(ARES_SUCCESS, in TEST_F()
31 EXPECT_EQ(ARES_SUCCESS, ares_set_servers(channel_, nullptr)); in TEST_F()
45 EXPECT_EQ(ARES_SUCCESS, ares_set_servers(channel_, &server1)); in TEST_F()
57 EXPECT_EQ(ARES_SUCCESS, ares_set_servers_ports(channel_, nullptr)); in TEST_F()
75 EXPECT_EQ(ARES_SUCCESS, ares_set_servers_ports(channel_, &server1)); in TEST_F()
93 EXPECT_EQ(ARES_SUCCESS, in TEST_F()
103 EXPECT_EQ(ARES_SUCCESS, in TEST_F()
106 EXPECT_EQ(ARES_SUCCESS, in TEST_F()
120 EXPECT_EQ(ARES_SUCCESS, ares_dup(&channel2, channel_)); in TEST_F()
132 EXPECT_EQ(ARES_SUCCESS, ares_set_servers_csv(channel_, "")); in TEST_F()
[all …]
Dares-test-parse.cc20 EXPECT_EQ(ARES_SUCCESS, ares_parse_a_reply(data.data(), data.size(), in TEST_F()
54 EXPECT_EQ(ARES_SUCCESS, ares_parse_a_reply(data.data(), data.size(), in TEST_F()
91 EXPECT_EQ(ARES_SUCCESS, ares_parse_a_reply(data.data(), data.size(), in TEST_F()
137 EXPECT_EQ(ARES_SUCCESS, ares_parse_a_reply(data.data(), data.size(), in TEST_F()
173 EXPECT_EQ(ARES_SUCCESS, ares_parse_a_reply(data.data(), data.size(), in TEST_F()
209 EXPECT_EQ(ARES_SUCCESS, ares_parse_a_reply(data.data(), data.size(), in TEST_F()
Dares-test-internal.cc201 EXPECT_EQ(ARES_SUCCESS, ares_library_init(ARES_LIB_INIT_ALL)); in TEST()
264 EXPECT_EQ(ARES_SUCCESS, ares__read_line(fp, &buf, &bufsize)); in TEST_F()
266 EXPECT_EQ(ARES_SUCCESS, ares__read_line(fp, &buf, &bufsize)); in TEST_F()
268 EXPECT_EQ(ARES_SUCCESS, ares__read_line(fp, &buf, &bufsize)); in TEST_F()
287 EXPECT_EQ(ARES_SUCCESS, ares__read_line(fp, &buf, &bufsize)); in TEST_F()
289 EXPECT_EQ(ARES_SUCCESS, ares__read_line(fp, &buf, &bufsize)); in TEST_F()
291 EXPECT_EQ(ARES_SUCCESS, ares__read_line(fp, &buf, &bufsize)); in TEST_F()
293 EXPECT_EQ(ARES_SUCCESS, ares__read_line(fp, &buf, &bufsize)); in TEST_F()
313 EXPECT_EQ(ARES_SUCCESS, ares__get_hostent(fp, AF_INET, &host)); in TEST()
321 EXPECT_EQ(ARES_SUCCESS, ares__get_hostent(fp, AF_INET, &host)); in TEST()
[all …]
Dares-test-parse-a.cc43 EXPECT_EQ(ARES_SUCCESS, ares_parse_a_reply(data.data(), data.size(), in TEST_F()
57 EXPECT_EQ(ARES_SUCCESS, ares_parse_a_reply(data.data(), data.size(), in TEST_F()
143 EXPECT_EQ(ARES_SUCCESS, ares_parse_a_reply(data.data(), data.size(), in TEST_F()
160 EXPECT_EQ(ARES_SUCCESS, ares_parse_a_reply(data.data(), data.size(), in TEST_F()
188 EXPECT_EQ(ARES_SUCCESS, ares_parse_a_reply(data.data(), data.size(), in TEST_F()
198 EXPECT_EQ(ARES_SUCCESS, ares_parse_a_reply(data.data(), data.size(), in TEST_F()
219 EXPECT_EQ(ARES_SUCCESS, ares_parse_a_reply(data.data(), data.size(), in TEST_F()
241 EXPECT_EQ(ARES_SUCCESS, ares_parse_a_reply(data.data(), data.size(), in TEST_F()
Dares-test-parse-srv.cc19 EXPECT_EQ(ARES_SUCCESS, ares_parse_srv_reply(data.data(), data.size(), &srv)); in TEST_F()
53 EXPECT_EQ(ARES_SUCCESS, ares_parse_srv_reply(data.data(), data.size(), &srv)); in TEST_F()
115 EXPECT_EQ(ARES_SUCCESS, ares_parse_srv_reply(data.data(), data.size(), &srv0)); in TEST_F()
158 EXPECT_EQ(ARES_SUCCESS, ares_parse_srv_reply(data.data(), data.size(), &srv)); in TEST_F()
190 EXPECT_EQ(ARES_SUCCESS, ares_parse_srv_reply(data.data(), data.size(), &srv0)); in TEST_F()
252 EXPECT_EQ(ARES_SUCCESS, ares_parse_srv_reply(data.data(), data.size(), &srv)); in TEST_F()
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/
Dares_parse_naptr_reply.c79 if (status != ARES_SUCCESS) in ares_parse_naptr_reply()
94 if (status != ARES_SUCCESS) in ares_parse_naptr_reply()
150 if (status != ARES_SUCCESS) in ares_parse_naptr_reply()
155 if (status != ARES_SUCCESS) in ares_parse_naptr_reply()
160 if (status != ARES_SUCCESS) in ares_parse_naptr_reply()
165 if (status != ARES_SUCCESS) in ares_parse_naptr_reply()
183 if (status != ARES_SUCCESS) in ares_parse_naptr_reply()
193 return ARES_SUCCESS; in ares_parse_naptr_reply()
Dadig.c199 if (status != ARES_SUCCESS) in main()
335 if (status != ARES_SUCCESS) in main()
346 if (status != ARES_SUCCESS) in main()
413 if (status != ARES_SUCCESS) in callback()
497 if (status != ARES_SUCCESS) in display_question()
540 if (status != ARES_SUCCESS) in display_rr()
586 if (status != ARES_SUCCESS) in display_rr()
599 if (status != ARES_SUCCESS) in display_rr()
608 if (status != ARES_SUCCESS) in display_rr()
618 if (status != ARES_SUCCESS) in display_rr()
[all …]
Dares_search.c68 if (status != ARES_SUCCESS) in ares_search()
130 if (status == ARES_SUCCESS) in ares_search()
179 if (status != ARES_SUCCESS) in search_callback()
228 return ARES_SUCCESS; in cat_domain()
252 return (*s) ? ARES_SUCCESS : ARES_ENOMEM; in single_domain()
265 == ARES_SUCCESS) in single_domain()
286 return (*s) ? ARES_SUCCESS : ARES_ENOMEM; in single_domain()
291 if (status != ARES_SUCCESS && status != ARES_EOF) in single_domain()
318 return (*s) ? ARES_SUCCESS : ARES_ENOMEM; in single_domain()
322 return ARES_SUCCESS; in single_domain()
Dares_options.c37 int status = ARES_SUCCESS; in ares_get_servers()
72 if (status != ARES_SUCCESS) in ares_get_servers()
92 int status = ARES_SUCCESS; in ares_get_servers_ports()
129 if (status != ARES_SUCCESS) in ares_get_servers_ports()
150 if (ares_library_initialized() != ARES_SUCCESS) in ares_set_servers()
192 return ARES_SUCCESS; in ares_set_servers()
202 if (ares_library_initialized() != ARES_SUCCESS) in ares_set_servers_ports()
244 return ARES_SUCCESS; in ares_set_servers_ports()
257 int rv = ARES_SUCCESS; in set_servers_csv()
261 if (ares_library_initialized() != ARES_SUCCESS) in set_servers_csv()
[all …]
Dares_parse_ns_reply.c72 if ( status != ARES_SUCCESS ) in ares_parse_ns_reply()
95 if ( status != ARES_SUCCESS ) in ares_parse_ns_reply()
120 if ( status != ARES_SUCCESS ) in ares_parse_ns_reply()
151 if ( status == ARES_SUCCESS && nameservers_num == 0 ) in ares_parse_ns_reply()
155 if ( status == ARES_SUCCESS ) in ares_parse_ns_reply()
172 return ARES_SUCCESS; in ares_parse_ns_reply()
Dares_parse_ptr_reply.c73 if (status != ARES_SUCCESS) in ares_parse_ptr_reply()
94 if (status != ARES_SUCCESS) in ares_parse_ptr_reply()
120 if (status != ARES_SUCCESS) in ares_parse_ptr_reply()
156 if (status != ARES_SUCCESS) in ares_parse_ptr_reply()
174 if (status == ARES_SUCCESS && !hostname) in ares_parse_ptr_reply()
176 if (status == ARES_SUCCESS) in ares_parse_ptr_reply()
203 return ARES_SUCCESS; in ares_parse_ptr_reply()
Dares_parse_aaaa_reply.c86 if (status != ARES_SUCCESS) in ares_parse_aaaa_reply()
125 if (status != ARES_SUCCESS) in ares_parse_aaaa_reply()
173 status = ARES_SUCCESS; in ares_parse_aaaa_reply()
188 if (status != ARES_SUCCESS) in ares_parse_aaaa_reply()
210 if (status == ARES_SUCCESS && naddrs == 0 && naliases == 0) in ares_parse_aaaa_reply()
212 if (status == ARES_SUCCESS) in ares_parse_aaaa_reply()
248 return ARES_SUCCESS; in ares_parse_aaaa_reply()
Dares_parse_a_reply.c84 if (status != ARES_SUCCESS) in ares_parse_a_reply()
125 if (status != ARES_SUCCESS) in ares_parse_a_reply()
173 status = ARES_SUCCESS; in ares_parse_a_reply()
188 if (status != ARES_SUCCESS) in ares_parse_a_reply()
208 if (status == ARES_SUCCESS && naddrs == 0 && naliases == 0) in ares_parse_a_reply()
212 if (status == ARES_SUCCESS) in ares_parse_a_reply()
248 return ARES_SUCCESS; in ares_parse_a_reply()
Dares_parse_soa_reply.c66 if (status != ARES_SUCCESS) in ares_parse_soa_reply()
77 if (status != ARES_SUCCESS) in ares_parse_soa_reply()
96 if (status != ARES_SUCCESS) in ares_parse_soa_reply()
102 if (status != ARES_SUCCESS) in ares_parse_soa_reply()
120 return ARES_SUCCESS; in ares_parse_soa_reply()
Dares_library_init.c113 return ARES_SUCCESS; in ares_win32_init()
135 return ARES_SUCCESS; in ares_library_init()
142 if (res != ARES_SUCCESS) in ares_library_init()
148 return ARES_SUCCESS; in ares_library_init()
194 return ARES_SUCCESS; in ares_library_initialized()
Dares_parse_srv_reply.c79 if (status != ARES_SUCCESS) in ares_parse_srv_reply()
94 if (status != ARES_SUCCESS) in ares_parse_srv_reply()
150 if (status != ARES_SUCCESS) in ares_parse_srv_reply()
168 if (status != ARES_SUCCESS) in ares_parse_srv_reply()
178 return ARES_SUCCESS; in ares_parse_srv_reply()
Dares_parse_mx_reply.c74 if (status != ARES_SUCCESS) in ares_parse_mx_reply()
89 if (status != ARES_SUCCESS) in ares_parse_mx_reply()
141 if (status != ARES_SUCCESS) in ares_parse_mx_reply()
159 if (status != ARES_SUCCESS) in ares_parse_mx_reply()
169 return ARES_SUCCESS; in ares_parse_mx_reply()
Dares_init.c115 int status = ARES_SUCCESS; in ares_init_options()
132 if (ares_library_initialized() != ARES_SUCCESS) in ares_init_options()
197 if (status != ARES_SUCCESS) { in ares_init_options()
204 if (status != ARES_SUCCESS) in ares_init_options()
207 if (status == ARES_SUCCESS) { in ares_init_options()
209 if (status != ARES_SUCCESS) in ares_init_options()
219 if (status != ARES_SUCCESS) in ares_init_options()
225 if (status == ARES_SUCCESS) { in ares_init_options()
227 if (status == ARES_SUCCESS) in ares_init_options()
235 if (status != ARES_SUCCESS) in ares_init_options()
[all …]
Dares_parse_txt_reply.c80 if (status != ARES_SUCCESS) in ares__parse_txt_reply()
95 if (status != ARES_SUCCESS) in ares__parse_txt_reply()
175 if (status != ARES_SUCCESS) in ares__parse_txt_reply()
194 if (status != ARES_SUCCESS) in ares__parse_txt_reply()
204 return ARES_SUCCESS; in ares__parse_txt_reply()
Dares_gethostbyname.c167 if (status == ARES_SUCCESS) in next_lookup()
187 if (status == ARES_SUCCESS) in host_callback()
199 (status == ARES_SUCCESS && host && host->h_addr_list[0] == NULL)) && in host_callback()
309 callback(arg, ARES_SUCCESS, 0, &hostent); in fake_hostent()
334 if(result != ARES_SUCCESS) in ares_gethostbyname_file()
408 while ((status = ares__get_hostent(fp, family, host)) == ARES_SUCCESS) in file_lookup()
424 if (status != ARES_SUCCESS) in file_lookup()
Dahost.c73 if (status != ARES_SUCCESS) in main()
118 if (status != ARES_SUCCESS) in main()
176 if (status != ARES_SUCCESS) in callback()
Dares_query.c122 if (status != ARES_SUCCESS) in ares_query()
153 if (status != ARES_SUCCESS) in qcallback()
165 status = (ancount > 0) ? ARES_SUCCESS : ARES_ENODATA; in qcallback()
Dares_getnameinfo.c121 callback(arg, ARES_SUCCESS, 0, NULL, service); in ares_getnameinfo()
160 callback(arg, ARES_SUCCESS, 0, ipbuf, service); in ares_getnameinfo()
204 if (status == ARES_SUCCESS) in nameinfo_callback()
234 niquery->callback(niquery->arg, ARES_SUCCESS, niquery->timeouts, in nameinfo_callback()
266 niquery->callback(niquery->arg, ARES_SUCCESS, niquery->timeouts, ipbuf, in nameinfo_callback()

123