Go to the documentation of this file.
43 char* lslash = strrchr(me,
'/');
44 std::vector<char*>
args;
48 if (lslash !=
nullptr) {
50 if (
static_cast<unsigned>(lslash - me) >= (
sizeof(
"http") - 1) &&
51 strncmp(me + (lslash - me) -
sizeof(
"http") + 1,
"http",
52 sizeof(
"http") - 1) == 0) {
53 lslash = me + (lslash - me) -
sizeof(
"http");
55 root =
static_cast<char*
>(
56 gpr_malloc(
static_cast<size_t>(lslash - me +
sizeof(
"/../.."))));
57 memcpy(
root, me,
static_cast<size_t>(lslash - me));
58 memcpy(
root + (lslash - me),
"/../..",
sizeof(
"/../.."));
66 char* python_wrapper_arg;
67 char* test_server_arg;
68 gpr_asprintf(&python_wrapper_arg,
"%s/test/core/http/python_wrapper.sh",
71 args.push_back(python_wrapper_arg);
72 args.push_back(test_server_arg);
76 char* server_port_str;
78 args.push_back(server_port_str);
88 for (
size_t i = 0;
i <
args.size();
i++) {
95 for (
size_t i = 0;
i <
args.size();
i++) {
GPRAPI void gpr_free(void *ptr)
GPRAPI void * gpr_malloc(size_t size)
std::unique_ptr< Server > server
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
RefCountedPtr< grpc_tls_certificate_provider > root
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPR_PRINT_FORMAT_CHECK(4
GPRAPI void gpr_sleep_until(gpr_timespec until)
GPRAPI int gpr_asprintf(char **strp, const char *format,...) GPR_PRINT_FORMAT_CHECK(2
int grpc_pick_unused_port_or_die(void)
GPRAPI gpr_timespec gpr_now(gpr_clock_type clock)
#define GPR_GLOBAL_CONFIG_SET(name, value)
struct gpr_subprocess gpr_subprocess
GPRAPI gpr_timespec gpr_time_add(gpr_timespec a, gpr_timespec b)
gpr_subprocess * gpr_subprocess_create(int argc, const char **argv)
GPRAPI char * gpr_strdup(const char *src)
HttpRequestTestServer StartHttpRequestTestServer(int argc, char **argv, bool use_ssl)
GPRAPI gpr_timespec gpr_time_from_seconds(int64_t s, gpr_clock_type clock_type)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:02