Macros | Functions | Variables
bin_encoder_test.cc File Reference
#include "src/core/ext/transport/chttp2/transport/bin_encoder.h"
#include <string.h>
#include <grpc/grpc.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include "src/core/lib/slice/slice_string_helpers.h"
#include "test/core/util/test_config.h"
Include dependency graph for bin_encoder_test.cc:

Go to the source code of this file.

Macros

#define EXPECT_COMBINED_EQUIV(x)   expect_combined_equiv(x, sizeof(x) - 1, __LINE__)
 
#define EXPECT_SLICE_EQ(expected, slice)
 

Functions

static grpc_slice B64 (const char *s)
 
static void expect_binary_header (const char *hdr, int binary)
 
static void expect_combined_equiv (const char *s, size_t len, int line)
 
static void expect_slice_eq (grpc_slice expected, grpc_slice slice, const char *debug, int line)
 
static grpc_slice HUFF (const char *s)
 
int main (int argc, char **argv)
 

Variables

static int all_ok = 1
 

Macro Definition Documentation

◆ EXPECT_COMBINED_EQUIV

#define EXPECT_COMBINED_EQUIV (   x)    expect_combined_equiv(x, sizeof(x) - 1, __LINE__)

Definition at line 92 of file bin_encoder_test.cc.

◆ EXPECT_SLICE_EQ

#define EXPECT_SLICE_EQ (   expected,
  slice 
)
Value:
grpc_slice_from_copied_buffer(expected, sizeof(expected) - 1), slice, \
#slice, __LINE__);

Definition at line 65 of file bin_encoder_test.cc.

Function Documentation

◆ B64()

static grpc_slice B64 ( const char *  s)
static

Definition at line 51 of file bin_encoder_test.cc.

◆ expect_binary_header()

static void expect_binary_header ( const char *  hdr,
int  binary 
)
static

Definition at line 95 of file bin_encoder_test.cc.

◆ expect_combined_equiv()

static void expect_combined_equiv ( const char *  s,
size_t  len,
int  line 
)
static

Definition at line 70 of file bin_encoder_test.cc.

◆ expect_slice_eq()

static void expect_slice_eq ( grpc_slice  expected,
grpc_slice  slice,
const char *  debug,
int  line 
)
static

Definition at line 36 of file bin_encoder_test.cc.

◆ HUFF()

static grpc_slice HUFF ( const char *  s)
static

Definition at line 58 of file bin_encoder_test.cc.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 103 of file bin_encoder_test.cc.

Variable Documentation

◆ all_ok

int all_ok = 1
static

Definition at line 34 of file bin_encoder_test.cc.

expect_slice_eq
static void expect_slice_eq(grpc_slice expected, grpc_slice slice, const char *debug, int line)
Definition: bin_encoder_test.cc:36
slice
grpc_slice slice
Definition: src/core/lib/surface/server.cc:467
grpc_slice_from_copied_buffer
GPRAPI grpc_slice grpc_slice_from_copied_buffer(const char *source, size_t len)
Definition: slice/slice.cc:170


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