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
feae76fb
Commit
feae76fb
authored
Dec 18, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused commented lines
parent
80f7abb5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
45 deletions
+0
-45
tests/main.c
tests/main.c
+0
-2
tests/nghttp2_session_test.c
tests/nghttp2_session_test.c
+0
-42
tests/nghttp2_session_test.h
tests/nghttp2_session_test.h
+0
-1
No files found.
tests/main.c
View file @
feae76fb
...
@@ -206,8 +206,6 @@ int main(int argc _U_, char *argv[] _U_) {
...
@@ -206,8 +206,6 @@ int main(int argc _U_, char *argv[] _U_) {
test_nghttp2_session_reply_fail
)
||
test_nghttp2_session_reply_fail
)
||
!
CU_add_test
(
pSuite
,
"session_max_concurrent_streams"
,
!
CU_add_test
(
pSuite
,
"session_max_concurrent_streams"
,
test_nghttp2_session_max_concurrent_streams
)
||
test_nghttp2_session_max_concurrent_streams
)
||
!
CU_add_test
(
pSuite
,
"session_stream_close_on_headers_push"
,
test_nghttp2_session_stream_close_on_headers_push
)
||
!
CU_add_test
(
pSuite
,
"session_stop_data_with_rst_stream"
,
!
CU_add_test
(
pSuite
,
"session_stop_data_with_rst_stream"
,
test_nghttp2_session_stop_data_with_rst_stream
)
||
test_nghttp2_session_stop_data_with_rst_stream
)
||
!
CU_add_test
(
pSuite
,
"session_defer_data"
,
!
CU_add_test
(
pSuite
,
"session_defer_data"
,
...
...
tests/nghttp2_session_test.c
View file @
feae76fb
...
@@ -338,16 +338,6 @@ static int send_data_callback(nghttp2_session *session _U_,
...
@@ -338,16 +338,6 @@ static int send_data_callback(nghttp2_session *session _U_,
return
0
;
return
0
;
}
}
/* static void no_stream_user_data_stream_close_callback */
/* (nghttp2_session *session, */
/* int32_t stream_id, */
/* nghttp2_error_code error_code, */
/* void *user_data) */
/* { */
/* my_user_data* my_data = (my_user_data*)user_data; */
/* ++my_data->stream_close_cb_called; */
/* } */
static
ssize_t
block_count_send_callback
(
nghttp2_session
*
session
_U_
,
static
ssize_t
block_count_send_callback
(
nghttp2_session
*
session
_U_
,
const
uint8_t
*
data
_U_
,
size_t
len
,
const
uint8_t
*
data
_U_
,
size_t
len
,
int
flags
_U_
,
void
*
user_data
)
{
int
flags
_U_
,
void
*
user_data
)
{
...
@@ -5249,38 +5239,6 @@ void test_nghttp2_session_max_concurrent_streams(void) {
...
@@ -5249,38 +5239,6 @@ void test_nghttp2_session_max_concurrent_streams(void) {
nghttp2_session_del
(
session
);
nghttp2_session_del
(
session
);
}
}
/*
* Check that on_stream_close_callback is called when server pushed
* HEADERS have NGHTTP2_FLAG_END_STREAM.
*/
void
test_nghttp2_session_stream_close_on_headers_push
(
void
)
{
/* nghttp2_session *session; */
/* nghttp2_session_callbacks callbacks; */
/* const char *nv[] = { NULL }; */
/* my_user_data ud; */
/* nghttp2_frame frame; */
/* memset(&callbacks, 0, sizeof(nghttp2_session_callbacks)); */
/* callbacks.on_stream_close_callback = */
/* no_stream_user_data_stream_close_callback; */
/* ud.stream_close_cb_called = 0; */
/* nghttp2_session_client_new(&session, NGHTTP2_PROTO_SPDY2, &callbacks, &ud);
*/
/* nghttp2_session_open_stream(session, 1, NGHTTP2_CTRL_FLAG_NONE, 3, */
/* NGHTTP2_STREAM_OPENING, NULL); */
/* nghttp2_frame_syn_stream_init(&frame.syn_stream, NGHTTP2_PROTO_SPDY2, */
/* NGHTTP2_CTRL_FLAG_FIN | */
/* NGHTTP2_CTRL_FLAG_UNIDIRECTIONAL, */
/* 2, 1, 3, dup_nv(nv)); */
/* CU_ASSERT(0 == nghttp2_session_on_request_headers_received(session,
* &frame)); */
/* nghttp2_frame_syn_stream_free(&frame.syn_stream); */
/* nghttp2_session_del(session); */
}
void
test_nghttp2_session_stop_data_with_rst_stream
(
void
)
{
void
test_nghttp2_session_stop_data_with_rst_stream
(
void
)
{
nghttp2_session
*
session
;
nghttp2_session
*
session
;
nghttp2_session_callbacks
callbacks
;
nghttp2_session_callbacks
callbacks
;
...
...
tests/nghttp2_session_test.h
View file @
feae76fb
...
@@ -95,7 +95,6 @@ void test_nghttp2_session_get_next_ob_item(void);
...
@@ -95,7 +95,6 @@ void test_nghttp2_session_get_next_ob_item(void);
void
test_nghttp2_session_pop_next_ob_item
(
void
);
void
test_nghttp2_session_pop_next_ob_item
(
void
);
void
test_nghttp2_session_reply_fail
(
void
);
void
test_nghttp2_session_reply_fail
(
void
);
void
test_nghttp2_session_max_concurrent_streams
(
void
);
void
test_nghttp2_session_max_concurrent_streams
(
void
);
void
test_nghttp2_session_stream_close_on_headers_push
(
void
);
void
test_nghttp2_session_stop_data_with_rst_stream
(
void
);
void
test_nghttp2_session_stop_data_with_rst_stream
(
void
);
void
test_nghttp2_session_defer_data
(
void
);
void
test_nghttp2_session_defer_data
(
void
);
void
test_nghttp2_session_flow_control
(
void
);
void
test_nghttp2_session_flow_control
(
void
);
...
...
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