Macros | Functions
bad_client/tests/simple_request.cc File Reference
#include <string.h>
#include <grpc/grpc.h>
#include "src/core/lib/surface/server.h"
#include "test/core/bad_client/bad_client.h"
#include "test/core/end2end/cq_verifier.h"
Include dependency graph for bad_client/tests/simple_request.cc:

Go to the source code of this file.

Macros

#define PFX_STR
 
#define PFX_STR_UNUSUAL
 
#define PFX_STR_UNUSUAL2
 

Functions

static void failure_verifier (grpc_server *server, grpc_completion_queue *cq, void *)
 
int main (int argc, char **argv)
 
static void * tag (intptr_t t)
 
static void verifier (grpc_server *server, grpc_completion_queue *cq, void *)
 

Macro Definition Documentation

◆ PFX_STR

#define PFX_STR
Value:
"PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n" \
"\x00\x00\x00\x04\x00\x00\x00\x00\x00" /* settings frame */ \
"\x00\x00\xc9\x01\x04\x00\x00\x00\x01" /* headers: generated from \
simple_request.headers in this \
directory */ \
"\x10\x05:path\x08/foo/bar" \
"\x10\x07:scheme\x04http" \
"\x10\x07:method\x04POST" \
"\x10\x0a:authority\x09localhost" \
"\x10\x0c" \
"content-type\x10" \
"application/grpc" \
"\x10\x14grpc-accept-encoding\x15" \
"deflate,identity,gzip" \
"\x10\x02te\x08trailers" \
"\x10\x0auser-agent\"bad-client grpc-c/0.12.0.0 (linux)"

Definition at line 27 of file bad_client/tests/simple_request.cc.

◆ PFX_STR_UNUSUAL

#define PFX_STR_UNUSUAL
Value:
"PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n" \
"\x00\x00\x00\x04\x00\x00\x00\x00\x00" /* settings frame */ \
"\x00\x00\xf4\x01\x04\x00\x00\x00\x01" /* headers: generated from \
simple_request_unusual.headers \
in this directory */ \
"\x10\x05:path\x08/foo/bar" \
"\x10\x07:scheme\x04http" \
"\x10\x07:method\x04POST" \
"\x10\x04host\x09localhost" \
"\x10\x0c" \
"content-type\x1e" \
"application/grpc+this-is-valid" \
"\x10\x14grpc-accept-encoding\x15identity,deflate,gzip" \
"\x10\x02te\x08trailers" \
"\x10\x0auser-agent\"bad-client grpc-c/0.12.0.0 (linux)" \
"\x10\x0cgrpc-timeout\x03" \
"10S" \
"\x10\x0cgrpc-timeout\x02" \
"5S"

Definition at line 43 of file bad_client/tests/simple_request.cc.

◆ PFX_STR_UNUSUAL2

#define PFX_STR_UNUSUAL2
Value:
"PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n" \
"\x00\x00\x00\x04\x00\x00\x00\x00\x00" /* settings frame */ \
"\x00\x00\xf4\x01\x04\x00\x00\x00\x01" /* headers: generated from \
simple_request_unusual2.headers \
in this directory */ \
"\x10\x05:path\x08/foo/bar" \
"\x10\x07:scheme\x04http" \
"\x10\x07:method\x04POST" \
"\x10\x04host\x09localhost" \
"\x10\x0c" \
"content-type\x1e" \
"application/grpc;this-is-valid" \
"\x10\x14grpc-accept-encoding\x15identity,deflate,gzip" \
"\x10\x02te\x08trailers" \
"\x10\x0auser-agent\"bad-client grpc-c/0.12.0.0 (linux)" \
"\x10\x0cgrpc-timeout\x03" \
"10S" \
"\x10\x0cgrpc-timeout\x02" \
"5S"

Definition at line 62 of file bad_client/tests/simple_request.cc.

Function Documentation

◆ failure_verifier()

static void failure_verifier ( grpc_server server,
grpc_completion_queue cq,
void *   
)
static

Definition at line 109 of file bad_client/tests/simple_request.cc.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 118 of file bad_client/tests/simple_request.cc.

◆ tag()

static void* tag ( intptr_t  t)
static

Definition at line 81 of file bad_client/tests/simple_request.cc.

◆ verifier()

static void verifier ( grpc_server server,
grpc_completion_queue cq,
void *   
)
static

Definition at line 83 of file bad_client/tests/simple_request.cc.



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