#include <grpc/support/port_platform.h>
#include "src/core/lib/slice/slice.h"
#include <inttypes.h>
#include <string.h>
#include <random>
#include <gtest/gtest.h>
#include "absl/memory/memory.h"
#include <grpc/grpc.h>
#include <grpc/slice.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include "src/core/lib/gprpp/memory.h"
#include "src/core/lib/slice/slice_internal.h"
#include "test/core/util/build.h"
Go to the source code of this file.
|
static void | check_head_tail (grpc_slice slice, grpc_slice head, grpc_slice tail) |
|
static void | do_nothing (void *) |
|
static void | do_nothing_with_len_1 (void *, size_t len) |
|
| INSTANTIATE_TEST_SUITE_P (GrpcSliceSizedTest, GrpcSliceSizedTest, ::testing::ValuesIn([] { std::vector< size_t > out;for(size_t i=0;i< 128;i++) { out.push_back(i);} return out;}()), [](const testing::TestParamInfo< size_t > &info) { return std::to_string(info.param);}) |
|
int | main (int argc, char **argv) |
|
static void | set_mark (void *p) |
|
| TEST (GrpcSliceTest, MallocReturnsSomethingSensible) |
|
| TEST (GrpcSliceTest, MovedStringSlice) |
|
| TEST (GrpcSliceTest, SliceFromCopiedString) |
|
| TEST (GrpcSliceTest, SliceNewReturnsSomethingSensible) |
|
| TEST (GrpcSliceTest, SliceNewWithLenReturnsSomethingSensible) |
|
| TEST (GrpcSliceTest, SliceNewWithUserData) |
|
| TEST (GrpcSliceTest, StringViewFromSlice) |
|
| TEST_P (GrpcSliceSizedTest, SliceSplitHeadWorks) |
|
| TEST_P (GrpcSliceSizedTest, SliceSplitTailWorks) |
|
| TEST_P (GrpcSliceSizedTest, SliceSubWorks) |
|
◆ check_head_tail()
◆ do_nothing()
static void do_nothing |
( |
void * |
| ) |
|
|
static |
◆ do_nothing_with_len_1()
static void do_nothing_with_len_1 |
( |
void * |
, |
|
|
size_t |
len |
|
) |
| |
|
static |
◆ INSTANTIATE_TEST_SUITE_P()
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ set_mark()
static void set_mark |
( |
void * |
p | ) |
|
|
static |
◆ TEST() [1/7]
TEST |
( |
GrpcSliceTest |
, |
|
|
MallocReturnsSomethingSensible |
|
|
) |
| |
◆ TEST() [2/7]
TEST |
( |
GrpcSliceTest |
, |
|
|
MovedStringSlice |
|
|
) |
| |
◆ TEST() [3/7]
TEST |
( |
GrpcSliceTest |
, |
|
|
SliceFromCopiedString |
|
|
) |
| |
◆ TEST() [4/7]
TEST |
( |
GrpcSliceTest |
, |
|
|
SliceNewReturnsSomethingSensible |
|
|
) |
| |
◆ TEST() [5/7]
TEST |
( |
GrpcSliceTest |
, |
|
|
SliceNewWithLenReturnsSomethingSensible |
|
|
) |
| |
◆ TEST() [6/7]
TEST |
( |
GrpcSliceTest |
, |
|
|
SliceNewWithUserData |
|
|
) |
| |
◆ TEST() [7/7]
TEST |
( |
GrpcSliceTest |
, |
|
|
StringViewFromSlice |
|
|
) |
| |
◆ TEST_P() [1/3]
◆ TEST_P() [2/3]
◆ TEST_P() [3/3]
◆ do_nothing_with_len_1_calls
int do_nothing_with_len_1_calls = 0 |
|
static |