|
|
|
@ -37,6 +37,7 @@ |
|
|
|
|
#include <string.h> |
|
|
|
|
#include <unistd.h> |
|
|
|
|
|
|
|
|
|
#include "src/core/support/string.h" |
|
|
|
|
#include <grpc/byte_buffer.h> |
|
|
|
|
#include <grpc/support/alloc.h> |
|
|
|
|
#include <grpc/support/log.h> |
|
|
|
@ -145,7 +146,7 @@ static void test_body(grpc_end2end_test_fixture f) { |
|
|
|
|
static void test_invoke_request_with_census( |
|
|
|
|
grpc_end2end_test_config config, const char *name, |
|
|
|
|
void (*body)(grpc_end2end_test_fixture f)) { |
|
|
|
|
char fullname[64]; |
|
|
|
|
char *fullname; |
|
|
|
|
grpc_end2end_test_fixture f; |
|
|
|
|
grpc_arg client_arg, server_arg; |
|
|
|
|
grpc_channel_args client_args, server_args; |
|
|
|
@ -163,11 +164,12 @@ static void test_invoke_request_with_census( |
|
|
|
|
server_args.num_args = 1; |
|
|
|
|
server_args.args = &server_arg; |
|
|
|
|
|
|
|
|
|
sprintf(fullname, "%s/%s", __FUNCTION__, name); |
|
|
|
|
gpr_asprintf(&fullname, "%s/%s", __FUNCTION__, name); |
|
|
|
|
f = begin_test(config, fullname, &client_args, &server_args); |
|
|
|
|
body(f); |
|
|
|
|
end_test(&f); |
|
|
|
|
config.tear_down_data(&f); |
|
|
|
|
gpr_free(fullname); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void grpc_end2end_tests(grpc_end2end_test_config config) { |
|
|
|
|