| 1924 | } |
| 1925 | |
| 1926 | int |
| 1927 | chunk_complete_cb (http_parser *p) |
| 1928 | { |
| 1929 | assert(p == parser); |
| 1930 | |
| 1931 | /* Here we want to verify that each chunk_header_cb is matched by a |
| 1932 | * chunk_complete_cb, so not only should the total number of calls to |
| 1933 | * both callbacks be the same, but they also should be interleaved |
| 1934 | * properly */ |
| 1935 | assert(messages[num_messages].num_chunks == |
| 1936 | messages[num_messages].num_chunks_complete + 1); |
| 1937 | |
| 1938 | messages[num_messages].num_chunks_complete++; |
| 1939 | return 0; |
| 1940 | } |
| 1941 | |
| 1942 | /* These dontcall_* callbacks exist so that we can verify that when we're |
| 1943 | * paused, no additional callbacks are invoked */ |
no outgoing calls
no test coverage detected