summaryrefslogtreecommitdiff
path: root/src/transport/transport-testing.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-07-10 16:41:45 +0000
committerChristian Grothoff <christian@grothoff.org>2016-07-10 16:41:45 +0000
commitc6444a089a860da694842942283079a25bc1e957 (patch)
treed35d30bc35acf05681f7f89057ffdc2e774b33ec /src/transport/transport-testing.h
parent4f77ea5b2b3d53a21f70237f8b92a9a2273c21bf (diff)
fold bidirectional test into main test_ats_api
Diffstat (limited to 'src/transport/transport-testing.h')
-rw-r--r--src/transport/transport-testing.h23
1 files changed, 23 insertions, 0 deletions
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
@@ -459,10 +459,28 @@ 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 **** */
/**
@@ -514,6 +532,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.
*/
unsigned int started;