Lines Matching refs:oframe

74   nghttp2_headers frame, oframe;
105 CU_ASSERT(0 == unpack_framebuf((nghttp2_frame *)&oframe, &bufs));
110 1000000007, &oframe.hd);
112 CU_ASSERT(NGHTTP2_DEFAULT_WEIGHT == oframe.pri_spec.weight);
122 nghttp2_frame_headers_free(&oframe, mem);
126 memset(&oframe, 0, sizeof(oframe));
135 CU_ASSERT(0 == unpack_framebuf((nghttp2_frame *)&oframe, &bufs));
141 1000000007, &oframe.hd);
143 CU_ASSERT(1000000009 == oframe.pri_spec.stream_id);
144 CU_ASSERT(12 == oframe.pri_spec.weight);
145 CU_ASSERT(1 == oframe.pri_spec.exclusive);
148 nghttp2_frame_priority_len(oframe.hd.flags);
152 nghttp2_frame_priority_len(oframe.hd.flags),
158 nghttp2_frame_headers_free(&oframe, mem);
210 nghttp2_priority frame, oframe;
223 CU_ASSERT(0 == unpack_framebuf((nghttp2_frame *)&oframe, &bufs));
225 &oframe.hd);
227 CU_ASSERT(1000000009 == oframe.pri_spec.stream_id);
228 CU_ASSERT(12 == oframe.pri_spec.weight);
229 CU_ASSERT(1 == oframe.pri_spec.exclusive);
231 nghttp2_frame_priority_free(&oframe);
239 nghttp2_rst_stream frame, oframe;
248 CU_ASSERT(0 == unpack_framebuf((nghttp2_frame *)&oframe, &bufs));
250 &oframe.hd);
251 CU_ASSERT(NGHTTP2_PROTOCOL_ERROR == oframe.error_code);
253 nghttp2_frame_rst_stream_free(&oframe);
260 CU_ASSERT(0 == unpack_framebuf((nghttp2_frame *)&oframe, &bufs));
263 &oframe.hd);
265 CU_ASSERT(1000000009 == oframe.error_code);
267 nghttp2_frame_rst_stream_free(&oframe);
275 nghttp2_settings frame, oframe;
295 CU_ASSERT(0 == unpack_framebuf((nghttp2_frame *)&oframe, &bufs));
297 NGHTTP2_FLAG_NONE, 0, &oframe.hd);
298 CU_ASSERT(3 == oframe.niv);
300 CU_ASSERT(iv[i].settings_id == oframe.iv[i].settings_id);
301 CU_ASSERT(iv[i].value == oframe.iv[i].value);
306 nghttp2_frame_settings_free(&oframe, mem);
312 nghttp2_push_promise frame, oframe;
336 CU_ASSERT(0 == unpack_framebuf((nghttp2_frame *)&oframe, &bufs));
340 &oframe.hd);
341 CU_ASSERT((1U << 31) - 1 == oframe.promised_stream_id);
353 nghttp2_frame_push_promise_free(&oframe, mem);
360 nghttp2_ping frame, oframe;
370 CU_ASSERT(0 == unpack_framebuf((nghttp2_frame *)&oframe, &bufs));
371 check_frame_header(8, NGHTTP2_PING, NGHTTP2_FLAG_ACK, 0, &oframe.hd);
372 CU_ASSERT(memcmp(opaque_data, oframe.opaque_data, sizeof(opaque_data) - 1) ==
376 nghttp2_frame_ping_free(&oframe);
381 nghttp2_goaway frame, oframe;
400 CU_ASSERT(0 == unpack_framebuf((nghttp2_frame *)&oframe, &bufs));
401 check_frame_header(24, NGHTTP2_GOAWAY, NGHTTP2_FLAG_NONE, 0, &oframe.hd);
402 CU_ASSERT(1000000007 == oframe.last_stream_id);
403 CU_ASSERT(NGHTTP2_PROTOCOL_ERROR == oframe.error_code);
405 CU_ASSERT(opaque_data_len == oframe.opaque_data_len);
406 CU_ASSERT(memcmp(opaque_data, oframe.opaque_data, opaque_data_len) == 0);
408 nghttp2_frame_goaway_free(&oframe, mem);
417 CU_ASSERT(0 == unpack_framebuf((nghttp2_frame *)&oframe, &bufs));
418 check_frame_header(24, NGHTTP2_GOAWAY, NGHTTP2_FLAG_NONE, 0, &oframe.hd);
419 CU_ASSERT(1000000009 == oframe.error_code);
421 nghttp2_frame_goaway_free(&oframe, mem);
429 nghttp2_window_update frame, oframe;
438 CU_ASSERT(0 == unpack_framebuf((nghttp2_frame *)&oframe, &bufs));
440 &oframe.hd);
441 CU_ASSERT(4096 == oframe.window_size_increment);
444 nghttp2_frame_window_update_free(&oframe);
449 nghttp2_extension frame, oframe;
465 oframe.payload = &oaltsvc;
483 rv = unpack_framebuf((nghttp2_frame *)&oframe, &bufs);
488 &oframe.hd);
496 nghttp2_frame_altsvc_free(&oframe, mem);
502 nghttp2_extension frame, oframe;
531 oframe.payload = &oorigin;
542 rv = unpack_framebuf((nghttp2_frame *)&oframe, &bufs);
547 &oframe.hd);
555 nghttp2_frame_origin_free(&oframe, mem);
562 rv = unpack_framebuf((nghttp2_frame *)&oframe, &bufs);
567 memset(&oframe, 0, sizeof(oframe));
569 oframe.payload = &oorigin;
579 rv = unpack_framebuf((nghttp2_frame *)&oframe, &bufs);
583 check_frame_header(0, NGHTTP2_ORIGIN, NGHTTP2_FLAG_NONE, 0, &oframe.hd);
588 nghttp2_frame_origin_free(&oframe, mem);
594 nghttp2_extension frame, oframe;
604 oframe.payload = &opriority_update;
615 rv = unpack_framebuf((nghttp2_frame *)&oframe, &bufs);
620 &oframe.hd);