From c6444a089a860da694842942283079a25bc1e957 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 10 Jul 2016 16:41:45 +0000 Subject: fold bidirectional test into main test_ats_api --- src/transport/transport-testing.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/transport/transport-testing.h') diff --git a/src/transport/transport-testing.h b/src/transport/transport-testing.h index 842c88374..b78d11dbe 100644 --- a/src/transport/transport-testing.h +++ b/src/transport/transport-testing.h @@ -458,11 +458,29 @@ struct GNUNET_TRANSPORT_TESTING_ConnectCheckContext */ void *shutdown_task_cls; + /** + * Custom task to run after peers were started but before we try to + * connect them. If this function is set, we wait ONE second after + * running this function until we continue with connecting the + * peers. + */ + GNUNET_SCHEDULER_TaskCallback pre_connect_task; + + /** + * Closure for @e shutdown_task. + */ + void *pre_connect_task_cls; + /** * When should the testcase time out? */ struct GNUNET_TIME_Relative timeout; + /** + * Should we try to create connections in both directions? + */ + int bi_directional; + /* ******* fields set by #GNUNET_TRANSPORT_TESTING_connect_check **** */ /** @@ -513,6 +531,11 @@ struct GNUNET_TRANSPORT_TESTING_ConnectCheckContext */ struct GNUNET_SCHEDULER_Task *timeout_task; + /** + * Task run to connect peers. + */ + struct GNUNET_SCHEDULER_Task *connect_task; + /** * Number of peers that have been started. */ -- cgit v1.2.3