#include "src/core/ext/transport/chttp2/transport/bin_decoder.h"
#include <string.h>
#include <grpc/grpc.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include "src/core/ext/transport/chttp2/transport/bin_encoder.h"
#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/core/lib/slice/slice_internal.h"
#include "src/core/lib/slice/slice_string_helpers.h"
#include "test/core/util/test_config.h"
Go to the source code of this file.
Macros | |
#define | ENCODE_AND_DECODE(s) |
#define | EXPECT_DECODED_LENGTH(s, expected) GPR_ASSERT((expected) == base64_infer_length((s))); |
#define | EXPECT_SLICE_EQ(expected, slice) |
Functions | |
static grpc_slice | base64_decode (const char *s) |
static grpc_slice | base64_decode_with_length (const char *s, size_t output_length) |
static grpc_slice | base64_encode (const char *s) |
static size_t | base64_infer_length (const char *s) |
static void | expect_slice_eq (grpc_slice expected, grpc_slice slice, const char *debug, int line) |
int | main (int argc, char **argv) |
Variables | |
static int | all_ok = 1 |
#define ENCODE_AND_DECODE | ( | s | ) |
Definition at line 88 of file bin_decoder_test.cc.
#define EXPECT_DECODED_LENGTH | ( | s, | |
expected | |||
) | GPR_ASSERT((expected) == base64_infer_length((s))); |
Definition at line 80 of file bin_decoder_test.cc.
#define EXPECT_SLICE_EQ | ( | expected, | |
slice | |||
) |
Definition at line 83 of file bin_decoder_test.cc.
|
static |
Definition at line 58 of file bin_decoder_test.cc.
|
static |
Definition at line 65 of file bin_decoder_test.cc.
|
static |
Definition at line 51 of file bin_decoder_test.cc.
|
static |
Definition at line 73 of file bin_decoder_test.cc.
|
static |
Definition at line 36 of file bin_decoder_test.cc.
Definition at line 92 of file bin_decoder_test.cc.
|
static |
Definition at line 34 of file bin_decoder_test.cc.