Home
last modified time | relevance | path

Searched refs:server_args (Results 1 – 25 of 119) sorted by relevance

12345

/external/grpc-grpc/src/ruby/spec/support/
Dhelpers.rb90 def new_core_server_for_testing(server_args) argument
91 server_args.nil? && server_args = {}
92 update_server_args_hash(server_args)
93 GRPC::Core::Server.new(server_args)
96 def update_server_args_hash(server_args) argument
98 unless server_args[so_reuseport_arg].nil?
103 server_args[so_reuseport_arg] = 0
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_xdping.sh60 server_args="$2"
62 echo "Test client args '$client_args'; server args '$server_args'"
65 if [[ -n "$server_args" ]]; then
66 ip netns exec $TARGET_NS ./xdping $server_args &
77 echo "Test client args '$client_args'; server args '$server_args': PASS"
88 for server_args in "" "-I veth0 -s -S" ; do
91 test "$client_args" "$server_args"
95 test "$client_args" "$server_args"
/external/grpc-grpc/test/core/end2end/fixtures/
Dh2_ssl_proxy.cc43 grpc_channel_args* server_args) { in create_proxy_server() argument
44 grpc_server* s = grpc_server_create(server_args, nullptr); in create_proxy_server()
79 grpc_channel_args* client_args, grpc_channel_args* server_args) { in chttp2_create_fixture_secure_fullstack() argument
86 ffd->proxy = grpc_end2end_proxy_create(&proxy_def, client_args, server_args); in chttp2_create_fixture_secure_fullstack()
116 grpc_end2end_test_fixture* f, grpc_channel_args* server_args, in chttp2_init_server_secure_fullstack() argument
123 f->server = grpc_server_create(server_args, nullptr); in chttp2_init_server_secure_fullstack()
155 static int fail_server_auth_check(grpc_channel_args* server_args) { in fail_server_auth_check() argument
157 if (server_args == nullptr) return 0; in fail_server_auth_check()
158 for (i = 0; i < server_args->num_args; i++) { in fail_server_auth_check()
159 if (strcmp(server_args->args[i].key, FAIL_AUTH_CHECK_SERVER_ARG_NAME) == in fail_server_auth_check()
[all …]
Dh2_fakesec.cc39 grpc_channel_args* client_args, grpc_channel_args* server_args) { in chttp2_create_fixture_secure_fullstack() argument
76 grpc_end2end_test_fixture* f, grpc_channel_args* server_args, in chttp2_init_server_secure_fullstack() argument
83 f->server = grpc_server_create(server_args, nullptr); in chttp2_init_server_secure_fullstack()
105 static int fail_server_auth_check(grpc_channel_args* server_args) { in fail_server_auth_check() argument
107 if (server_args == nullptr) return 0; in fail_server_auth_check()
108 for (i = 0; i < server_args->num_args; i++) { in fail_server_auth_check()
109 if (strcmp(server_args->args[i].key, FAIL_AUTH_CHECK_SERVER_ARG_NAME) == in fail_server_auth_check()
118 grpc_end2end_test_fixture* f, grpc_channel_args* server_args) { in chttp2_init_server_fake_secure_fullstack() argument
121 if (fail_server_auth_check(server_args)) { in chttp2_init_server_fake_secure_fullstack()
127 chttp2_init_server_secure_fullstack(f, server_args, fake_ts_creds); in chttp2_init_server_fake_secure_fullstack()
Dh2_ssl.cc42 grpc_channel_args* client_args, grpc_channel_args* server_args) { in chttp2_create_fixture_secure_fullstack() argument
79 grpc_end2end_test_fixture* f, grpc_channel_args* server_args, in chttp2_init_server_secure_fullstack() argument
86 f->server = grpc_server_create(server_args, nullptr); in chttp2_init_server_secure_fullstack()
115 static int fail_server_auth_check(grpc_channel_args* server_args) { in fail_server_auth_check() argument
117 if (server_args == nullptr) return 0; in fail_server_auth_check()
118 for (i = 0; i < server_args->num_args; i++) { in fail_server_auth_check()
119 if (strcmp(server_args->args[i].key, FAIL_AUTH_CHECK_SERVER_ARG_NAME) == in fail_server_auth_check()
128 grpc_end2end_test_fixture* f, grpc_channel_args* server_args) { in chttp2_init_server_simple_ssl_secure_fullstack() argument
133 if (fail_server_auth_check(server_args)) { in chttp2_init_server_simple_ssl_secure_fullstack()
138 chttp2_init_server_secure_fullstack(f, server_args, ssl_creds); in chttp2_init_server_simple_ssl_secure_fullstack()
Dh2_local.cc49 grpc_channel_args* client_args, grpc_channel_args* server_args) { in chttp2_create_fixture_fullstack() argument
81 static bool fail_server_auth_check(grpc_channel_args* server_args) { in fail_server_auth_check() argument
83 if (server_args == nullptr) return 0; in fail_server_auth_check()
84 for (i = 0; i < server_args->num_args; i++) { in fail_server_auth_check()
85 if (strcmp(server_args->args[i].key, FAIL_AUTH_CHECK_SERVER_ARG_NAME) == in fail_server_auth_check()
102 grpc_channel_args* server_args) { in chttp2_init_server_fullstack() argument
109 f->server = grpc_server_create(server_args, nullptr); in chttp2_init_server_fullstack()
111 if (fail_server_auth_check(server_args)) { in chttp2_init_server_fullstack()
Dh2_oauth2.cc94 grpc_channel_args* client_args, grpc_channel_args* server_args) { in chttp2_create_fixture_secure_fullstack() argument
123 grpc_end2end_test_fixture* f, grpc_channel_args* server_args, in chttp2_init_server_secure_fullstack() argument
130 f->server = grpc_server_create(server_args, nullptr); in chttp2_init_server_secure_fullstack()
167 static int fail_server_auth_check(grpc_channel_args* server_args) { in fail_server_auth_check() argument
169 if (server_args == nullptr) return 0; in fail_server_auth_check()
170 for (i = 0; i < server_args->num_args; i++) { in fail_server_auth_check()
171 if (strcmp(server_args->args[i].key, FAIL_AUTH_CHECK_SERVER_ARG_NAME) == in fail_server_auth_check()
201 grpc_end2end_test_fixture* f, grpc_channel_args* server_args) { in chttp2_init_server_simple_ssl_secure_fullstack() argument
207 ssl_creds, test_processor_create(fail_server_auth_check(server_args))); in chttp2_init_server_simple_ssl_secure_fullstack()
208 chttp2_init_server_secure_fullstack(f, server_args, ssl_creds); in chttp2_init_server_simple_ssl_secure_fullstack()
Dh2_census.cc43 grpc_channel_args* client_args, grpc_channel_args* server_args) { in chttp2_create_fixture_fullstack() argument
83 grpc_channel_args* server_args) { in chttp2_init_server_fullstack() argument
90 server_args = grpc_channel_args_copy_and_add(server_args, &arg, 1); in chttp2_init_server_fullstack()
91 f->server = grpc_server_create(server_args, nullptr); in chttp2_init_server_fullstack()
94 grpc_channel_args_destroy(server_args); in chttp2_init_server_fullstack()
Dh2_proxy.cc43 grpc_channel_args* server_args) { in create_proxy_server() argument
44 grpc_server* s = grpc_server_create(server_args, nullptr); in create_proxy_server()
68 grpc_channel_args* client_args, grpc_channel_args* server_args) { in chttp2_create_fixture_fullstack() argument
74 ffd->proxy = grpc_end2end_proxy_create(&proxy_def, client_args, server_args); in chttp2_create_fixture_fullstack()
93 grpc_channel_args* server_args) { in chttp2_init_server_fullstack() argument
99 f->server = grpc_server_create(server_args, nullptr); in chttp2_init_server_fullstack()
Dh2_sockpair.cc72 grpc_channel_args* client_args, grpc_channel_args* server_args) { in chttp2_create_fixture_socketpair() argument
102 grpc_channel_args* server_args) { in chttp2_init_server_socketpair() argument
107 f->server = grpc_server_create(server_args, nullptr); in chttp2_init_server_socketpair()
110 transport = grpc_create_chttp2_transport(server_args, sfd->server, false); in chttp2_init_server_socketpair()
Dinproc.cc42 grpc_channel_args* client_args, grpc_channel_args* server_args) { in inproc_create_fixture() argument
62 grpc_channel_args* server_args) { in inproc_init_server() argument
66 f->server = grpc_server_create(server_args, nullptr); in inproc_init_server()
Dh2_sockpair+trace.cc77 grpc_channel_args* client_args, grpc_channel_args* server_args) { in chttp2_create_fixture_socketpair() argument
107 grpc_channel_args* server_args) { in chttp2_init_server_socketpair() argument
112 f->server = grpc_server_create(server_args, nullptr); in chttp2_init_server_socketpair()
115 transport = grpc_create_chttp2_transport(server_args, sfd->server, false); in chttp2_init_server_socketpair()
Dh2_sockpair_1byte.cc72 grpc_channel_args* client_args, grpc_channel_args* server_args) { in chttp2_create_fixture_socketpair() argument
113 grpc_channel_args* server_args) { in chttp2_init_server_socketpair() argument
118 f->server = grpc_server_create(server_args, nullptr); in chttp2_init_server_socketpair()
121 transport = grpc_create_chttp2_transport(server_args, sfd->server, false); in chttp2_init_server_socketpair()
Dh2_uds.cc48 grpc_channel_args* client_args, grpc_channel_args* server_args) { in chttp2_create_fixture_fullstack() argument
73 grpc_channel_args* server_args) { in chttp2_init_server_fullstack() argument
79 f->server = grpc_server_create(server_args, nullptr); in chttp2_init_server_fullstack()
Dh2_full.cc42 grpc_channel_args* client_args, grpc_channel_args* server_args) { in chttp2_create_fixture_fullstack() argument
68 grpc_channel_args* server_args) { in chttp2_init_server_fullstack() argument
74 f->server = grpc_server_create(server_args, nullptr); in chttp2_init_server_fullstack()
/external/grpc-grpc/test/core/network_benchmarks/
Dlow_level_ping_pong.cc577 thread_args* server_args) { in run_benchmark() argument
580 rv = create_socket(socket_type, &client_args->fds, &server_args->fds); in run_benchmark()
588 grpc_core::Thread server("server_thread", server_thread_wrap, server_args); in run_benchmark()
605 thread_args* server_args = in run_all_benchmarks() local
614 server_args->read_bytes = strategy->read_strategy; in run_all_benchmarks()
615 server_args->write_bytes = blocking_write_bytes; in run_all_benchmarks()
616 server_args->setup = strategy->setup; in run_all_benchmarks()
617 server_args->msg_size = msg_size; in run_all_benchmarks()
618 server_args->strategy_name = strategy->name; in run_all_benchmarks()
619 error = run_benchmark(socket_type, client_args, server_args); in run_all_benchmarks()
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/ext/transport/chttp2/server/insecure/
Dserver_chttp2_posix.cc46 const grpc_channel_args* server_args = core_server->channel_args(); in grpc_server_add_insecure_channel_from_fd() local
49 grpc_fd_create(fd, name.c_str(), true), server_args, name.c_str()); in grpc_server_add_insecure_channel_from_fd()
52 server_args, server_endpoint, false /* is_client */); in grpc_server_add_insecure_channel_from_fd()
55 core_server->SetupTransport(transport, nullptr, server_args, nullptr); in grpc_server_add_insecure_channel_from_fd()
/external/grpc-grpc/test/core/end2end/
Dh2_ssl_cert_test.cc48 grpc_channel_args* client_args, grpc_channel_args* server_args) { in chttp2_create_fixture_secure_fullstack() argument
83 grpc_end2end_test_fixture* f, grpc_channel_args* server_args, in chttp2_init_server_secure_fullstack() argument
90 f->server = grpc_server_create(server_args, nullptr); in chttp2_init_server_secure_fullstack()
105 static int fail_server_auth_check(grpc_channel_args* server_args) { in fail_server_auth_check() argument
107 if (server_args == nullptr) return 0; in fail_server_auth_check()
108 for (i = 0; i < server_args->num_args; i++) { in fail_server_auth_check()
109 if (strcmp(server_args->args[i].key, FAIL_AUTH_CHECK_SERVER_ARG_NAME) == in fail_server_auth_check()
122 grpc_end2end_test_fixture * f, grpc_channel_args * server_args) { \
128 if (fail_server_auth_check(server_args)) { \
134 chttp2_init_server_secure_fullstack(f, server_args, ssl_creds); \
/external/grpc-grpc/test/core/end2end/tests/
Dmax_message_length.cc42 grpc_channel_args* server_args) { in begin_test() argument
49 config.init_server(&f, server_args); in begin_test()
129 grpc_channel_args* server_args = nullptr; in test_max_message_length_on_request() local
169 server_args = args; in test_max_message_length_on_request()
174 server_args); in test_max_message_length_on_request()
178 if (server_args != nullptr) grpc_channel_args_destroy(server_args); in test_max_message_length_on_request()
320 grpc_channel_args* server_args = nullptr; in test_max_message_length_on_response() local
356 server_args = args; in test_max_message_length_on_response()
363 server_args); in test_max_message_length_on_response()
367 if (server_args != nullptr) grpc_channel_args_destroy(server_args); in test_max_message_length_on_response()
Dstream_compression_compressed_payload.cc43 grpc_channel_args* server_args) { in begin_test() argument
46 f = config.create_fixture(client_args, server_args); in begin_test()
47 config.init_server(&f, server_args); in begin_test()
105 grpc_channel_args* server_args; in request_for_disabled_algorithm() local
128 server_args = in request_for_disabled_algorithm()
132 server_args = grpc_channel_args_compression_algorithm_set_state( in request_for_disabled_algorithm()
133 &server_args, algorithm_to_disable, false); in request_for_disabled_algorithm()
136 f = begin_test(config, test_name, client_args, server_args); in request_for_disabled_algorithm()
259 grpc_channel_args_destroy(server_args); in request_for_disabled_algorithm()
283 grpc_channel_args* server_args; in request_with_payload_template() local
[all …]
Dhpack_size.cc180 grpc_channel_args* server_args) { in begin_test() argument
183 f = config.create_fixture(client_args, server_args); in begin_test()
184 config.init_server(&f, server_args); in begin_test()
355 grpc_channel_args server_args; in test_size() local
363 server_args.num_args = 1; in test_size()
364 server_args.args = &server_arg; in test_size()
374 decode_size != 4096 ? &server_args : nullptr); in test_size()
Dcompressed_payload.cc43 grpc_channel_args* server_args) { in begin_test() argument
46 f = config.create_fixture(client_args, server_args); in begin_test()
47 config.init_server(&f, server_args); in begin_test()
105 grpc_channel_args* server_args; in request_for_disabled_algorithm() local
128 server_args = in request_for_disabled_algorithm()
132 server_args = grpc_channel_args_compression_algorithm_set_state( in request_for_disabled_algorithm()
133 &server_args, algorithm_to_disable, false); in request_for_disabled_algorithm()
136 f = begin_test(config, test_name, client_args, server_args); in request_for_disabled_algorithm()
259 grpc_channel_args_destroy(server_args); in request_for_disabled_algorithm()
281 grpc_channel_args* server_args; in request_with_payload_template() local
[all …]
Dno_op.cc35 grpc_channel_args* server_args) { in begin_test() argument
38 f = config.create_fixture(client_args, server_args); in begin_test()
39 config.init_server(&f, server_args); in begin_test()
/external/grpc-grpc/src/core/ext/transport/chttp2/server/insecure/
Dserver_chttp2_posix.cc52 const grpc_channel_args* server_args = grpc_server_get_channel_args(server); in grpc_server_add_insecure_channel_from_fd() local
54 server_args, server_endpoint, false /* is_client */); in grpc_server_add_insecure_channel_from_fd()
64 grpc_server_setup_transport(server, transport, nullptr, server_args); in grpc_server_add_insecure_channel_from_fd()
/external/grpc-grpc/src/objective-c/tests/CoreCronetEnd2EndTests/
DCoreCronetEnd2EndTests.mm57 grpc_channel_args *client_args, grpc_channel_args *server_args) {
95 grpc_channel_args *server_args,
101 f->server = grpc_server_create(server_args, NULL);
124 static int fail_server_auth_check(grpc_channel_args *server_args) {
126 if (server_args == NULL) return 0;
127 for (i = 0; i < server_args->num_args; i++) {
128 if (strcmp(server_args->args[i].key, FAIL_AUTH_CHECK_SERVER_ARG_NAME) == 0) {
136 grpc_channel_args *server_args) {
140 if (fail_server_auth_check(server_args)) {
144 chttp2_init_server_secure_fullstack(f, server_args, ssl_creds);

12345