mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
Fix unit tests
This commit is contained in:
parent
758aff32b9
commit
ef3958b8fb
3 changed files with 7 additions and 0 deletions
|
@ -331,6 +331,8 @@ static const struct conn_iface our_conn_if =
|
|||
};
|
||||
|
||||
|
||||
static struct conn_stats s_conn_stats;
|
||||
|
||||
static void
|
||||
init_test_objs (struct test_objs *tobjs, unsigned initial_conn_window,
|
||||
unsigned initial_stream_window, unsigned short packet_sz)
|
||||
|
@ -359,6 +361,7 @@ init_test_objs (struct test_objs *tobjs, unsigned initial_conn_window,
|
|||
tobjs->conn_pub.packet_out_malo =
|
||||
lsquic_malo_create(sizeof(struct lsquic_packet_out));
|
||||
tobjs->conn_pub.path = &network_path;
|
||||
tobjs->conn_pub.conn_stats = &s_conn_stats;
|
||||
tobjs->initial_stream_window = initial_stream_window;
|
||||
tobjs->eng_pub.enp_settings.es_cc_algo = 1; /* Cubic */
|
||||
tobjs->eng_pub.enp_hsi_if = &tobjs->hsi_if;
|
||||
|
|
|
@ -160,6 +160,7 @@ static const struct conn_iface our_conn_if =
|
|||
|
||||
static struct http1x_ctor_ctx ctor_ctx = { .is_server = 0, };
|
||||
|
||||
static struct conn_stats s_conn_stats;
|
||||
|
||||
static void
|
||||
init_test_objs (struct test_objs *tobjs, unsigned initial_conn_window,
|
||||
|
@ -189,6 +190,7 @@ init_test_objs (struct test_objs *tobjs, unsigned initial_conn_window,
|
|||
tobjs->conn_pub.packet_out_malo =
|
||||
lsquic_malo_create(sizeof(struct lsquic_packet_out));
|
||||
tobjs->conn_pub.path = &network_path;
|
||||
tobjs->conn_pub.conn_stats = &s_conn_stats;
|
||||
tobjs->initial_stream_window = initial_stream_window;
|
||||
lsquic_send_ctl_init(&tobjs->send_ctl, &tobjs->alset, &tobjs->eng_pub,
|
||||
&tobjs->ver_neg, &tobjs->conn_pub, 0);
|
||||
|
|
|
@ -336,6 +336,7 @@ static const struct conn_iface our_conn_if =
|
|||
.ci_write_ack = write_ack,
|
||||
};
|
||||
|
||||
static struct conn_stats s_conn_stats;
|
||||
|
||||
static void
|
||||
init_test_objs (struct test_objs *tobjs, unsigned initial_conn_window,
|
||||
|
@ -366,6 +367,7 @@ init_test_objs (struct test_objs *tobjs, unsigned initial_conn_window,
|
|||
tobjs->conn_pub.packet_out_malo =
|
||||
lsquic_malo_create(sizeof(struct lsquic_packet_out));
|
||||
tobjs->conn_pub.path = &network_path;
|
||||
tobjs->conn_pub.conn_stats = &s_conn_stats;
|
||||
tobjs->initial_stream_window = initial_stream_window;
|
||||
lsquic_send_ctl_init(&tobjs->send_ctl, &tobjs->alset, &tobjs->eng_pub,
|
||||
&tobjs->ver_neg, &tobjs->conn_pub, 0);
|
||||
|
|
Loading…
Reference in a new issue