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
036efc10
Commit
036efc10
authored
Feb 26, 2012
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Separated SPDY2 and SPDY3 tests to ease debugging
parent
d5cc71c6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
24 deletions
+53
-24
tests/main.c
tests/main.c
+16
-7
tests/spdylay_frame_test.c
tests/spdylay_frame_test.c
+29
-13
tests/spdylay_frame_test.h
tests/spdylay_frame_test.h
+8
-4
No files found.
tests/main.c
View file @
036efc10
...
...
@@ -135,7 +135,10 @@ int main(int argc, char* argv[])
test_spdylay_session_defer_data
)
||
!
CU_add_test
(
pSuite
,
"session_flow_control"
,
test_spdylay_session_flow_control
)
||
!
CU_add_test
(
pSuite
,
"frame_unpack_nv"
,
test_spdylay_frame_unpack_nv
)
||
!
CU_add_test
(
pSuite
,
"frame_unpack_nv_spdy2"
,
test_spdylay_frame_unpack_nv_spdy2
)
||
!
CU_add_test
(
pSuite
,
"frame_unpack_nv_spdy3"
,
test_spdylay_frame_unpack_nv_spdy3
)
||
!
CU_add_test
(
pSuite
,
"frame_count_nv_space"
,
test_spdylay_frame_count_nv_space
)
||
!
CU_add_test
(
pSuite
,
"frame_count_unpack_nv_space"
,
...
...
@@ -145,12 +148,18 @@ int main(int argc, char* argv[])
test_spdylay_frame_pack_goaway_spdy2
)
||
!
CU_add_test
(
pSuite
,
"frame_pack_goaway_spdy3"
,
test_spdylay_frame_pack_goaway_spdy3
)
||
!
CU_add_test
(
pSuite
,
"frame_pack_syn_stream"
,
test_spdylay_frame_pack_syn_stream
)
||
!
CU_add_test
(
pSuite
,
"frame_pack_syn_reply"
,
test_spdylay_frame_pack_syn_reply
)
||
!
CU_add_test
(
pSuite
,
"frame_pack_headers"
,
test_spdylay_frame_pack_headers
)
||
!
CU_add_test
(
pSuite
,
"frame_pack_syn_stream_spdy2"
,
test_spdylay_frame_pack_syn_stream_spdy2
)
||
!
CU_add_test
(
pSuite
,
"frame_pack_syn_stream_spdy3"
,
test_spdylay_frame_pack_syn_stream_spdy3
)
||
!
CU_add_test
(
pSuite
,
"frame_pack_syn_reply_spdy2"
,
test_spdylay_frame_pack_syn_reply_spdy2
)
||
!
CU_add_test
(
pSuite
,
"frame_pack_syn_reply_spdy3"
,
test_spdylay_frame_pack_syn_reply_spdy3
)
||
!
CU_add_test
(
pSuite
,
"frame_pack_headers_spdy2"
,
test_spdylay_frame_pack_headers_spdy2
)
||
!
CU_add_test
(
pSuite
,
"frame_pack_headers_spdy3"
,
test_spdylay_frame_pack_headers_spdy3
)
||
!
CU_add_test
(
pSuite
,
"frame_pack_window_update"
,
test_spdylay_frame_pack_window_update
)
||
!
CU_add_test
(
pSuite
,
"frame_pack_settings"
,
...
...
tests/spdylay_frame_test.c
View file @
036efc10
...
...
@@ -60,9 +60,13 @@ void test_spdylay_frame_unpack_nv_with(size_t len_size)
spdylay_frame_nv_del
(
nv
);
}
void
test_spdylay_frame_unpack_nv
()
void
test_spdylay_frame_unpack_nv
_spdy2
()
{
test_spdylay_frame_unpack_nv_with
(
2
);
}
void
test_spdylay_frame_unpack_nv_spdy3
()
{
test_spdylay_frame_unpack_nv_with
(
4
);
}
...
...
@@ -256,7 +260,7 @@ void test_spdylay_frame_pack_goaway_spdy3()
test_spdylay_frame_pack_goaway_version
(
SPDYLAY_PROTO_SPDY3
);
}
void
test_spdylay_frame_pack_syn_stream_
with
(
uint16_t
version
)
void
test_spdylay_frame_pack_syn_stream_
version
(
uint16_t
version
)
{
spdylay_zlib
deflater
,
inflater
;
spdylay_frame
frame
,
oframe
;
...
...
@@ -299,13 +303,17 @@ void test_spdylay_frame_pack_syn_stream_with(uint16_t version)
spdylay_buffer_free
(
&
inflatebuf
);
}
void
test_spdylay_frame_pack_syn_stream
()
void
test_spdylay_frame_pack_syn_stream_spdy2
()
{
test_spdylay_frame_pack_syn_stream_version
(
SPDYLAY_PROTO_SPDY2
);
}
void
test_spdylay_frame_pack_syn_stream_spdy3
()
{
test_spdylay_frame_pack_syn_stream_with
(
SPDYLAY_PROTO_SPDY2
);
test_spdylay_frame_pack_syn_stream_with
(
SPDYLAY_PROTO_SPDY3
);
test_spdylay_frame_pack_syn_stream_version
(
SPDYLAY_PROTO_SPDY3
);
}
void
test_spdylay_frame_pack_syn_reply_
with
(
uint16_t
version
)
void
test_spdylay_frame_pack_syn_reply_
version
(
uint16_t
version
)
{
spdylay_zlib
deflater
,
inflater
;
spdylay_frame
frame
,
oframe
;
...
...
@@ -347,13 +355,17 @@ void test_spdylay_frame_pack_syn_reply_with(uint16_t version)
spdylay_buffer_free
(
&
inflatebuf
);
}
void
test_spdylay_frame_pack_syn_reply
()
void
test_spdylay_frame_pack_syn_reply
_spdy2
()
{
test_spdylay_frame_pack_syn_reply_with
(
SPDYLAY_PROTO_SPDY2
);
test_spdylay_frame_pack_syn_reply_with
(
SPDYLAY_PROTO_SPDY3
);
test_spdylay_frame_pack_syn_reply_version
(
SPDYLAY_PROTO_SPDY2
);
}
void
test_spdylay_frame_pack_headers_with
(
uint16_t
version
)
void
test_spdylay_frame_pack_syn_reply_spdy3
()
{
test_spdylay_frame_pack_syn_reply_version
(
SPDYLAY_PROTO_SPDY3
);
}
void
test_spdylay_frame_pack_headers_version
(
uint16_t
version
)
{
spdylay_zlib
deflater
,
inflater
;
spdylay_frame
frame
,
oframe
;
...
...
@@ -395,10 +407,14 @@ void test_spdylay_frame_pack_headers_with(uint16_t version)
spdylay_buffer_free
(
&
inflatebuf
);
}
void
test_spdylay_frame_pack_headers
()
void
test_spdylay_frame_pack_headers_spdy2
()
{
test_spdylay_frame_pack_headers_version
(
SPDYLAY_PROTO_SPDY2
);
}
void
test_spdylay_frame_pack_headers_spdy3
()
{
test_spdylay_frame_pack_headers_with
(
SPDYLAY_PROTO_SPDY2
);
test_spdylay_frame_pack_headers_with
(
SPDYLAY_PROTO_SPDY3
);
test_spdylay_frame_pack_headers_version
(
SPDYLAY_PROTO_SPDY3
);
}
void
test_spdylay_frame_pack_window_update
()
...
...
tests/spdylay_frame_test.h
View file @
036efc10
...
...
@@ -25,16 +25,20 @@
#ifndef SPDYLAY_FRAME_TEST_H
#define SPDYLAY_FRAME_TEST_H
void
test_spdylay_frame_unpack_nv
();
void
test_spdylay_frame_unpack_nv_spdy2
();
void
test_spdylay_frame_unpack_nv_spdy3
();
void
test_spdylay_frame_pack_nv_duplicate_keys
();
void
test_spdylay_frame_count_nv_space
();
void
test_spdylay_frame_count_unpack_nv_space
();
void
test_spdylay_frame_pack_ping
();
void
test_spdylay_frame_pack_goaway_spdy2
();
void
test_spdylay_frame_pack_goaway_spdy3
();
void
test_spdylay_frame_pack_syn_stream
();
void
test_spdylay_frame_pack_syn_reply
();
void
test_spdylay_frame_pack_headers
();
void
test_spdylay_frame_pack_syn_stream_spdy2
();
void
test_spdylay_frame_pack_syn_stream_spdy3
();
void
test_spdylay_frame_pack_syn_reply_spdy2
();
void
test_spdylay_frame_pack_syn_reply_spdy3
();
void
test_spdylay_frame_pack_headers_spdy2
();
void
test_spdylay_frame_pack_headers_spdy3
();
void
test_spdylay_frame_pack_window_update
();
void
test_spdylay_frame_pack_settings
();
void
test_spdylay_frame_nv_sort
();
...
...
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