Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
43c0ef81
Commit
43c0ef81
authored
Jan 25, 2012
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check that SYN_STREAM pri is stored in stream
parent
800b3629
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
tests/spdylay_session_test.c
tests/spdylay_session_test.c
+4
-2
No files found.
tests/spdylay_session_test.c
View file @
43c0ef81
...
...
@@ -254,6 +254,7 @@ void test_spdylay_session_on_syn_stream_received()
my_user_data
user_data
;
const
char
*
nv
[]
=
{
NULL
};
spdylay_frame
frame
;
spdylay_stream
*
stream
;
user_data
.
valid
=
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
(
1
==
user_data
.
valid
);
CU_ASSERT
(
SPDYLAY_STREAM_OPENING
==
((
spdylay_stream
*
)
spdylay_map_find
(
&
session
->
streams
,
2
))
->
state
);
stream
=
(
spdylay_stream
*
)
spdylay_map_find
(
&
session
->
streams
,
2
);
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
(
1
==
user_data
.
invalid
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment