Check that SYN_STREAM pri is stored in stream
This commit is contained in:
parent
800b362935
commit
43c0ef8151
|
@ -254,6 +254,7 @@ void test_spdylay_session_on_syn_stream_received()
|
||||||
my_user_data user_data;
|
my_user_data user_data;
|
||||||
const char *nv[] = { NULL };
|
const char *nv[] = { NULL };
|
||||||
spdylay_frame frame;
|
spdylay_frame frame;
|
||||||
|
spdylay_stream *stream;
|
||||||
user_data.valid = 0;
|
user_data.valid = 0;
|
||||||
user_data.invalid = 0;
|
user_data.invalid = 0;
|
||||||
|
|
||||||
|
@ -263,8 +264,9 @@ void test_spdylay_session_on_syn_stream_received()
|
||||||
|
|
||||||
CU_ASSERT(0 == spdylay_session_on_syn_stream_received(session, &frame));
|
CU_ASSERT(0 == spdylay_session_on_syn_stream_received(session, &frame));
|
||||||
CU_ASSERT(1 == user_data.valid);
|
CU_ASSERT(1 == user_data.valid);
|
||||||
CU_ASSERT(SPDYLAY_STREAM_OPENING ==
|
stream = (spdylay_stream*)spdylay_map_find(&session->streams, 2);
|
||||||
((spdylay_stream*)spdylay_map_find(&session->streams, 2))->state);
|
CU_ASSERT(SPDYLAY_STREAM_OPENING == stream->state);
|
||||||
|
CU_ASSERT(3 == stream->pri);
|
||||||
|
|
||||||
CU_ASSERT(0 == spdylay_session_on_syn_stream_received(session, &frame));
|
CU_ASSERT(0 == spdylay_session_on_syn_stream_received(session, &frame));
|
||||||
CU_ASSERT(1 == user_data.invalid);
|
CU_ASSERT(1 == user_data.invalid);
|
||||||
|
|
Loading…
Reference in New Issue