Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc
Commits
ee50c987
Commit
ee50c987
authored
Dec 14, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
https: test refused stream in frame parser
parent
cc0dc931
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
modules/access/http/h2frame_test.c
modules/access/http/h2frame_test.c
+14
-8
No files found.
modules/access/http/h2frame_test.c
View file @
ee50c987
...
...
@@ -186,8 +186,9 @@ static void vlc_h2_stream_end(void *ctx)
static
int
vlc_h2_stream_error
(
void
*
ctx
,
uint_fast32_t
id
,
uint_fast32_t
code
)
{
assert
(
ctx
==
CTX
);
assert
(
id
==
STREAM_ID
);
assert
(
code
==
VLC_H2_PROTOCOL_ERROR
);
assert
(
id
==
STREAM_ID
+
2
);
assert
(
code
==
VLC_H2_REFUSED_STREAM
);
return
0
;
}
...
...
@@ -313,9 +314,8 @@ int main(void)
ret
=
test_seq
(
CTX
,
NULL
);
assert
(
ret
==
0
);
ret
=
test_seq
(
CTX
,
ping
(),
vlc_h2_frame_pong
(
42
),
ping
(),
vlc_h2_frame_window_update
(
0
,
0x1000
),
NULL
);
assert
(
ret
==
4
);
ret
=
test_seq
(
CTX
,
ping
(),
vlc_h2_frame_pong
(
42
),
ping
(),
NULL
);
assert
(
ret
==
3
);
assert
(
pings
==
2
);
assert
(
stream_header_tables
==
0
);
assert
(
stream_blocks
==
0
);
...
...
@@ -330,15 +330,21 @@ int main(void)
ret
=
test_seq
(
CTX
,
response
(
false
),
data
(
true
),
ping
(),
response
(
false
),
data
(
false
),
data
(
true
),
response
(
false
),
data
(
false
),
NULL
);
response
(
false
),
data
(
false
),
NULL
);
assert
(
ret
==
8
);
assert
(
pings
==
1
);
assert
(
stream_header_tables
==
3
);
assert
(
stream_blocks
==
4
);
assert
(
stream_ends
==
2
);
ret
=
test_seq
(
CTX
,
rst_stream
(),
NULL
);
assert
(
ret
==
1
);
ret
=
test_seq
(
CTX
,
rst_stream
(),
vlc_h2_frame_window_update
(
0
,
0x1000
),
vlc_h2_frame_headers
(
STREAM_ID
+
2
,
VLC_H2_DEFAULT_MAX_FRAME
,
true
,
resp_hdrc
,
resp_hdrv
),
NULL
);
assert
(
ret
==
3
);
assert
(
pings
==
0
);
assert
(
stream_header_tables
==
0
);
assert
(
stream_blocks
==
0
);
...
...
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