Home
last modified time | relevance | path

Searched refs:GPR_ARRAY_SIZE (Results 1 – 25 of 87) sorted by relevance

1234

/external/grpc-grpc/test/core/surface/
Dcompletion_queue_test.cc77 for (size_t i = 0; i < GPR_ARRAY_SIZE(completion_types); i++) { in test_no_op()
78 for (size_t j = 0; j < GPR_ARRAY_SIZE(polling_types); j++) { in test_no_op()
97 for (size_t i = 0; i < GPR_ARRAY_SIZE(completion_types); i++) { in test_pollset_conversion()
98 for (size_t j = 0; j < GPR_ARRAY_SIZE(polling_types); j++) { in test_pollset_conversion()
120 for (size_t i = 0; i < GPR_ARRAY_SIZE(polling_types); i++) { in test_wait_empty()
146 for (size_t i = 0; i < GPR_ARRAY_SIZE(polling_types); i++) { in test_cq_end_op()
181 for (size_t i = 0; i < GPR_ARRAY_SIZE(polling_types); i++) { in test_cq_tls_cache_full()
221 for (size_t i = 0; i < GPR_ARRAY_SIZE(polling_types); i++) { in test_cq_tls_cache_empty()
246 for (size_t i = 0; i < GPR_ARRAY_SIZE(polling_types); i++) { in test_shutdown_then_next_polling()
268 for (size_t i = 0; i < GPR_ARRAY_SIZE(polling_types); i++) { in test_shutdown_then_next_with_timeout()
[all …]
Dcompletion_queue_threading_test.cc80 grpc_cq_completion completions[GPR_ARRAY_SIZE(tags)]; in test_too_many_plucks()
81 grpc_core::Thread threads[GPR_ARRAY_SIZE(tags)]; in test_too_many_plucks()
82 struct thread_state thread_states[GPR_ARRAY_SIZE(tags)]; in test_too_many_plucks()
90 for (i = 0; i < GPR_ARRAY_SIZE(tags); i++) { in test_too_many_plucks()
109 for (i = 0; i < GPR_ARRAY_SIZE(tags); i++) { in test_too_many_plucks()
Dserver_test.cc162 test_bind_server_to_addrs(addrs, GPR_ARRAY_SIZE(addrs)); in main()
169 test_bind_server_to_addrs(dns_addrs, GPR_ARRAY_SIZE(dns_addrs)); in main()
/external/grpc-grpc/test/core/util/
Dcmdline_test.cc41 gpr_cmdline_parse(cl, GPR_ARRAY_SIZE(args), args); in test_simple_int()
56 gpr_cmdline_parse(cl, GPR_ARRAY_SIZE(args), args); in test_eq_int()
72 gpr_cmdline_parse(cl, GPR_ARRAY_SIZE(args), args); in test_2dash_int()
87 gpr_cmdline_parse(cl, GPR_ARRAY_SIZE(args), args); in test_2dash_eq_int()
103 gpr_cmdline_parse(cl, GPR_ARRAY_SIZE(args), args); in test_simple_string()
118 gpr_cmdline_parse(cl, GPR_ARRAY_SIZE(args), args); in test_eq_string()
134 gpr_cmdline_parse(cl, GPR_ARRAY_SIZE(args), args); in test_2dash_string()
149 gpr_cmdline_parse(cl, GPR_ARRAY_SIZE(args), args); in test_2dash_eq_string()
164 gpr_cmdline_parse(cl, GPR_ARRAY_SIZE(args), args); in test_flag_on()
179 gpr_cmdline_parse(cl, GPR_ARRAY_SIZE(args), args); in test_flag_no()
[all …]
/external/grpc-grpc/test/core/transport/
Dbyte_stream_test.cc51 for (size_t i = 0; i < GPR_ARRAY_SIZE(input); ++i) { in TEST()
62 for (size_t i = 0; i < GPR_ARRAY_SIZE(input); ++i) { in TEST()
83 for (size_t i = 0; i < GPR_ARRAY_SIZE(input); ++i) { in TEST()
127 for (size_t i = 0; i < GPR_ARRAY_SIZE(input); ++i) { in TEST()
140 for (size_t i = 0; i < GPR_ARRAY_SIZE(input); ++i) { in TEST()
162 for (size_t i = 0; i < GPR_ARRAY_SIZE(input); ++i) { in TEST()
183 for (size_t i = 0; i < GPR_ARRAY_SIZE(input); ++i) { in TEST()
204 for (size_t i = 0; i < GPR_ARRAY_SIZE(input); ++i) { in TEST()
224 for (size_t i = 0; i < GPR_ARRAY_SIZE(input); ++i) { in TEST()
/external/grpc-grpc/test/core/gpr/
Dmpscq_test.cc81 thd_args ta[GPR_ARRAY_SIZE(thds)]; in test_mt()
84 for (size_t i = 0; i < GPR_ARRAY_SIZE(thds); i++) { in test_mt()
94 while (num_done != GPR_ARRAY_SIZE(thds)) { in test_mt()
151 thd_args ta[GPR_ARRAY_SIZE(thds)]; in test_mt_multipop()
154 for (size_t i = 0; i < GPR_ARRAY_SIZE(thds); i++) { in test_mt_multipop()
163 pa.num_thds = GPR_ARRAY_SIZE(thds); in test_mt_multipop()
169 for (size_t i = 0; i < GPR_ARRAY_SIZE(pull_thds); i++) { in test_mt_multipop()
Duseful_test.cc42 GPR_ASSERT(GPR_ARRAY_SIZE(four) == 4); in main()
43 GPR_ASSERT(GPR_ARRAY_SIZE(five) == 5); in main()
/external/grpc-grpc/src/core/ext/transport/chttp2/alpn/
Dalpn.cc31 for (i = 0; i < GPR_ARRAY_SIZE(supported_versions); i++) { in grpc_chttp2_is_alpn_version_supported()
38 return GPR_ARRAY_SIZE(supported_versions); in grpc_chttp2_num_alpn_versions()
42 GPR_ASSERT(i < GPR_ARRAY_SIZE(supported_versions)); in grpc_chttp2_get_alpn_version_index()
/external/grpc-grpc/test/core/end2end/tests/
Dhpack_size.cc251 hobbits[index % GPR_ARRAY_SIZE(hobbits)][0]); in simple_request_body()
254 hobbits[index % GPR_ARRAY_SIZE(hobbits)][1]); in simple_request_body()
257 grpc_slice_from_static_string(dragons[index % GPR_ARRAY_SIZE(dragons)]); in simple_request_body()
273 op->data.send_initial_metadata.count = GPR_ARRAY_SIZE(extra_metadata); in simple_request_body()
375 for (i = 0; i < 4 * GPR_ARRAY_SIZE(hobbits); i++) { in test_size()
388 for (i = 0; i < GPR_ARRAY_SIZE(interesting_sizes); i++) { in hpack_size()
389 for (j = 0; j < GPR_ARRAY_SIZE(interesting_sizes); j++) { in hpack_size()
Dping.cc58 grpc_channel_args client_args = {GPR_ARRAY_SIZE(client_a), client_a}; in test_ping()
59 grpc_channel_args server_args = {GPR_ARRAY_SIZE(server_a), server_a}; in test_ping()
Dbad_ping.cc91 grpc_channel_args client_args = {GPR_ARRAY_SIZE(client_a), client_a}; in test_bad_ping()
92 grpc_channel_args server_args = {GPR_ARRAY_SIZE(server_a), server_a}; in test_bad_ping()
250 grpc_channel_args client_args = {GPR_ARRAY_SIZE(client_a), client_a}; in test_pings_without_data()
251 grpc_channel_args server_args = {GPR_ARRAY_SIZE(server_a), server_a}; in test_pings_without_data()
Drequest_with_flags.cc187 for (i = 0; i < GPR_ARRAY_SIZE(indices); ++i) { in request_with_flags()
198 for (i = 0; i < GPR_ARRAY_SIZE(flags); ++i) { in request_with_flags()
/external/grpc-grpc/test/core/bad_ssl/servers/
Dalpn.cc38 for (i = 0; i < GPR_ARRAY_SIZE(fake_versions); i++) { in grpc_chttp2_is_alpn_version_supported()
45 return GPR_ARRAY_SIZE(fake_versions); in grpc_chttp2_num_alpn_versions()
49 GPR_ASSERT(i < GPR_ARRAY_SIZE(fake_versions)); in grpc_chttp2_get_alpn_version_index()
/external/grpc-grpc/test/core/iomgr/
Dpollset_set_test.cc208 const int num_fds = GPR_ARRAY_SIZE(tfds); in pollset_set_test_basic()
209 const int num_ps = GPR_ARRAY_SIZE(pollsets); in pollset_set_test_basic()
210 const int num_pss = GPR_ARRAY_SIZE(pollset_sets); in pollset_set_test_basic()
310 const int num_fds = GPR_ARRAY_SIZE(tfds); in pollset_set_test_dup_fds()
312 const int num_pss = GPR_ARRAY_SIZE(pollset_sets); in pollset_set_test_dup_fds()
380 const int num_fds = GPR_ARRAY_SIZE(tfds); in pollset_set_test_empty_pollset()
381 const int num_ps = GPR_ARRAY_SIZE(pollsets); in pollset_set_test_empty_pollset()
Dcombiner_test.cc101 thd_args ta[GPR_ARRAY_SIZE(thds)]; in test_execute_many()
102 for (size_t i = 0; i < GPR_ARRAY_SIZE(thds); i++) { in test_execute_many()
109 for (size_t i = 0; i < GPR_ARRAY_SIZE(thds); i++) { in test_execute_many()
Dtcp_posix_test.cc218 grpc_channel_args args = {GPR_ARRAY_SIZE(a), a}; in read_test()
269 grpc_channel_args args = {GPR_ARRAY_SIZE(a), a}; in large_read_test()
430 grpc_channel_args args = {GPR_ARRAY_SIZE(a), a}; in write_test()
507 grpc_channel_args args = {GPR_ARRAY_SIZE(a), a}; in release_fd_test()
604 grpc_channel_args args = {GPR_ARRAY_SIZE(a), a}; in create_fixture_tcp_socketpair()
/external/grpc-grpc/test/core/security/
Dsecurity_connector_test.cc251 GPR_ASSERT(tsi_construct_peer(3 + GPR_ARRAY_SIZE(expected_sans), &peer) == in test_cn_and_multiple_sans_ssl_peer_to_auth_context()
262 for (i = 0; i < GPR_ARRAY_SIZE(expected_sans); i++) { in test_cn_and_multiple_sans_ssl_peer_to_auth_context()
271 GPR_ARRAY_SIZE(expected_sans))); in test_cn_and_multiple_sans_ssl_peer_to_auth_context()
293 GPR_ASSERT(tsi_construct_peer(5 + GPR_ARRAY_SIZE(expected_sans), &peer) == in test_cn_and_multiple_sans_and_others_ssl_peer_to_auth_context()
308 for (i = 0; i < GPR_ARRAY_SIZE(expected_sans); i++) { in test_cn_and_multiple_sans_and_others_ssl_peer_to_auth_context()
317 GPR_ARRAY_SIZE(expected_sans))); in test_cn_and_multiple_sans_and_others_ssl_peer_to_auth_context()
354 for (size_t i = 0; i < GPR_ARRAY_SIZE(addresses); i++) { in test_ipv6_address_san()
Dcredentials_test.cc395 make_request_metadata_state(GRPC_ERROR_NONE, emd, GPR_ARRAY_SIZE(emd)); in test_google_iam_creds()
409 make_request_metadata_state(GRPC_ERROR_NONE, emd, GPR_ARRAY_SIZE(emd)); in test_access_token_creds()
458 make_request_metadata_state(GRPC_ERROR_NONE, emd, GPR_ARRAY_SIZE(emd)); in test_oauth2_google_iam_composite_creds()
591 make_request_metadata_state(GRPC_ERROR_NONE, emd, GPR_ARRAY_SIZE(emd)); in test_compute_engine_creds_success()
599 make_request_metadata_state(GRPC_ERROR_NONE, emd, GPR_ARRAY_SIZE(emd)); in test_compute_engine_creds_success()
680 make_request_metadata_state(GRPC_ERROR_NONE, emd, GPR_ARRAY_SIZE(emd)); in test_refresh_token_creds_success()
688 make_request_metadata_state(GRPC_ERROR_NONE, emd, GPR_ARRAY_SIZE(emd)); in test_refresh_token_creds_success()
814 make_request_metadata_state(GRPC_ERROR_NONE, emd, GPR_ARRAY_SIZE(emd)); in test_jwt_creds_success()
821 make_request_metadata_state(GRPC_ERROR_NONE, emd, GPR_ARRAY_SIZE(emd)); in test_jwt_creds_success()
830 make_request_metadata_state(GRPC_ERROR_NONE, emd, GPR_ARRAY_SIZE(emd)); in test_jwt_creds_success()
[all …]
/external/grpc-grpc/src/core/lib/slice/
Dslice_intern.cc188 static_metadata_hash[(hash + i) % GPR_ARRAY_SIZE(static_metadata_hash)]; in grpc_slice_maybe_static_intern()
213 static_metadata_hash[(hash + i) % GPR_ARRAY_SIZE(static_metadata_hash)]; in grpc_slice_intern()
286 for (size_t i = 0; i < GPR_ARRAY_SIZE(static_metadata_hash); i++) { in grpc_slice_intern_init()
294 for (size_t j = 0; j < GPR_ARRAY_SIZE(static_metadata_hash); j++) { in grpc_slice_intern_init()
296 GPR_ARRAY_SIZE(static_metadata_hash); in grpc_slice_intern_init()
/external/grpc-grpc/test/core/compression/
Dcompression_test.cc39 for (i = 0; i < GPR_ARRAY_SIZE(valid_names); i++) { in test_compression_algorithm_parse()
48 for (i = 0; i < GPR_ARRAY_SIZE(invalid_names); i++) { in test_compression_algorithm_parse()
70 for (i = 0; i < GPR_ARRAY_SIZE(valid_algorithms); i++) { in test_compression_algorithm_name()
/external/grpc-grpc/src/core/lib/iomgr/
Dunix_sockets_posix.cc46 GPR_ARRAY_SIZE(((struct sockaddr_un*)nullptr)->sun_path) - 1) { in grpc_resolve_unix_domain_address()
51 GPR_ARRAY_SIZE(un->sun_path) - 1); in grpc_resolve_unix_domain_address()
Dev_posix.cc165 for (size_t i = 0; i < GPR_ARRAY_SIZE(g_factories); i++) { in try_engine()
185 for (size_t i = 0; i < GPR_ARRAY_SIZE(g_factories); i++) { in grpc_register_event_engine_factory()
193 for (size_t i = 0; i < GPR_ARRAY_SIZE(g_factories); i++) { in grpc_register_event_engine_factory()
/external/grpc-grpc/src/core/lib/security/security_connector/
Dload_system_roots_linux.cc60 size_t num_cert_files_ = GPR_ARRAY_SIZE(kLinuxCertFiles); in GetSystemRootCerts()
153 for (size_t i = 0; i < GPR_ARRAY_SIZE(kLinuxCertDirectories); i++) { in LoadSystemRootCerts()
/external/grpc-grpc/src/core/lib/gprpp/
Dfork.cc173 for (size_t i = 0; i < GPR_ARRAY_SIZE(truthy); i++) { in GlobalInit()
181 for (size_t i = 0; i < GPR_ARRAY_SIZE(falsey); i++) { in GlobalInit()
/external/grpc-grpc/test/core/channel/
Dchannelz_test.cc134 grpc_channel_args client_args = {GPR_ARRAY_SIZE(client_a), client_a}; in ChannelFixture()
157 grpc_channel_args server_args = {GPR_ARRAY_SIZE(server_a), server_a}; in ServerFixture()
317 grpc_channel_args client_args = {GPR_ARRAY_SIZE(client_a), client_a}; in TEST()

1234