Macros | Functions
status_conversion_test.cc File Reference
#include "src/core/lib/transport/status_conversion.h"
#include <grpc/grpc.h>
#include <grpc/support/log.h>
#include "src/core/lib/iomgr/exec_ctx.h"
#include "test/core/util/test_config.h"
Include dependency graph for status_conversion_test.cc:

Go to the source code of this file.

Macros

#define GRPC_STATUS_TO_HTTP2_ERROR(a, b)   GPR_ASSERT(grpc_status_to_http2_error(a) == (b))
 
#define GRPC_STATUS_TO_HTTP2_STATUS(a, b)   GPR_ASSERT(grpc_status_to_http2_status(a) == (b))
 
#define HTTP2_ERROR_TO_GRPC_STATUS(a, deadline, b)
 
#define HTTP2_STATUS_TO_GRPC_STATUS(a, b)   GPR_ASSERT(grpc_http2_status_to_grpc_status(a) == (b))
 

Functions

int main (int argc, char **argv)
 
static void test_grpc_status_to_http2_error ()
 
static void test_grpc_status_to_http2_status ()
 
static void test_http2_error_to_grpc_status ()
 
static void test_http2_status_to_grpc_status ()
 

Macro Definition Documentation

◆ GRPC_STATUS_TO_HTTP2_ERROR

#define GRPC_STATUS_TO_HTTP2_ERROR (   a,
  b 
)    GPR_ASSERT(grpc_status_to_http2_error(a) == (b))

Definition at line 27 of file status_conversion_test.cc.

◆ GRPC_STATUS_TO_HTTP2_STATUS

#define GRPC_STATUS_TO_HTTP2_STATUS (   a,
  b 
)    GPR_ASSERT(grpc_status_to_http2_status(a) == (b))

Definition at line 35 of file status_conversion_test.cc.

◆ HTTP2_ERROR_TO_GRPC_STATUS

#define HTTP2_ERROR_TO_GRPC_STATUS (   a,
  deadline,
  b 
)
Value:
do { \
grpc_core::ExecCtx exec_ctx; \
GPR_ASSERT(grpc_http2_error_to_grpc_status(a, deadline) == (b)); \
\
} while (0)

Definition at line 29 of file status_conversion_test.cc.

◆ HTTP2_STATUS_TO_GRPC_STATUS

#define HTTP2_STATUS_TO_GRPC_STATUS (   a,
  b 
)    GPR_ASSERT(grpc_http2_status_to_grpc_status(a) == (b))

Definition at line 37 of file status_conversion_test.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 169 of file status_conversion_test.cc.

◆ test_grpc_status_to_http2_error()

static void test_grpc_status_to_http2_error ( )
static

Definition at line 40 of file status_conversion_test.cc.

◆ test_grpc_status_to_http2_status()

static void test_grpc_status_to_http2_status ( )
static

Definition at line 69 of file status_conversion_test.cc.

◆ test_http2_error_to_grpc_status()

static void test_http2_error_to_grpc_status ( )
static

Definition at line 89 of file status_conversion_test.cc.

◆ test_http2_status_to_grpc_status()

static void test_http2_status_to_grpc_status ( )
static

Definition at line 153 of file status_conversion_test.cc.

a
int a
Definition: abseil-cpp/absl/container/internal/hash_policy_traits_test.cc:88
b
uint64_t b
Definition: abseil-cpp/absl/container/internal/layout_test.cc:53
exec_ctx
grpc_core::ExecCtx exec_ctx
Definition: end2end_binder_transport_test.cc:75
grpc_http2_error_to_grpc_status
grpc_status_code grpc_http2_error_to_grpc_status(grpc_http2_error_code error, grpc_core::Timestamp deadline)
Definition: status_conversion.cc:44


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