Lines Matching refs:hd
197 const nghttp2_frame_hd *hd, in on_begin_frame_callback() argument
201 (void)hd; in on_begin_frame_callback()
213 ud->recv_frame_type = frame->hd.type; in on_frame_recv_callback()
214 ud->recv_frame_hd = frame->hd; in on_frame_recv_callback()
237 ud->sent_frame_type = frame->hd.type; in on_frame_send_callback()
248 ud->not_sent_frame_type = frame->hd.type; in on_frame_not_send_callback()
299 return (ssize_t)nghttp2_min(max_payloadlen, frame->hd.length + ud->padlen); in select_padding_callback()
602 const nghttp2_frame_hd *hd, in on_extension_chunk_recv_callback() argument
608 (void)hd; in on_extension_chunk_recv_callback()
616 const nghttp2_frame_hd *hd, in cancel_on_extension_chunk_recv_callback() argument
621 (void)hd; in cancel_on_extension_chunk_recv_callback()
630 const nghttp2_frame_hd *hd, in unpack_extension_callback() argument
635 (void)hd; in unpack_extension_callback()
644 const nghttp2_frame_hd *hd, in cancel_unpack_extension_callback() argument
648 (void)hd; in cancel_unpack_extension_callback()
761 (uint32_t)(((frame.hd.length + 16) << 8) + bufs.cur->buf.pos[3])); in test_nghttp2_session_recv()
774 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_recv()
905 nghttp2_frame_hd hd; in test_nghttp2_session_recv_data() local
918 hd.length = 4096; in test_nghttp2_session_recv_data()
919 hd.type = NGHTTP2_DATA; in test_nghttp2_session_recv_data()
920 hd.flags = NGHTTP2_FLAG_NONE; in test_nghttp2_session_recv_data()
921 hd.stream_id = 1; in test_nghttp2_session_recv_data()
922 nghttp2_frame_pack_frame_hd(data, &hd); in test_nghttp2_session_recv_data()
934 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_recv_data()
980 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type); in test_nghttp2_session_recv_data()
981 CU_ASSERT(1 == item->frame.window_update.hd.stream_id); in test_nghttp2_session_recv_data()
996 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type); in test_nghttp2_session_recv_data()
997 CU_ASSERT(0 == item->frame.window_update.hd.stream_id); in test_nghttp2_session_recv_data()
1001 hd.length = 4096; in test_nghttp2_session_recv_data()
1002 hd.type = NGHTTP2_DATA; in test_nghttp2_session_recv_data()
1003 hd.flags = NGHTTP2_FLAG_NONE; in test_nghttp2_session_recv_data()
1004 hd.stream_id = 0; in test_nghttp2_session_recv_data()
1005 nghttp2_frame_pack_frame_hd(data, &hd); in test_nghttp2_session_recv_data()
1015 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_recv_data()
1023 hd.length = 4096; in test_nghttp2_session_recv_data()
1024 hd.type = NGHTTP2_DATA; in test_nghttp2_session_recv_data()
1025 hd.flags = NGHTTP2_FLAG_NONE; in test_nghttp2_session_recv_data()
1026 hd.stream_id = 1; in test_nghttp2_session_recv_data()
1027 nghttp2_frame_pack_frame_hd(data, &hd); in test_nghttp2_session_recv_data()
1039 hd.length = 4095; in test_nghttp2_session_recv_data()
1040 nghttp2_frame_pack_frame_hd(data, &hd); in test_nghttp2_session_recv_data()
1052 hd.length = 4096; in test_nghttp2_session_recv_data()
1053 nghttp2_frame_pack_frame_hd(data, &hd); in test_nghttp2_session_recv_data()
1088 nghttp2_frame_hd hd; in test_nghttp2_session_recv_data_no_auto_flow_control() local
1108 hd.length = 4096 + 1 + padlen; in test_nghttp2_session_recv_data_no_auto_flow_control()
1109 hd.type = NGHTTP2_DATA; in test_nghttp2_session_recv_data_no_auto_flow_control()
1110 hd.flags = NGHTTP2_FLAG_PADDED; in test_nghttp2_session_recv_data_no_auto_flow_control()
1111 hd.stream_id = 1; in test_nghttp2_session_recv_data_no_auto_flow_control()
1112 nghttp2_frame_pack_frame_hd(data, &hd); in test_nghttp2_session_recv_data_no_auto_flow_control()
1134 NGHTTP2_FRAME_HDLEN + hd.length - sendlen); in test_nghttp2_session_recv_data_no_auto_flow_control()
1135 CU_ASSERT((ssize_t)(NGHTTP2_FRAME_HDLEN + hd.length - sendlen) == rv); in test_nghttp2_session_recv_data_no_auto_flow_control()
1138 CU_ASSERT((int32_t)(NGHTTP2_FRAME_HDLEN + hd.length - sendlen + 1) == in test_nghttp2_session_recv_data_no_auto_flow_control()
1152 rv = nghttp2_session_mem_recv(session, data, NGHTTP2_FRAME_HDLEN + hd.length); in test_nghttp2_session_recv_data_no_auto_flow_control()
1153 CU_ASSERT((ssize_t)(NGHTTP2_FRAME_HDLEN + hd.length) == rv); in test_nghttp2_session_recv_data_no_auto_flow_control()
1157 CU_ASSERT((int32_t)hd.length == session->consumed_size); in test_nghttp2_session_recv_data_no_auto_flow_control()
1166 hd.length = 4096; in test_nghttp2_session_recv_data_no_auto_flow_control()
1167 hd.type = NGHTTP2_DATA; in test_nghttp2_session_recv_data_no_auto_flow_control()
1168 hd.flags = NGHTTP2_FLAG_NONE; in test_nghttp2_session_recv_data_no_auto_flow_control()
1169 hd.stream_id = 1; in test_nghttp2_session_recv_data_no_auto_flow_control()
1170 nghttp2_frame_pack_frame_hd(data, &hd); in test_nghttp2_session_recv_data_no_auto_flow_control()
1178 hd.length = 4095; in test_nghttp2_session_recv_data_no_auto_flow_control()
1179 nghttp2_frame_pack_frame_hd(data, &hd); in test_nghttp2_session_recv_data_no_auto_flow_control()
1419 nghttp2_session_get_next_ob_item(session)->frame.hd.type); in test_nghttp2_session_recv_continuation()
1524 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_recv_headers_with_priority()
1569 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_recv_headers_with_priority()
1584 nghttp2_frame_hd hd; in test_nghttp2_session_recv_headers_with_padding() local
1599 nghttp2_frame_hd_init(&hd, 10, NGHTTP2_HEADERS, in test_nghttp2_session_recv_headers_with_padding()
1604 nghttp2_frame_pack_frame_hd(buf->last, &hd); in test_nghttp2_session_recv_headers_with_padding()
1626 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_recv_headers_with_padding()
1637 nghttp2_frame_hd_init(&hd, 9, NGHTTP2_PUSH_PROMISE, in test_nghttp2_session_recv_headers_with_padding()
1640 nghttp2_frame_pack_frame_hd(buf->last, &hd); in test_nghttp2_session_recv_headers_with_padding()
1661 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_recv_headers_with_padding()
1668 const nghttp2_frame_hd *hd, in response_on_begin_frame_callback() argument
1673 if (hd->type != NGHTTP2_HEADERS) { in response_on_begin_frame_callback()
1677 rv = nghttp2_submit_response(session, hd->stream_id, resnv, ARRLEN(resnv), in response_on_begin_frame_callback()
2020 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_session_recv_premature_headers()
2022 CU_ASSERT(1 == item->frame.hd.stream_id); in test_nghttp2_session_recv_premature_headers()
2052 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_session_recv_premature_headers()
2054 CU_ASSERT(2 == item->frame.hd.stream_id); in test_nghttp2_session_recv_premature_headers()
2068 nghttp2_frame_hd hd; in test_nghttp2_session_recv_unknown_frame() local
2071 nghttp2_frame_hd_init(&hd, 16000, 99, NGHTTP2_FLAG_NONE, 0); in test_nghttp2_session_recv_unknown_frame()
2073 nghttp2_frame_pack_frame_hd(data, &hd); in test_nghttp2_session_recv_unknown_frame()
2074 datalen = NGHTTP2_FRAME_HDLEN + hd.length; in test_nghttp2_session_recv_unknown_frame()
2099 nghttp2_frame_hd hd; in test_nghttp2_session_recv_unexpected_continuation() local
2103 nghttp2_frame_hd_init(&hd, 16000, NGHTTP2_CONTINUATION, in test_nghttp2_session_recv_unexpected_continuation()
2106 nghttp2_frame_pack_frame_hd(data, &hd); in test_nghttp2_session_recv_unexpected_continuation()
2107 datalen = NGHTTP2_FRAME_HDLEN + hd.length; in test_nghttp2_session_recv_unexpected_continuation()
2126 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_recv_unexpected_continuation()
2313 nghttp2_frame_hd hd; in test_nghttp2_session_recv_too_large_frame_length() local
2316 nghttp2_frame_hd_init(&hd, NGHTTP2_MAX_FRAME_SIZE_MIN + 1, NGHTTP2_HEADERS, in test_nghttp2_session_recv_too_large_frame_length()
2323 nghttp2_frame_pack_frame_hd(buf, &hd); in test_nghttp2_session_recv_too_large_frame_length()
2330 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_recv_too_large_frame_length()
2340 nghttp2_frame_hd hd; in test_nghttp2_session_recv_extension() local
2360 nghttp2_frame_hd_init(&hd, sizeof(data), 111, 0xab, 1000000007); in test_nghttp2_session_recv_extension()
2361 nghttp2_frame_pack_frame_hd(buf.last, &hd); in test_nghttp2_session_recv_extension()
2370 CU_ASSERT(NGHTTP2_FRAME_HDLEN + hd.length == (size_t)rv); in test_nghttp2_session_recv_extension()
2389 CU_ASSERT(NGHTTP2_FRAME_HDLEN + hd.length == (size_t)rv); in test_nghttp2_session_recv_extension()
2405 CU_ASSERT(NGHTTP2_FRAME_HDLEN + hd.length == (size_t)rv); in test_nghttp2_session_recv_extension()
2421 nghttp2_frame_hd hd; in test_nghttp2_session_recv_altsvc() local
2443 nghttp2_frame_hd_init(&hd, 2 + sizeof(origin) - 1 + sizeof(field_value) - 1, in test_nghttp2_session_recv_altsvc()
2445 nghttp2_frame_pack_frame_hd(buf.last, &hd); in test_nghttp2_session_recv_altsvc()
2468 nghttp2_frame_hd_init(&hd, 2 + sizeof(origin) - 1 - 1, NGHTTP2_ALTSVC, in test_nghttp2_session_recv_altsvc()
2470 nghttp2_frame_pack_frame_hd(buf.last, &hd); in test_nghttp2_session_recv_altsvc()
2489 nghttp2_frame_hd_init(&hd, 2 + sizeof(origin) - 1, NGHTTP2_ALTSVC, in test_nghttp2_session_recv_altsvc()
2491 nghttp2_frame_pack_frame_hd(buf.last, &hd); in test_nghttp2_session_recv_altsvc()
2512 nghttp2_frame_hd_init(&hd, 2 + sizeof(origin) - 1 + sizeof(field_value) - 1, in test_nghttp2_session_recv_altsvc()
2514 nghttp2_frame_pack_frame_hd(buf.last, &hd); in test_nghttp2_session_recv_altsvc()
2534 nghttp2_frame_hd_init(&hd, 2 + sizeof(field_value) - 1, NGHTTP2_ALTSVC, in test_nghttp2_session_recv_altsvc()
2536 nghttp2_frame_pack_frame_hd(buf.last, &hd); in test_nghttp2_session_recv_altsvc()
2555 nghttp2_frame_hd_init(&hd, NGHTTP2_MAX_FRAME_SIZE_MIN, NGHTTP2_ALTSVC, in test_nghttp2_session_recv_altsvc()
2557 nghttp2_frame_pack_frame_hd(buf.last, &hd); in test_nghttp2_session_recv_altsvc()
2582 nghttp2_frame_hd_init(&hd, NGHTTP2_MAX_FRAME_SIZE_MIN + 1, NGHTTP2_ALTSVC, in test_nghttp2_session_recv_altsvc()
2584 nghttp2_frame_pack_frame_hd(buf.last, &hd); in test_nghttp2_session_recv_altsvc()
2605 nghttp2_frame_hd_init(&hd, 2 + sizeof(origin) - 1 + sizeof(field_value) - 1, in test_nghttp2_session_recv_altsvc()
2607 nghttp2_frame_pack_frame_hd(buf.last, &hd); in test_nghttp2_session_recv_altsvc()
2699 frame.hd.stream_id = 1; in test_nghttp2_session_recv_origin()
2718 frame.hd.flags = 0xf0; in test_nghttp2_session_recv_origin()
2933 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_recv_priority_update()
2968 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_recv_priority_update()
3059 CU_ASSERT(NGHTTP2_HEADERS == recv_frame->hd.type); in test_nghttp2_session_continue()
3060 CU_ASSERT(framelen1 - NGHTTP2_FRAME_HDLEN == recv_frame->hd.length); in test_nghttp2_session_continue()
3091 CU_ASSERT(NGHTTP2_HEADERS == recv_frame->hd.type); in test_nghttp2_session_continue()
3092 CU_ASSERT(framelen2 - NGHTTP2_FRAME_HDLEN == recv_frame->hd.length); in test_nghttp2_session_continue()
3464 frame.hd.flags |= NGHTTP2_FLAG_END_STREAM; in test_nghttp2_session_on_headers_received()
3472 frame.hd.stream_id = 3; in test_nghttp2_session_on_headers_received()
3473 frame.hd.flags = NGHTTP2_FLAG_END_HEADERS; in test_nghttp2_session_on_headers_received()
3483 frame.hd.flags = NGHTTP2_FLAG_END_HEADERS | NGHTTP2_FLAG_END_STREAM; in test_nghttp2_session_on_headers_received()
3484 frame.hd.stream_id = 2; in test_nghttp2_session_on_headers_received()
3541 frame.hd.stream_id = 4; in test_nghttp2_session_on_push_response_headers_received()
3546 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_session_on_push_response_headers_received()
3559 frame.hd.stream_id = 6; in test_nghttp2_session_on_push_response_headers_received()
3565 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_on_push_response_headers_received()
3602 frame.hd.stream_id = 2; in test_nghttp2_session_on_priority_received()
3612 frame.hd.stream_id = 100; in test_nghttp2_session_on_priority_received()
3616 stream = nghttp2_session_get_stream_raw(session, frame.hd.stream_id); in test_nghttp2_session_on_priority_received()
3636 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_on_priority_received()
3652 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_on_priority_received()
3689 nghttp2_frame_hd hd; in test_nghttp2_session_on_settings_received() local
3760 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_on_settings_received()
3772 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_on_settings_received()
3836 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_on_settings_received()
3869 CU_ASSERT(NGHTTP2_SETTINGS == item->frame.hd.type); in test_nghttp2_session_on_settings_received()
3874 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_session_on_settings_received()
3898 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_on_settings_received()
3924 hd.length = 1024; in test_nghttp2_session_on_settings_received()
3925 hd.type = NGHTTP2_DATA; in test_nghttp2_session_on_settings_received()
3926 hd.flags = NGHTTP2_FLAG_NONE; in test_nghttp2_session_on_settings_received()
3927 hd.stream_id = 1; in test_nghttp2_session_on_settings_received()
3928 nghttp2_frame_pack_frame_hd(data, &hd); in test_nghttp2_session_on_settings_received()
3931 nghttp2_session_mem_recv(session, data, NGHTTP2_FRAME_HDLEN + hd.length); in test_nghttp2_session_on_settings_received()
3933 CU_ASSERT((ssize_t)(NGHTTP2_FRAME_HDLEN + hd.length) == nread); in test_nghttp2_session_on_settings_received()
3935 rv = nghttp2_session_consume(session, 1, hd.length); in test_nghttp2_session_on_settings_received()
3938 CU_ASSERT((int32_t)hd.length == stream->recv_window_size); in test_nghttp2_session_on_settings_received()
3939 CU_ASSERT((int32_t)hd.length == stream->consumed_size); in test_nghttp2_session_on_settings_received()
3953 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type); in test_nghttp2_session_on_settings_received()
3954 CU_ASSERT((int32_t)hd.length == in test_nghttp2_session_on_settings_received()
3979 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_on_settings_received()
4035 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_on_push_promise_received()
4059 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_session_on_push_promise_received()
4060 CU_ASSERT(6 == item->frame.hd.stream_id); in test_nghttp2_session_on_push_promise_received()
4065 frame.hd.stream_id = 3; in test_nghttp2_session_on_push_promise_received()
4077 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_on_push_promise_received()
4078 CU_ASSERT(0 == item->frame.hd.stream_id); in test_nghttp2_session_on_push_promise_received()
4089 frame.hd.stream_id = 1; in test_nghttp2_session_on_push_promise_received()
4109 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_on_push_promise_received()
4229 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_session_on_push_promise_received()
4263 frame.hd.flags = NGHTTP2_FLAG_NONE; in test_nghttp2_session_on_ping_received()
4268 CU_ASSERT(NGHTTP2_PING == top->frame.hd.type); in test_nghttp2_session_on_ping_received()
4269 CU_ASSERT(NGHTTP2_FLAG_ACK == top->frame.hd.flags); in test_nghttp2_session_on_ping_received()
4433 nghttp2_frame_hd_init(&frame.hd, 4096, NGHTTP2_DATA, NGHTTP2_FLAG_NONE, 2); in test_nghttp2_session_on_data_received()
4438 frame.hd.flags = NGHTTP2_FLAG_END_STREAM; in test_nghttp2_session_on_data_received()
4446 frame.hd.flags = NGHTTP2_FLAG_NONE; in test_nghttp2_session_on_data_received()
4447 frame.hd.stream_id = 1; in test_nghttp2_session_on_data_received()
4455 frame.hd.stream_id = 3; in test_nghttp2_session_on_data_received()
4470 nghttp2_frame_hd hd; in test_nghttp2_session_on_data_received_fail_fast() local
4475 nghttp2_frame_hd_init(&hd, 0, NGHTTP2_DATA, NGHTTP2_FLAG_NONE, 1); in test_nghttp2_session_on_data_received_fail_fast()
4476 nghttp2_frame_pack_frame_hd(buf, &hd); in test_nghttp2_session_on_data_received_fail_fast()
4490 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_on_data_received_fail_fast()
4507 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_on_data_received_fail_fast()
4949 CU_ASSERT(NGHTTP2_SETTINGS == item->frame.hd.type); in test_nghttp2_session_upgrade2()
5204 nghttp2_frame_hd hd; in test_nghttp2_submit_data() local
5228 nghttp2_frame_unpack_frame_hd(&hd, buf->pos); in test_nghttp2_submit_data()
5230 CU_ASSERT(NGHTTP2_FLAG_NONE == hd.flags); in test_nghttp2_submit_data()
5231 CU_ASSERT(NGHTTP2_FLAG_NONE == frame->hd.flags); in test_nghttp2_submit_data()
5244 nghttp2_frame_hd hd; in test_nghttp2_submit_data_read_length_too_large() local
5270 nghttp2_frame_unpack_frame_hd(&hd, buf->pos); in test_nghttp2_submit_data_read_length_too_large()
5272 CU_ASSERT(NGHTTP2_FLAG_NONE == hd.flags); in test_nghttp2_submit_data_read_length_too_large()
5273 CU_ASSERT(NGHTTP2_FLAG_NONE == frame->hd.flags); in test_nghttp2_submit_data_read_length_too_large()
5274 CU_ASSERT(16384 == hd.length) in test_nghttp2_submit_data_read_length_too_large()
5302 nghttp2_frame_unpack_frame_hd(&hd, buf->pos); in test_nghttp2_submit_data_read_length_too_large()
5309 CU_ASSERT(NGHTTP2_FLAG_NONE == hd.flags); in test_nghttp2_submit_data_read_length_too_large()
5310 CU_ASSERT(NGHTTP2_FLAG_NONE == frame->hd.flags); in test_nghttp2_submit_data_read_length_too_large()
5311 CU_ASSERT(payloadlen == hd.length); in test_nghttp2_submit_data_read_length_too_large()
5324 nghttp2_frame_hd hd; in test_nghttp2_submit_data_read_length_smallest() local
5349 nghttp2_frame_unpack_frame_hd(&hd, buf->pos); in test_nghttp2_submit_data_read_length_smallest()
5351 CU_ASSERT(NGHTTP2_FLAG_NONE == hd.flags); in test_nghttp2_submit_data_read_length_smallest()
5352 CU_ASSERT(NGHTTP2_FLAG_NONE == frame->hd.flags); in test_nghttp2_submit_data_read_length_smallest()
5353 CU_ASSERT(1 == hd.length) in test_nghttp2_submit_data_read_length_smallest()
5387 frame->hd.stream_id, &data_prd); in submit_data_twice_on_frame_send_callback()
5491 CU_ASSERT(item->frame.hd.flags & NGHTTP2_FLAG_END_STREAM); in test_nghttp2_submit_request_without_data()
5591 CU_ASSERT(item->frame.hd.flags & NGHTTP2_FLAG_END_STREAM); in test_nghttp2_submit_response_without_data()
5671 CU_ASSERT(NGHTTP2_HEADERS == item->frame.hd.type); in test_nghttp2_submit_trailer()
5673 CU_ASSERT(item->frame.hd.flags & NGHTTP2_FLAG_END_STREAM); in test_nghttp2_submit_trailer()
5720 item->frame.hd.flags); in test_nghttp2_submit_headers_start_stream()
5721 CU_ASSERT(0 == (item->frame.hd.flags & NGHTTP2_FLAG_PRIORITY)); in test_nghttp2_submit_headers_start_stream()
5748 item->frame.hd.flags); in test_nghttp2_submit_headers_reply()
5844 item->frame.hd.flags); in test_nghttp2_submit_headers()
5936 CU_ASSERT(NGHTTP2_HEADERS == item->frame.hd.type); in test_nghttp2_submit_headers_continuation()
5938 item->frame.hd.flags); in test_nghttp2_submit_headers_continuation()
5939 CU_ASSERT(0 == (item->frame.hd.flags & NGHTTP2_FLAG_PRIORITY)); in test_nghttp2_submit_headers_continuation()
5980 CU_ASSERT(NGHTTP2_HEADERS == item->frame.hd.type); in test_nghttp2_submit_headers_continuation_extra_large()
5982 item->frame.hd.flags); in test_nghttp2_submit_headers_continuation_extra_large()
5983 CU_ASSERT(0 == (item->frame.hd.flags & NGHTTP2_FLAG_PRIORITY)); in test_nghttp2_submit_headers_continuation_extra_large()
6079 CU_ASSERT(NGHTTP2_SETTINGS == item->frame.hd.type); in test_nghttp2_submit_settings()
6199 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type); in test_nghttp2_submit_settings_update_local_window_size()
6241 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_submit_settings_update_local_window_size()
6389 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type); in test_nghttp2_submit_window_update()
6397 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type); in test_nghttp2_submit_window_update()
6405 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type); in test_nghttp2_submit_window_update()
6438 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type); in test_nghttp2_submit_window_update_local_window_size()
6476 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type); in test_nghttp2_submit_window_update_local_window_size()
6670 nghttp2_frame_hd hd; in test_nghttp2_submit_altsvc() local
6692 nghttp2_frame_unpack_frame_hd(&hd, data); in test_nghttp2_submit_altsvc()
6694 CU_ASSERT(2 + sizeof(origin) - 1 + sizeof(field_value) - 1 == hd.length); in test_nghttp2_submit_altsvc()
6695 CU_ASSERT(NGHTTP2_ALTSVC == hd.type); in test_nghttp2_submit_altsvc()
6696 CU_ASSERT(NGHTTP2_FLAG_NONE == hd.flags); in test_nghttp2_submit_altsvc()
6705 hd.length - (sizeof(origin) - 1) - 2)); in test_nghttp2_submit_altsvc()
6776 nghttp2_frame_unpack_frame_hd(&frame.hd, data); in test_nghttp2_submit_origin()
6782 CU_ASSERT(0 == frame.hd.stream_id); in test_nghttp2_submit_origin()
6783 CU_ASSERT(NGHTTP2_ORIGIN == frame.hd.type); in test_nghttp2_submit_origin()
6816 nghttp2_frame_unpack_frame_hd(&frame.hd, data); in test_nghttp2_submit_origin()
6818 CU_ASSERT(NGHTTP2_ORIGIN == frame.hd.type); in test_nghttp2_submit_origin()
6864 nghttp2_frame_unpack_frame_hd(&frame.hd, data); in test_nghttp2_submit_priority_update()
6869 CU_ASSERT(0 == frame.hd.stream_id); in test_nghttp2_submit_priority_update()
6870 CU_ASSERT(NGHTTP2_PRIORITY_UPDATE == frame.hd.type); in test_nghttp2_submit_priority_update()
6913 nghttp2_frame_unpack_frame_hd(&frame.hd, data); in test_nghttp2_submit_priority_update()
6918 CU_ASSERT(0 == frame.hd.stream_id); in test_nghttp2_submit_priority_update()
6919 CU_ASSERT(NGHTTP2_PRIORITY_UPDATE == frame.hd.type); in test_nghttp2_submit_priority_update()
6977 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_submit_rst_stream()
6978 CU_ASSERT(1 == item->frame.hd.stream_id); in test_nghttp2_submit_rst_stream()
6995 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_submit_rst_stream()
6996 CU_ASSERT(2 == item->frame.hd.stream_id); in test_nghttp2_submit_rst_stream()
7011 CU_ASSERT(NGHTTP2_HEADERS == item->frame.hd.type); in test_nghttp2_submit_rst_stream()
7022 CU_ASSERT(NGHTTP2_HEADERS == item->frame.hd.type); in test_nghttp2_submit_rst_stream()
7166 nghttp2_session_get_next_ob_item(session)->frame.hd.type); in test_nghttp2_session_get_next_ob_item()
7170 nghttp2_session_get_next_ob_item(session)->frame.hd.type); in test_nghttp2_session_get_next_ob_item()
7184 nghttp2_session_get_next_ob_item(session)->frame.hd.type); in test_nghttp2_session_get_next_ob_item()
7194 nghttp2_session_get_next_ob_item(session)->frame.hd.type); in test_nghttp2_session_get_next_ob_item()
7232 CU_ASSERT(NGHTTP2_PING == item->frame.hd.type); in test_nghttp2_session_pop_next_ob_item()
7237 CU_ASSERT(NGHTTP2_HEADERS == item->frame.hd.type); in test_nghttp2_session_pop_next_ob_item()
7258 CU_ASSERT(NGHTTP2_HEADERS == item->frame.hd.type); in test_nghttp2_session_pop_next_ob_item()
7316 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_session_max_concurrent_streams()
7323 frame.hd.stream_id = 5; in test_nghttp2_session_max_concurrent_streams()
7329 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_max_concurrent_streams()
7492 frame.hd.stream_id = 0; in test_nghttp2_session_flow_control()
7512 frame.hd.stream_id = 1; in test_nghttp2_session_flow_control()
7521 frame.hd.stream_id = 1; in test_nghttp2_session_flow_control()
7526 frame.hd.stream_id = 0; in test_nghttp2_session_flow_control()
7548 frame.hd.stream_id = 0; in test_nghttp2_session_flow_control()
7566 nghttp2_frame_hd hd; in test_nghttp2_session_flow_control_data_recv() local
7585 nghttp2_frame_hd_init(&hd, NGHTTP2_MAX_PAYLOADLEN, NGHTTP2_DATA, in test_nghttp2_session_flow_control_data_recv()
7588 nghttp2_frame_pack_frame_hd(data, &hd); in test_nghttp2_session_flow_control_data_recv()
7596 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type); in test_nghttp2_session_flow_control_data_recv()
7597 CU_ASSERT(0 == item->frame.hd.stream_id); in test_nghttp2_session_flow_control_data_recv()
7613 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type); in test_nghttp2_session_flow_control_data_recv()
7614 CU_ASSERT(0 == item->frame.hd.stream_id); in test_nghttp2_session_flow_control_data_recv()
7625 nghttp2_frame_hd hd; in test_nghttp2_session_flow_control_data_with_padding_recv() local
7646 nghttp2_frame_hd_init(&hd, 357, NGHTTP2_DATA, NGHTTP2_FLAG_PADDED, 1); in test_nghttp2_session_flow_control_data_with_padding_recv()
7648 nghttp2_frame_pack_frame_hd(data, &hd); in test_nghttp2_session_flow_control_data_with_padding_recv()
7653 (ssize_t)(NGHTTP2_FRAME_HDLEN + hd.length) == in test_nghttp2_session_flow_control_data_with_padding_recv()
7654 nghttp2_session_mem_recv(session, data, NGHTTP2_FRAME_HDLEN + hd.length)); in test_nghttp2_session_flow_control_data_with_padding_recv()
7656 CU_ASSERT((int32_t)hd.length == session->recv_window_size); in test_nghttp2_session_flow_control_data_with_padding_recv()
7657 CU_ASSERT((int32_t)hd.length == stream->recv_window_size); in test_nghttp2_session_flow_control_data_with_padding_recv()
7742 CU_ASSERT(NGHTTP2_DATA == stream->item->frame.hd.type); in test_nghttp2_session_data_read_temporal_failure()
7752 frame.hd.stream_id = 0; in test_nghttp2_session_data_read_temporal_failure()
8157 CU_ASSERT(frame->hd.flags & NGHTTP2_FLAG_PADDED); in test_nghttp2_session_pack_data_with_padding()
10075 nghttp2_frame_hd hd; in test_nghttp2_session_on_header_temporal_failure() local
10105 nghttp2_frame_hd_init(&hd, in test_nghttp2_session_on_header_temporal_failure()
10109 nghttp2_frame_pack_frame_hd(&buf->pos[hdpos], &hd); in test_nghttp2_session_on_header_temporal_failure()
10119 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_session_on_header_temporal_failure()
10120 CU_ASSERT(1 == item->frame.hd.stream_id); in test_nghttp2_session_on_header_temporal_failure()
10147 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_session_on_header_temporal_failure()
10148 CU_ASSERT(2 == item->frame.hd.stream_id); in test_nghttp2_session_on_header_temporal_failure()
10180 nghttp2_frame_pack_frame_hd(buf, &ping_frame.ping.hd); in test_nghttp2_session_recv_client_magic()
10334 frame.hd.stream_id = 4; in test_nghttp2_session_cancel_reserved_remote()
10413 nghttp2_frame_hd hd; in test_nghttp2_session_send_data_callback() local
10436 nghttp2_frame_unpack_frame_hd(&hd, acc.buf); in test_nghttp2_session_send_data_callback()
10438 CU_ASSERT(16384 == hd.length); in test_nghttp2_session_send_data_callback()
10439 CU_ASSERT(NGHTTP2_DATA == hd.type); in test_nghttp2_session_send_data_callback()
10440 CU_ASSERT(NGHTTP2_FLAG_NONE == hd.flags); in test_nghttp2_session_send_data_callback()
10442 nghttp2_frame_unpack_frame_hd(&hd, acc.buf + NGHTTP2_FRAME_HDLEN + hd.length); in test_nghttp2_session_send_data_callback()
10444 CU_ASSERT(16384 == hd.length); in test_nghttp2_session_send_data_callback()
10445 CU_ASSERT(NGHTTP2_DATA == hd.type); in test_nghttp2_session_send_data_callback()
10446 CU_ASSERT(NGHTTP2_FLAG_END_STREAM == hd.flags); in test_nghttp2_session_send_data_callback()
10486 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_session_on_begin_headers_temporal_failure()
10487 CU_ASSERT(1 == item->frame.hd.stream_id); in test_nghttp2_session_on_begin_headers_temporal_failure()
10513 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_session_on_begin_headers_temporal_failure()
10514 CU_ASSERT(2 == item->frame.hd.stream_id); in test_nghttp2_session_on_begin_headers_temporal_failure()
11079 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type); in test_nghttp2_session_set_local_window_size()
11080 CU_ASSERT(1 == item->frame.window_update.hd.stream_id); in test_nghttp2_session_set_local_window_size()
11134 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type); in test_nghttp2_session_set_local_window_size()
11135 CU_ASSERT(0 == item->frame.window_update.hd.stream_id); in test_nghttp2_session_set_local_window_size()
11198 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type); in test_nghttp2_session_set_local_window_size()
11199 CU_ASSERT(1 == item->frame.hd.stream_id); in test_nghttp2_session_set_local_window_size()
11226 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type); in test_nghttp2_session_set_local_window_size()
11227 CU_ASSERT(0 == item->frame.hd.stream_id); in test_nghttp2_session_set_local_window_size()
11376 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_too_many_settings()
11393 nghttp2_frame_hd hd; in prepare_session_removed_closed_stream() local
11459 nghttp2_frame_hd_init(&hd, 0, NGHTTP2_DATA, NGHTTP2_FLAG_NONE, 3); in prepare_session_removed_closed_stream()
11461 nghttp2_frame_pack_frame_hd(bufs.head->buf.last, &hd); in prepare_session_removed_closed_stream()
11471 nghttp2_frame_hd_init(&hd, 0, NGHTTP2_SETTINGS, NGHTTP2_FLAG_ACK, 0); in prepare_session_removed_closed_stream()
11473 nghttp2_frame_pack_frame_hd(bufs.head->buf.last, &hd); in prepare_session_removed_closed_stream()
11492 nghttp2_frame_hd hd; in test_nghttp2_session_removed_closed_stream() local
11540 nghttp2_frame_hd_init(&hd, 0, NGHTTP2_DATA, NGHTTP2_FLAG_NONE, 3); in test_nghttp2_session_removed_closed_stream()
11542 nghttp2_frame_pack_frame_hd(bufs.head->buf.last, &hd); in test_nghttp2_session_removed_closed_stream()
11721 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type); in test_nghttp2_session_stream_reset_ratelim()
11827 CU_ASSERT(NGHTTP2_HEADERS == item->frame.hd.type); in test_nghttp2_session_no_rfc7540_priorities()
11855 CU_ASSERT(NGHTTP2_HEADERS == item->frame.hd.type); in test_nghttp2_session_no_rfc7540_priorities()
12086 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in check_nghttp2_http_recv_headers_fail()
12513 nghttp2_frame_hd hd; in test_nghttp2_http_content_length_mismatch() local
12537 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_http_content_length_mismatch()
12548 nghttp2_frame_hd_init(&hd, 0, NGHTTP2_DATA, NGHTTP2_FLAG_END_STREAM, 3); in test_nghttp2_http_content_length_mismatch()
12549 nghttp2_frame_pack_frame_hd(bufs.head->buf.last, &hd); in test_nghttp2_http_content_length_mismatch()
12558 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_http_content_length_mismatch()
12569 nghttp2_frame_hd_init(&hd, 21, NGHTTP2_DATA, NGHTTP2_FLAG_END_STREAM, 5); in test_nghttp2_http_content_length_mismatch()
12570 nghttp2_frame_pack_frame_hd(bufs.head->buf.last, &hd); in test_nghttp2_http_content_length_mismatch()
12579 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_http_content_length_mismatch()
12610 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_http_content_length_mismatch()
12628 nghttp2_frame_hd_init(&hd, 0, NGHTTP2_DATA, NGHTTP2_FLAG_END_STREAM, 3); in test_nghttp2_http_content_length_mismatch()
12629 nghttp2_frame_pack_frame_hd(bufs.head->buf.last, &hd); in test_nghttp2_http_content_length_mismatch()
12638 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_http_content_length_mismatch()
12656 nghttp2_frame_hd_init(&hd, 21, NGHTTP2_DATA, NGHTTP2_FLAG_END_STREAM, 5); in test_nghttp2_http_content_length_mismatch()
12657 nghttp2_frame_pack_frame_hd(bufs.head->buf.last, &hd); in test_nghttp2_http_content_length_mismatch()
12666 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_http_content_length_mismatch()
12693 nghttp2_frame_hd hd; in test_nghttp2_http_non_final_response() local
12719 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_http_non_final_response()
12732 nghttp2_frame_hd_init(&hd, 10, NGHTTP2_DATA, NGHTTP2_FLAG_END_STREAM, 3); in test_nghttp2_http_non_final_response()
12733 nghttp2_frame_pack_frame_hd(bufs.head->buf.last, &hd); in test_nghttp2_http_non_final_response()
12742 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_http_non_final_response()
12756 nghttp2_frame_hd_init(&hd, 0, NGHTTP2_DATA, NGHTTP2_FLAG_NONE, 5); in test_nghttp2_http_non_final_response()
12757 nghttp2_frame_pack_frame_hd(bufs.head->buf.last, &hd); in test_nghttp2_http_non_final_response()
12777 nghttp2_frame_hd_init(&hd, 0, NGHTTP2_DATA, NGHTTP2_FLAG_END_STREAM, 7); in test_nghttp2_http_non_final_response()
12778 nghttp2_frame_pack_frame_hd(bufs.head->buf.last, &hd); in test_nghttp2_http_non_final_response()
12788 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_http_non_final_response()
12899 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_http_trailer_headers()
12928 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_http_trailer_headers()
12999 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_http_ignore_regular_header()
13057 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_http_ignore_regular_header()
13058 CU_ASSERT(1 == item->frame.hd.stream_id); in test_nghttp2_http_ignore_regular_header()
13279 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_http_push_promise()
13280 CU_ASSERT(4 == item->frame.hd.stream_id); in test_nghttp2_http_push_promise()
13373 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type); in test_nghttp2_http_no_rfc9113_leading_and_trailing_ws_validation()