Home
last modified time | relevance | path

Searched refs:lb_addrs (Results 1 – 6 of 6) sorted by relevance

/external/grpc-grpc/test/cpp/naming/
Daddress_sorting_test.cc171 grpc_lb_addresses* lb_addrs = grpc_lb_addresses_create(0, nullptr); in BuildLbAddrInputs() local
172 lb_addrs->addresses = in BuildLbAddrInputs()
174 lb_addrs->num_addresses = test_addrs.size(); in BuildLbAddrInputs()
176 lb_addrs->addresses[i].address = in BuildLbAddrInputs()
179 return lb_addrs; in BuildLbAddrInputs()
182 void VerifyLbAddrOutputs(grpc_lb_addresses* lb_addrs, in VerifyLbAddrOutputs() argument
184 EXPECT_EQ(lb_addrs->num_addresses, expected_addrs.size()); in VerifyLbAddrOutputs()
185 for (size_t i = 0; i < lb_addrs->num_addresses; i++) { in VerifyLbAddrOutputs()
187 grpc_sockaddr_to_string(&ip_addr_str, &lb_addrs->addresses[i].address, in VerifyLbAddrOutputs()
193 grpc_lb_addresses_destroy(lb_addrs); in VerifyLbAddrOutputs()
[all …]
/external/grpc-grpc/src/core/ext/filters/client_channel/resolver/dns/c_ares/
Dgrpc_ares_wrapper.cc90 static void log_address_sorting_list(grpc_lb_addresses* lb_addrs, in log_address_sorting_list() argument
92 for (size_t i = 0; i < lb_addrs->num_addresses; i++) { in log_address_sorting_list()
94 if (grpc_sockaddr_to_string(&addr_str, &lb_addrs->addresses[i].address, in log_address_sorting_list()
107 void grpc_cares_wrapper_address_sorting_sort(grpc_lb_addresses* lb_addrs) { in grpc_cares_wrapper_address_sorting_sort() argument
109 log_address_sorting_list(lb_addrs, "input"); in grpc_cares_wrapper_address_sorting_sort()
112 sizeof(address_sorting_sortable) * lb_addrs->num_addresses); in grpc_cares_wrapper_address_sorting_sort()
113 for (size_t i = 0; i < lb_addrs->num_addresses; i++) { in grpc_cares_wrapper_address_sorting_sort()
114 sortables[i].user_data = &lb_addrs->addresses[i]; in grpc_cares_wrapper_address_sorting_sort()
115 memcpy(&sortables[i].dest_addr.addr, &lb_addrs->addresses[i].address.addr, in grpc_cares_wrapper_address_sorting_sort()
116 lb_addrs->addresses[i].address.len); in grpc_cares_wrapper_address_sorting_sort()
[all …]
Dgrpc_ares_wrapper.h92 void grpc_cares_wrapper_address_sorting_sort(grpc_lb_addresses* lb_addrs);
/external/grpc-grpc/test/core/client_channel/resolvers/
Ddns_resolver_connectivity_test.cc66 grpc_lb_addresses** lb_addrs, bool check_grpclb, char** service_config_json, in my_dns_lookup_ares_locked() argument
77 *lb_addrs = grpc_lb_addresses_create(1, nullptr); in my_dns_lookup_ares_locked()
78 grpc_lb_addresses_set_address(*lb_addrs, 0, nullptr, 0, false, nullptr, in my_dns_lookup_ares_locked()
/external/grpc-grpc/test/core/end2end/
Dgoaway_server_test.cc104 grpc_lb_addresses** lb_addrs, bool check_grpclb, char** service_config_json, in my_dns_lookup_ares_locked() argument
108 dns_server, addr, default_port, interested_parties, on_done, lb_addrs, in my_dns_lookup_ares_locked()
118 *lb_addrs = grpc_lb_addresses_create(1, nullptr); in my_dns_lookup_ares_locked()
124 grpc_lb_addresses_set_address(*lb_addrs, 0, sa, sizeof(*sa), false, nullptr, in my_dns_lookup_ares_locked()
/external/grpc-grpc/test/core/end2end/fuzzers/
Dapi_fuzzer.cc328 grpc_lb_addresses** lb_addrs; member
343 } else if (r->lb_addrs != nullptr) { in finish_resolve()
344 grpc_lb_addresses* lb_addrs = grpc_lb_addresses_create(1, nullptr); in finish_resolve() local
345 grpc_lb_addresses_set_address(lb_addrs, 0, nullptr, 0, false, nullptr, in finish_resolve()
347 *r->lb_addrs = lb_addrs; in finish_resolve()
368 r->lb_addrs = nullptr; in my_resolve_address()
380 grpc_lb_addresses** lb_addrs, bool check_grpclb, char** service_config_json, in my_dns_lookup_ares_locked() argument
386 r->lb_addrs = lb_addrs; in my_dns_lookup_ares_locked()