Go to the documentation of this file.
32 #define LOG_TEST_NAME(x) gpr_log(GPR_INFO, "%s", x)
35 static const char* src1 =
"hello world";
60 "01 23 45 67 89 ab cd ef");
121 for (
i = 1;
i < 100;
i++) {
125 for (j = 0; j <
i - 2; j++) {
135 const char* parts[4] = {
"one",
"two",
"three",
"four"};
142 GPR_ASSERT(0 == strcmp(
"onetwothreefour", joined));
155 const char* parts[4] = {
"one",
"two",
"three",
"four"};
162 GPR_ASSERT(0 == strcmp(
"one, two, three, four", joined));
167 GPR_ASSERT(0 == strcmp(
"onetwothreefour", joined));
298 int main(
int argc,
char** argv) {
static void test_dump(void)
int main(int argc, char **argv)
static void test_stricmp(void)
static void test_pu32_fail(const char *s)
static void test_asprintf(void)
GPRAPI void gpr_free(void *ptr)
static void expect_dump(const char *buf, size_t len, uint32_t flags, const char *result)
static void test_strjoin_sep(void)
static void test_strdup(void)
OPENSSL_EXPORT pem_password_cb void * u
bool gpr_parse_bool_value(const char *value, bool *dst)
static void test_int64toa()
static void test_memrchr(void)
char * gpr_strjoin(const char **strs, size_t nstrs, size_t *final_length)
#define GPR_LTOA_MIN_BUFSIZE
char * gpr_leftpad(const char *str, char flag, size_t length)
char * gpr_strjoin_sep(const char **strs, size_t nstrs, const char *sep, size_t *final_length)
void * gpr_memrchr(const void *s, int c, size_t n)
int gpr_stricmp(const char *a, const char *b)
GPRAPI int gpr_asprintf(char **strp, const char *format,...) GPR_PRINT_FORMAT_CHECK(2
#define GPR_INT64TOA_MIN_BUFSIZE
static void test_parse_uint32(void)
int gpr_parse_bytes_to_uint32(const char *buf, size_t len, uint32_t *result)
UniquePtr< SSL_SESSION > ret
static void test_pu32_succeed(const char *s, uint32_t want)
static void test_parse_bool_value(void)
int int64_ttoa(int64_t value, char *output)
static void test_strjoin(void)
GPRAPI char * gpr_strdup(const char *src)
char * gpr_dump(const char *buf, size_t len, uint32_t flags)
static void test_leftpad()
int gpr_ltoa(long value, char *output)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:25