2 * nghttp2 - HTTP/2 C Library
4 * Copyright (c) 2012 Tatsuhiro Tsujikawa
6 * Permission is hereby granted, free of charge, to any person obtaining
7 * a copy of this software and associated documentation files (the
8 * "Software"), to deal in the Software without restriction, including
9 * without limitation the rights to use, copy, modify, merge, publish,
10 * distribute, sublicense, and/or sell copies of the Software, and to
11 * permit persons to whom the Software is furnished to do so, subject to
12 * the following conditions:
14 * The above copyright notice and this permission notice shall be
15 * included in all copies or substantial portions of the Software.
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
22 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 #ifndef NGHTTP2_SESSION_TEST_H
26 #define NGHTTP2_SESSION_TEST_H
28 void test_nghttp2_session_recv(void);
29 void test_nghttp2_session_recv_invalid_stream_id(void);
30 void test_nghttp2_session_recv_invalid_frame(void);
31 void test_nghttp2_session_recv_eof(void);
32 void test_nghttp2_session_recv_data(void);
33 void test_nghttp2_session_recv_continuation(void);
34 void test_nghttp2_session_recv_headers_with_priority(void);
35 void test_nghttp2_session_recv_premature_headers(void);
36 void test_nghttp2_session_recv_unknown_frame(void);
37 void test_nghttp2_session_recv_unexpected_continuation(void);
38 void test_nghttp2_session_recv_settings_header_table_size(void);
39 void test_nghttp2_session_recv_too_large_frame_length(void);
40 void test_nghttp2_session_continue(void);
41 void test_nghttp2_session_add_frame(void);
42 void test_nghttp2_session_on_request_headers_received(void);
43 void test_nghttp2_session_on_response_headers_received(void);
44 void test_nghttp2_session_on_headers_received(void);
45 void test_nghttp2_session_on_push_response_headers_received(void);
46 void test_nghttp2_session_on_priority_received(void);
47 void test_nghttp2_session_on_rst_stream_received(void);
48 void test_nghttp2_session_on_settings_received(void);
49 void test_nghttp2_session_on_push_promise_received(void);
50 void test_nghttp2_session_on_ping_received(void);
51 void test_nghttp2_session_on_goaway_received(void);
52 void test_nghttp2_session_on_window_update_received(void);
53 void test_nghttp2_session_on_data_received(void);
54 void test_nghttp2_session_send_headers_start_stream(void);
55 void test_nghttp2_session_send_headers_reply(void);
56 void test_nghttp2_session_send_headers_frame_size_error(void);
57 void test_nghttp2_session_send_headers_push_reply(void);
58 void test_nghttp2_session_send_rst_stream(void);
59 void test_nghttp2_session_send_push_promise(void);
60 void test_nghttp2_session_is_my_stream_id(void);
61 void test_nghttp2_session_upgrade(void);
62 void test_nghttp2_session_reprioritize_stream(void);
63 void test_nghttp2_session_reprioritize_stream_with_idle_stream_dep(void);
64 void test_nghttp2_submit_data(void);
65 void test_nghttp2_submit_data_read_length_too_large(void);
66 void test_nghttp2_submit_data_read_length_smallest(void);
67 void test_nghttp2_submit_data_twice(void);
68 void test_nghttp2_submit_request_with_data(void);
69 void test_nghttp2_submit_request_without_data(void);
70 void test_nghttp2_submit_response_with_data(void);
71 void test_nghttp2_submit_response_without_data(void);
72 void test_nghttp2_submit_trailer(void);
73 void test_nghttp2_submit_headers_start_stream(void);
74 void test_nghttp2_submit_headers_reply(void);
75 void test_nghttp2_submit_headers_push_reply(void);
76 void test_nghttp2_submit_headers(void);
77 void test_nghttp2_submit_headers_continuation(void);
78 void test_nghttp2_submit_priority(void);
79 void test_nghttp2_submit_settings(void);
80 void test_nghttp2_submit_settings_update_local_window_size(void);
81 void test_nghttp2_submit_push_promise(void);
82 void test_nghttp2_submit_window_update(void);
83 void test_nghttp2_submit_window_update_local_window_size(void);
84 void test_nghttp2_submit_shutdown_notice(void);
85 void test_nghttp2_submit_invalid_nv(void);
86 void test_nghttp2_session_open_stream(void);
87 void test_nghttp2_session_open_stream_with_idle_stream_dep(void);
88 void test_nghttp2_session_get_next_ob_item(void);
89 void test_nghttp2_session_pop_next_ob_item(void);
90 void test_nghttp2_session_reply_fail(void);
91 void test_nghttp2_session_max_concurrent_streams(void);
92 void test_nghttp2_session_stream_close_on_headers_push(void);
93 void test_nghttp2_session_stop_data_with_rst_stream(void);
94 void test_nghttp2_session_defer_data(void);
95 void test_nghttp2_session_flow_control(void);
96 void test_nghttp2_session_flow_control_data_recv(void);
97 void test_nghttp2_session_flow_control_data_with_padding_recv(void);
98 void test_nghttp2_session_data_read_temporal_failure(void);
99 void test_nghttp2_session_on_stream_close(void);
100 void test_nghttp2_session_on_ctrl_not_send(void);
101 void test_nghttp2_session_get_outbound_queue_size(void);
102 void test_nghttp2_session_get_effective_local_window_size(void);
103 void test_nghttp2_session_set_option(void);
104 void test_nghttp2_session_data_backoff_by_high_pri_frame(void);
105 void test_nghttp2_session_pack_data_with_padding(void);
106 void test_nghttp2_session_pack_headers_with_padding(void);
107 void test_nghttp2_pack_settings_payload(void);
108 void test_nghttp2_session_stream_dep_add(void);
109 void test_nghttp2_session_stream_dep_remove(void);
110 void test_nghttp2_session_stream_dep_add_subtree(void);
111 void test_nghttp2_session_stream_dep_remove_subtree(void);
112 void test_nghttp2_session_stream_dep_all_your_stream_are_belong_to_us(void);
113 void test_nghttp2_session_stream_attach_item(void);
114 void test_nghttp2_session_stream_attach_item_subtree(void);
115 void test_nghttp2_session_keep_closed_stream(void);
116 void test_nghttp2_session_keep_idle_stream(void);
117 void test_nghttp2_session_detach_idle_stream(void);
118 void test_nghttp2_session_large_dep_tree(void);
119 void test_nghttp2_session_graceful_shutdown(void);
120 void test_nghttp2_session_on_header_temporal_failure(void);
121 void test_nghttp2_session_recv_client_magic(void);
122 void test_nghttp2_session_delete_data_item(void);
123 void test_nghttp2_session_open_idle_stream(void);
124 void test_nghttp2_session_cancel_reserved_remote(void);
125 void test_nghttp2_session_reset_pending_headers(void);
126 void test_nghttp2_session_send_data_callback(void);
127 void test_nghttp2_session_on_begin_headers_temporal_failure(void);
128 void test_nghttp2_http_mandatory_headers(void);
129 void test_nghttp2_http_content_length(void);
130 void test_nghttp2_http_content_length_mismatch(void);
131 void test_nghttp2_http_non_final_response(void);
132 void test_nghttp2_http_trailer_headers(void);
133 void test_nghttp2_http_ignore_regular_header(void);
134 void test_nghttp2_http_ignore_content_length(void);
135 void test_nghttp2_http_record_request_method(void);
136 void test_nghttp2_http_push_promise(void);
138 #endif /* NGHTTP2_SESSION_TEST_H */