Macros | Functions
percent_encoding_test.cc File Reference
#include "src/core/lib/slice/percent_encoding.h"
#include <grpc/grpc.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include "src/core/lib/gpr/string.h"
#include "src/core/lib/slice/slice_string_helpers.h"
#include "test/core/util/test_config.h"
Include dependency graph for percent_encoding_test.cc:

Go to the source code of this file.

Macros

#define TEST_NONCONFORMANT_VECTOR(encoded, permissive_unencoded)
 
#define TEST_VECTOR(raw, encoded, dict)   test_vector(raw, sizeof(raw) - 1, encoded, sizeof(encoded) - 1, dict)
 

Functions

int main (int argc, char **argv)
 
static void test_nonconformant_vector (const char *encoded, size_t encoded_length, const char *permissive_unencoded, size_t permissive_unencoded_length)
 
static void test_vector (const char *raw, size_t raw_length, const char *encoded, size_t encoded_length, grpc_core::PercentEncodingType type)
 

Macro Definition Documentation

◆ TEST_NONCONFORMANT_VECTOR

#define TEST_NONCONFORMANT_VECTOR (   encoded,
  permissive_unencoded 
)
Value:
test_nonconformant_vector(encoded, sizeof(encoded) - 1, \
permissive_unencoded, \
sizeof(permissive_unencoded) - 1)

Definition at line 32 of file percent_encoding_test.cc.

◆ TEST_VECTOR

#define TEST_VECTOR (   raw,
  encoded,
  dict 
)    test_vector(raw, sizeof(raw) - 1, encoded, sizeof(encoded) - 1, dict)

Definition at line 29 of file percent_encoding_test.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 99 of file percent_encoding_test.cc.

◆ test_nonconformant_vector()

static void test_nonconformant_vector ( const char *  encoded,
size_t  encoded_length,
const char *  permissive_unencoded,
size_t  permissive_unencoded_length 
)
static

Definition at line 69 of file percent_encoding_test.cc.

◆ test_vector()

static void test_vector ( const char *  raw,
size_t  raw_length,
const char *  encoded,
size_t  encoded_length,
grpc_core::PercentEncodingType  type 
)
static

Definition at line 37 of file percent_encoding_test.cc.

test_nonconformant_vector
static void test_nonconformant_vector(const char *encoded, size_t encoded_length, const char *permissive_unencoded, size_t permissive_unencoded_length)
Definition: percent_encoding_test.cc:69


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:25