Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tests/test_h1_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1067,16 +1067,16 @@ int s_slow_stream_get_length(struct aws_input_stream *stream, int64_t *out_lengt
*out_length = sender->cursor.len;
return AWS_OP_SUCCESS;
}
void s_slow_stream_clean_up(struct aws_input_stream *stream) {
(void)stream;
void s_slow_stream_destroy(struct aws_input_stream *stream) {
aws_mem_release(stream->allocator, stream);
}

static struct aws_input_stream_vtable s_slow_stream_vtable = {
.seek = NULL,
.read = s_slow_stream_read,
.get_status = s_slow_stream_get_status,
.get_length = s_slow_stream_get_length,
.clean_up = s_slow_stream_clean_up,
.destroy = s_slow_stream_destroy,
};

/* It should be fine to receive a response before the request has finished sending */
Expand Down Expand Up @@ -1475,16 +1475,16 @@ static int s_error_from_outgoing_body_get_status(struct aws_input_stream *body,
return AWS_OP_SUCCESS;
}

static void s_error_from_outgoing_body_clean_up(struct aws_input_stream *stream) {
(void)stream;
static void s_error_from_outgoing_body_destroy(struct aws_input_stream *stream) {
aws_mem_release(stream->allocator, stream);
}

static struct aws_input_stream_vtable s_error_from_outgoing_body_vtable = {
.seek = NULL,
.read = s_error_from_outgoing_body_read,
.get_status = s_error_from_outgoing_body_get_status,
.get_length = NULL,
.clean_up = s_error_from_outgoing_body_clean_up,
.destroy = s_error_from_outgoing_body_destroy,
};

static int s_error_from_incoming_headers(
Expand Down
6 changes: 3 additions & 3 deletions tests/test_h1_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -1186,16 +1186,16 @@ static int s_error_from_outgoing_body_get_status(struct aws_input_stream *body,
return AWS_OP_SUCCESS;
}

static void s_error_from_outgoing_body_clean_up(struct aws_input_stream *stream) {
(void)stream;
static void s_error_from_outgoing_body_destroy(struct aws_input_stream *stream) {
aws_mem_release(stream->allocator, stream);
}

static struct aws_input_stream_vtable s_error_from_outgoing_body_vtable = {
.seek = NULL,
.read = s_error_from_outgoing_body_read,
.get_status = s_error_from_outgoing_body_get_status,
.get_length = NULL,
.clean_up = s_error_from_outgoing_body_clean_up,
.destroy = s_error_from_outgoing_body_destroy,
};

static int s_error_from_incoming_headers(
Expand Down