Go to the source code of this file.
|
static void | actually_poll_server (void *arg) |
|
static void | cleanup_rpc () |
|
static void | done_write (void *, grpc_error_handle error) |
|
static void | done_writing_settings_frame (void *, grpc_error_handle error) |
|
static void | handle_read (void *, grpc_error_handle error) |
|
static void | handle_write () |
|
int | main (int argc, char **argv) |
|
static gpr_timespec | n_sec_deadline (int seconds) |
|
static void | on_connect (void *arg, grpc_endpoint *tcp, grpc_pollset *, grpc_tcp_server_acceptor *acceptor) |
|
static grpc_core::Thread * | poll_server_until_read_done (test_tcp_server *server, gpr_event *signal_when_done) |
|
static void | run_test (bool http2_response, bool send_settings, const char *response_payload, size_t response_payload_length, grpc_status_code expected_status, const char *expected_detail) |
|
static void | start_rpc (int target_port, grpc_status_code expected_status, const char *expected_detail) |
|
static void * | tag (intptr_t t) |
|
◆ HTTP1_RESP_400
Value: "HTTP/1.0 400 Bad Request\n" \
"Content-Type: text/html; charset=UTF-8\n" \
"Content-Length: 0\n" \
"Date: Tue, 07 Jun 2016 17:43:20 GMT\n\n"
Definition at line 41 of file bad_server_response_test.cc.
◆ HTTP2_DETAIL_MSG
#define HTTP2_DETAIL_MSG |
( |
|
STATUS_CODE | ) |
"Received http2 header with status: " #STATUS_CODE |
◆ HTTP2_RESP
#define HTTP2_RESP |
( |
|
STATUS_CODE | ) |
|
Value: "\x00\x00>\x01\x04\x00\x00\x00\x01" \
"\x10\x0e" \
"content-length\x01" \
"0" \
"\x10\x0c" \
"content-type\x10" \
"application/grpc" \
"\x10\x07:status\x03" #STATUS_CODE
Definition at line 49 of file bad_server_response_test.cc.
◆ HTTP2_SETTINGS_FRAME
#define HTTP2_SETTINGS_FRAME "\x00\x00\x00\x04\x00\x00\x00\x00\x00" |
◆ SERVER_INCOMING_DATA_LENGTH_LOWER_THRESHOLD
#define SERVER_INCOMING_DATA_LENGTH_LOWER_THRESHOLD (size_t)200 |
◆ UNPARSEABLE_RESP
◆ actually_poll_server()
static void actually_poll_server |
( |
void * |
arg | ) |
|
|
static |
◆ cleanup_rpc()
static void cleanup_rpc |
( |
| ) |
|
|
static |
◆ done_write()
◆ done_writing_settings_frame()
◆ handle_read()
◆ handle_write()
static void handle_write |
( |
| ) |
|
|
static |
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ n_sec_deadline()
◆ on_connect()
◆ poll_server_until_read_done()
◆ run_test()
static void run_test |
( |
bool |
http2_response, |
|
|
bool |
send_settings, |
|
|
const char * |
response_payload, |
|
|
size_t |
response_payload_length, |
|
|
grpc_status_code |
expected_status, |
|
|
const char * |
expected_detail |
|
) |
| |
|
static |
◆ start_rpc()
◆ tag()
◆ on_read
◆ on_write
◆ on_writing_settings_frame
◆ server_port
◆ state