Lines Matching refs:hd

197                                    const nghttp2_frame_hd *hd,
201 (void)hd;
213 ud->recv_frame_type = frame->hd.type;
214 ud->recv_frame_hd = frame->hd;
237 ud->sent_frame_type = frame->hd.type;
248 ud->not_sent_frame_type = frame->hd.type;
299 return (ssize_t)nghttp2_min(max_payloadlen, frame->hd.length + ud->padlen);
610 const nghttp2_frame_hd *hd,
616 (void)hd;
624 const nghttp2_frame_hd *hd,
629 (void)hd;
638 const nghttp2_frame_hd *hd,
643 (void)hd;
652 const nghttp2_frame_hd *hd,
656 (void)hd;
765 (uint32_t)(((frame.hd.length + 16) << 8) + bufs.cur->buf.pos[3]));
778 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
909 nghttp2_frame_hd hd;
922 hd.length = 4096;
923 hd.type = NGHTTP2_DATA;
924 hd.flags = NGHTTP2_FLAG_NONE;
925 hd.stream_id = 1;
926 nghttp2_frame_pack_frame_hd(data, &hd);
938 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
984 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type);
985 CU_ASSERT(1 == item->frame.window_update.hd.stream_id);
1000 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type);
1001 CU_ASSERT(0 == item->frame.window_update.hd.stream_id);
1005 hd.length = 4096;
1006 hd.type = NGHTTP2_DATA;
1007 hd.flags = NGHTTP2_FLAG_NONE;
1008 hd.stream_id = 0;
1009 nghttp2_frame_pack_frame_hd(data, &hd);
1019 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
1027 hd.length = 4096;
1028 hd.type = NGHTTP2_DATA;
1029 hd.flags = NGHTTP2_FLAG_NONE;
1030 hd.stream_id = 1;
1031 nghttp2_frame_pack_frame_hd(data, &hd);
1043 hd.length = 4095;
1044 nghttp2_frame_pack_frame_hd(data, &hd);
1056 hd.length = 4096;
1057 nghttp2_frame_pack_frame_hd(data, &hd);
1092 nghttp2_frame_hd hd;
1112 hd.length = 4096 + 1 + padlen;
1113 hd.type = NGHTTP2_DATA;
1114 hd.flags = NGHTTP2_FLAG_PADDED;
1115 hd.stream_id = 1;
1116 nghttp2_frame_pack_frame_hd(data, &hd);
1138 NGHTTP2_FRAME_HDLEN + hd.length - sendlen);
1139 CU_ASSERT((ssize_t)(NGHTTP2_FRAME_HDLEN + hd.length - sendlen) == rv);
1142 CU_ASSERT((int32_t)(NGHTTP2_FRAME_HDLEN + hd.length - sendlen + 1) ==
1156 rv = nghttp2_session_mem_recv(session, data, NGHTTP2_FRAME_HDLEN + hd.length);
1157 CU_ASSERT((ssize_t)(NGHTTP2_FRAME_HDLEN + hd.length) == rv);
1161 CU_ASSERT((int32_t)hd.length == session->consumed_size);
1170 hd.length = 4096;
1171 hd.type = NGHTTP2_DATA;
1172 hd.flags = NGHTTP2_FLAG_NONE;
1173 hd.stream_id = 1;
1174 nghttp2_frame_pack_frame_hd(data, &hd);
1182 hd.length = 4095;
1183 nghttp2_frame_pack_frame_hd(data, &hd);
1422 nghttp2_session_get_next_ob_item(session)->frame.hd.type);
1527 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
1572 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
1587 nghttp2_frame_hd hd;
1602 nghttp2_frame_hd_init(&hd, 10, NGHTTP2_HEADERS,
1607 nghttp2_frame_pack_frame_hd(buf->last, &hd);
1629 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
1640 nghttp2_frame_hd_init(&hd, 9, NGHTTP2_PUSH_PROMISE,
1643 nghttp2_frame_pack_frame_hd(buf->last, &hd);
1664 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
1671 const nghttp2_frame_hd *hd,
1676 if (hd->type != NGHTTP2_HEADERS) {
1680 rv = nghttp2_submit_response(session, hd->stream_id, resnv, ARRLEN(resnv),
2023 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
2025 CU_ASSERT(1 == item->frame.hd.stream_id);
2055 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
2057 CU_ASSERT(2 == item->frame.hd.stream_id);
2071 nghttp2_frame_hd hd;
2074 nghttp2_frame_hd_init(&hd, 16000, 99, NGHTTP2_FLAG_NONE, 0);
2076 nghttp2_frame_pack_frame_hd(data, &hd);
2077 datalen = NGHTTP2_FRAME_HDLEN + hd.length;
2102 nghttp2_frame_hd hd;
2106 nghttp2_frame_hd_init(&hd, 16000, NGHTTP2_CONTINUATION,
2109 nghttp2_frame_pack_frame_hd(data, &hd);
2110 datalen = NGHTTP2_FRAME_HDLEN + hd.length;
2129 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
2316 nghttp2_frame_hd hd;
2319 nghttp2_frame_hd_init(&hd, NGHTTP2_MAX_FRAME_SIZE_MIN + 1, NGHTTP2_HEADERS,
2326 nghttp2_frame_pack_frame_hd(buf, &hd);
2333 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
2343 nghttp2_frame_hd hd;
2363 nghttp2_frame_hd_init(&hd, sizeof(data), 111, 0xab, 1000000007);
2364 nghttp2_frame_pack_frame_hd(buf.last, &hd);
2373 CU_ASSERT(NGHTTP2_FRAME_HDLEN + hd.length == (size_t)rv);
2392 CU_ASSERT(NGHTTP2_FRAME_HDLEN + hd.length == (size_t)rv);
2408 CU_ASSERT(NGHTTP2_FRAME_HDLEN + hd.length == (size_t)rv);
2424 nghttp2_frame_hd hd;
2446 nghttp2_frame_hd_init(&hd, 2 + sizeof(origin) - 1 + sizeof(field_value) - 1,
2448 nghttp2_frame_pack_frame_hd(buf.last, &hd);
2471 nghttp2_frame_hd_init(&hd, 2 + sizeof(origin) - 1 - 1, NGHTTP2_ALTSVC,
2473 nghttp2_frame_pack_frame_hd(buf.last, &hd);
2492 nghttp2_frame_hd_init(&hd, 2 + sizeof(origin) - 1, NGHTTP2_ALTSVC,
2494 nghttp2_frame_pack_frame_hd(buf.last, &hd);
2515 nghttp2_frame_hd_init(&hd, 2 + sizeof(origin) - 1 + sizeof(field_value) - 1,
2517 nghttp2_frame_pack_frame_hd(buf.last, &hd);
2537 nghttp2_frame_hd_init(&hd, 2 + sizeof(field_value) - 1, NGHTTP2_ALTSVC,
2539 nghttp2_frame_pack_frame_hd(buf.last, &hd);
2558 nghttp2_frame_hd_init(&hd, NGHTTP2_MAX_FRAME_SIZE_MIN, NGHTTP2_ALTSVC,
2560 nghttp2_frame_pack_frame_hd(buf.last, &hd);
2585 nghttp2_frame_hd_init(&hd, NGHTTP2_MAX_FRAME_SIZE_MIN + 1, NGHTTP2_ALTSVC,
2587 nghttp2_frame_pack_frame_hd(buf.last, &hd);
2608 nghttp2_frame_hd_init(&hd, 2 + sizeof(origin) - 1 + sizeof(field_value) - 1,
2610 nghttp2_frame_pack_frame_hd(buf.last, &hd);
2702 frame.hd.stream_id = 1;
2721 frame.hd.flags = 0xf0;
2936 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
2971 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
3062 CU_ASSERT(NGHTTP2_HEADERS == recv_frame->hd.type);
3063 CU_ASSERT(framelen1 - NGHTTP2_FRAME_HDLEN == recv_frame->hd.length);
3094 CU_ASSERT(NGHTTP2_HEADERS == recv_frame->hd.type);
3095 CU_ASSERT(framelen2 - NGHTTP2_FRAME_HDLEN == recv_frame->hd.length);
3467 frame.hd.flags |= NGHTTP2_FLAG_END_STREAM;
3475 frame.hd.stream_id = 3;
3476 frame.hd.flags = NGHTTP2_FLAG_END_HEADERS;
3486 frame.hd.flags = NGHTTP2_FLAG_END_HEADERS | NGHTTP2_FLAG_END_STREAM;
3487 frame.hd.stream_id = 2;
3544 frame.hd.stream_id = 4;
3549 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
3562 frame.hd.stream_id = 6;
3568 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
3605 frame.hd.stream_id = 2;
3615 frame.hd.stream_id = 100;
3619 stream = nghttp2_session_get_stream_raw(session, frame.hd.stream_id);
3639 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
3655 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
3692 nghttp2_frame_hd hd;
3763 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
3775 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
3839 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
3872 CU_ASSERT(NGHTTP2_SETTINGS == item->frame.hd.type);
3877 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
3901 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
3927 hd.length = 1024;
3928 hd.type = NGHTTP2_DATA;
3929 hd.flags = NGHTTP2_FLAG_NONE;
3930 hd.stream_id = 1;
3931 nghttp2_frame_pack_frame_hd(data, &hd);
3934 nghttp2_session_mem_recv(session, data, NGHTTP2_FRAME_HDLEN + hd.length);
3936 CU_ASSERT((ssize_t)(NGHTTP2_FRAME_HDLEN + hd.length) == nread);
3938 rv = nghttp2_session_consume(session, 1, hd.length);
3941 CU_ASSERT((int32_t)hd.length == stream->recv_window_size);
3942 CU_ASSERT((int32_t)hd.length == stream->consumed_size);
3956 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type);
3957 CU_ASSERT((int32_t)hd.length ==
3982 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
4038 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
4062 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
4063 CU_ASSERT(6 == item->frame.hd.stream_id);
4068 frame.hd.stream_id = 3;
4080 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
4081 CU_ASSERT(0 == item->frame.hd.stream_id);
4092 frame.hd.stream_id = 1;
4112 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
4232 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
4266 frame.hd.flags = NGHTTP2_FLAG_NONE;
4271 CU_ASSERT(NGHTTP2_PING == top->frame.hd.type);
4272 CU_ASSERT(NGHTTP2_FLAG_ACK == top->frame.hd.flags);
4460 nghttp2_frame_hd_init(&frame.hd, 4096, NGHTTP2_DATA, NGHTTP2_FLAG_NONE, 2);
4465 frame.hd.flags = NGHTTP2_FLAG_END_STREAM;
4473 frame.hd.flags = NGHTTP2_FLAG_NONE;
4474 frame.hd.stream_id = 1;
4482 frame.hd.stream_id = 3;
4497 nghttp2_frame_hd hd;
4502 nghttp2_frame_hd_init(&hd, 0, NGHTTP2_DATA, NGHTTP2_FLAG_NONE, 1);
4503 nghttp2_frame_pack_frame_hd(buf, &hd);
4517 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
4534 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
4976 CU_ASSERT(NGHTTP2_SETTINGS == item->frame.hd.type);
5231 nghttp2_frame_hd hd;
5255 nghttp2_frame_unpack_frame_hd(&hd, buf->pos);
5257 CU_ASSERT(NGHTTP2_FLAG_NONE == hd.flags);
5258 CU_ASSERT(NGHTTP2_FLAG_NONE == frame->hd.flags);
5271 nghttp2_frame_hd hd;
5297 nghttp2_frame_unpack_frame_hd(&hd, buf->pos);
5299 CU_ASSERT(NGHTTP2_FLAG_NONE == hd.flags);
5300 CU_ASSERT(NGHTTP2_FLAG_NONE == frame->hd.flags);
5301 CU_ASSERT(16384 == hd.length)
5329 nghttp2_frame_unpack_frame_hd(&hd, buf->pos);
5336 CU_ASSERT(NGHTTP2_FLAG_NONE == hd.flags);
5337 CU_ASSERT(NGHTTP2_FLAG_NONE == frame->hd.flags);
5338 CU_ASSERT(payloadlen == hd.length);
5351 nghttp2_frame_hd hd;
5376 nghttp2_frame_unpack_frame_hd(&hd, buf->pos);
5378 CU_ASSERT(NGHTTP2_FLAG_NONE == hd.flags);
5379 CU_ASSERT(NGHTTP2_FLAG_NONE == frame->hd.flags);
5380 CU_ASSERT(1 == hd.length)
5414 frame->hd.stream_id, &data_prd);
5518 CU_ASSERT(item->frame.hd.flags & NGHTTP2_FLAG_END_STREAM);
5618 CU_ASSERT(item->frame.hd.flags & NGHTTP2_FLAG_END_STREAM);
5698 CU_ASSERT(NGHTTP2_HEADERS == item->frame.hd.type);
5700 CU_ASSERT(item->frame.hd.flags & NGHTTP2_FLAG_END_STREAM);
5747 item->frame.hd.flags);
5748 CU_ASSERT(0 == (item->frame.hd.flags & NGHTTP2_FLAG_PRIORITY));
5775 item->frame.hd.flags);
5871 item->frame.hd.flags);
5963 CU_ASSERT(NGHTTP2_HEADERS == item->frame.hd.type);
5965 item->frame.hd.flags);
5966 CU_ASSERT(0 == (item->frame.hd.flags & NGHTTP2_FLAG_PRIORITY));
6007 CU_ASSERT(NGHTTP2_HEADERS == item->frame.hd.type);
6009 item->frame.hd.flags);
6010 CU_ASSERT(0 == (item->frame.hd.flags & NGHTTP2_FLAG_PRIORITY));
6106 CU_ASSERT(NGHTTP2_SETTINGS == item->frame.hd.type);
6226 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type);
6268 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
6416 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type);
6424 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type);
6432 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type);
6465 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type);
6503 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type);
6697 nghttp2_frame_hd hd;
6719 nghttp2_frame_unpack_frame_hd(&hd, data);
6721 CU_ASSERT(2 + sizeof(origin) - 1 + sizeof(field_value) - 1 == hd.length);
6722 CU_ASSERT(NGHTTP2_ALTSVC == hd.type);
6723 CU_ASSERT(NGHTTP2_FLAG_NONE == hd.flags);
6732 hd.length - (sizeof(origin) - 1) - 2));
6803 nghttp2_frame_unpack_frame_hd(&frame.hd, data);
6809 CU_ASSERT(0 == frame.hd.stream_id);
6810 CU_ASSERT(NGHTTP2_ORIGIN == frame.hd.type);
6843 nghttp2_frame_unpack_frame_hd(&frame.hd, data);
6845 CU_ASSERT(NGHTTP2_ORIGIN == frame.hd.type);
6891 nghttp2_frame_unpack_frame_hd(&frame.hd, data);
6896 CU_ASSERT(0 == frame.hd.stream_id);
6897 CU_ASSERT(NGHTTP2_PRIORITY_UPDATE == frame.hd.type);
6940 nghttp2_frame_unpack_frame_hd(&frame.hd, data);
6945 CU_ASSERT(0 == frame.hd.stream_id);
6946 CU_ASSERT(NGHTTP2_PRIORITY_UPDATE == frame.hd.type);
7004 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
7005 CU_ASSERT(1 == item->frame.hd.stream_id);
7022 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
7023 CU_ASSERT(2 == item->frame.hd.stream_id);
7038 CU_ASSERT(NGHTTP2_HEADERS == item->frame.hd.type);
7049 CU_ASSERT(NGHTTP2_HEADERS == item->frame.hd.type);
7193 nghttp2_session_get_next_ob_item(session)->frame.hd.type);
7197 nghttp2_session_get_next_ob_item(session)->frame.hd.type);
7211 nghttp2_session_get_next_ob_item(session)->frame.hd.type);
7221 nghttp2_session_get_next_ob_item(session)->frame.hd.type);
7259 CU_ASSERT(NGHTTP2_PING == item->frame.hd.type);
7264 CU_ASSERT(NGHTTP2_HEADERS == item->frame.hd.type);
7285 CU_ASSERT(NGHTTP2_HEADERS == item->frame.hd.type);
7343 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
7350 frame.hd.stream_id = 5;
7356 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
7519 frame.hd.stream_id = 0;
7539 frame.hd.stream_id = 1;
7548 frame.hd.stream_id = 1;
7553 frame.hd.stream_id = 0;
7575 frame.hd.stream_id = 0;
7593 nghttp2_frame_hd hd;
7612 nghttp2_frame_hd_init(&hd, NGHTTP2_MAX_PAYLOADLEN, NGHTTP2_DATA,
7615 nghttp2_frame_pack_frame_hd(data, &hd);
7623 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type);
7624 CU_ASSERT(0 == item->frame.hd.stream_id);
7640 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type);
7641 CU_ASSERT(0 == item->frame.hd.stream_id);
7652 nghttp2_frame_hd hd;
7673 nghttp2_frame_hd_init(&hd, 357, NGHTTP2_DATA, NGHTTP2_FLAG_PADDED, 1);
7675 nghttp2_frame_pack_frame_hd(data, &hd);
7680 (ssize_t)(NGHTTP2_FRAME_HDLEN + hd.length) ==
7681 nghttp2_session_mem_recv(session, data, NGHTTP2_FRAME_HDLEN + hd.length));
7683 CU_ASSERT((int32_t)hd.length == session->recv_window_size);
7684 CU_ASSERT((int32_t)hd.length == stream->recv_window_size);
7769 CU_ASSERT(NGHTTP2_DATA == stream->item->frame.hd.type);
7779 frame.hd.stream_id = 0;
8184 CU_ASSERT(frame->hd.flags & NGHTTP2_FLAG_PADDED);
10100 nghttp2_frame_hd hd;
10130 nghttp2_frame_hd_init(&hd,
10134 nghttp2_frame_pack_frame_hd(&buf->pos[hdpos], &hd);
10144 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
10145 CU_ASSERT(1 == item->frame.hd.stream_id);
10172 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
10173 CU_ASSERT(2 == item->frame.hd.stream_id);
10205 nghttp2_frame_pack_frame_hd(buf, &ping_frame.ping.hd);
10359 frame.hd.stream_id = 4;
10438 nghttp2_frame_hd hd;
10461 nghttp2_frame_unpack_frame_hd(&hd, acc.buf);
10463 CU_ASSERT(16384 == hd.length);
10464 CU_ASSERT(NGHTTP2_DATA == hd.type);
10465 CU_ASSERT(NGHTTP2_FLAG_NONE == hd.flags);
10467 nghttp2_frame_unpack_frame_hd(&hd, acc.buf + NGHTTP2_FRAME_HDLEN + hd.length);
10469 CU_ASSERT(16384 == hd.length);
10470 CU_ASSERT(NGHTTP2_DATA == hd.type);
10471 CU_ASSERT(NGHTTP2_FLAG_END_STREAM == hd.flags);
10511 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
10512 CU_ASSERT(1 == item->frame.hd.stream_id);
10538 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
10539 CU_ASSERT(2 == item->frame.hd.stream_id);
11104 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type);
11105 CU_ASSERT(1 == item->frame.window_update.hd.stream_id);
11159 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type);
11160 CU_ASSERT(0 == item->frame.window_update.hd.stream_id);
11223 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type);
11224 CU_ASSERT(1 == item->frame.hd.stream_id);
11251 CU_ASSERT(NGHTTP2_WINDOW_UPDATE == item->frame.hd.type);
11252 CU_ASSERT(0 == item->frame.hd.stream_id);
11401 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
11418 nghttp2_frame_hd hd;
11484 nghttp2_frame_hd_init(&hd, 0, NGHTTP2_DATA, NGHTTP2_FLAG_NONE, 3);
11486 nghttp2_frame_pack_frame_hd(bufs.head->buf.last, &hd);
11496 nghttp2_frame_hd_init(&hd, 0, NGHTTP2_SETTINGS, NGHTTP2_FLAG_ACK, 0);
11498 nghttp2_frame_pack_frame_hd(bufs.head->buf.last, &hd);
11517 nghttp2_frame_hd hd;
11565 nghttp2_frame_hd_init(&hd, 0, NGHTTP2_DATA, NGHTTP2_FLAG_NONE, 3);
11567 nghttp2_frame_pack_frame_hd(bufs.head->buf.last, &hd);
11749 CU_ASSERT(NGHTTP2_HEADERS == item->frame.hd.type);
11777 CU_ASSERT(NGHTTP2_HEADERS == item->frame.hd.type);
12063 CU_ASSERT(NGHTTP2_GOAWAY == item->frame.hd.type);
12109 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
12536 nghttp2_frame_hd hd;
12560 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
12571 nghttp2_frame_hd_init(&hd, 0, NGHTTP2_DATA, NGHTTP2_FLAG_END_STREAM, 3);
12572 nghttp2_frame_pack_frame_hd(bufs.head->buf.last, &hd);
12581 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
12592 nghttp2_frame_hd_init(&hd, 21, NGHTTP2_DATA, NGHTTP2_FLAG_END_STREAM, 5);
12593 nghttp2_frame_pack_frame_hd(bufs.head->buf.last, &hd);
12602 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
12633 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
12651 nghttp2_frame_hd_init(&hd, 0, NGHTTP2_DATA, NGHTTP2_FLAG_END_STREAM, 3);
12652 nghttp2_frame_pack_frame_hd(bufs.head->buf.last, &hd);
12661 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
12679 nghttp2_frame_hd_init(&hd, 21, NGHTTP2_DATA, NGHTTP2_FLAG_END_STREAM, 5);
12680 nghttp2_frame_pack_frame_hd(bufs.head->buf.last, &hd);
12689 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
12716 nghttp2_frame_hd hd;
12742 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
12755 nghttp2_frame_hd_init(&hd, 10, NGHTTP2_DATA, NGHTTP2_FLAG_END_STREAM, 3);
12756 nghttp2_frame_pack_frame_hd(bufs.head->buf.last, &hd);
12765 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
12779 nghttp2_frame_hd_init(&hd, 0, NGHTTP2_DATA, NGHTTP2_FLAG_NONE, 5);
12780 nghttp2_frame_pack_frame_hd(bufs.head->buf.last, &hd);
12800 nghttp2_frame_hd_init(&hd, 0, NGHTTP2_DATA, NGHTTP2_FLAG_END_STREAM, 7);
12801 nghttp2_frame_pack_frame_hd(bufs.head->buf.last, &hd);
12811 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
12922 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
12951 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
13022 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
13080 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
13081 CU_ASSERT(1 == item->frame.hd.stream_id);
13302 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);
13303 CU_ASSERT(4 == item->frame.hd.stream_id);
13396 CU_ASSERT(NGHTTP2_RST_STREAM == item->frame.hd.type);