diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-07-08 11:37:42 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-07-08 11:37:42 +0000 |
commit | f3d34f64ea0087558be197a061bbf91ceefb1506 (patch) | |
tree | 48d5e73df178ea34297a5a0cd067c37efbbe4cb6 /src | |
parent | 1ba74a7563b993e5725bb42d8ea88231cbdf18e8 (diff) | |
download | gnunet-f3d34f64ea0087558be197a061bbf91ceefb1506.tar.gz gnunet-f3d34f64ea0087558be197a061bbf91ceefb1506.zip |
- adapt testcases to new api
Diffstat (limited to 'src')
-rw-r--r-- | src/mesh/test_mesh_local.c | 2 | ||||
-rw-r--r-- | src/mesh/test_mesh_single.c | 2 | ||||
-rw-r--r-- | src/mesh/test_mesh_small.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/mesh/test_mesh_local.c b/src/mesh/test_mesh_local.c index 058f02af6..fd1a7a242 100644 --- a/src/mesh/test_mesh_local.c +++ b/src/mesh/test_mesh_local.c | |||
@@ -225,7 +225,7 @@ do_connect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
225 | 225 | ||
226 | GNUNET_TESTING_peer_get_identity (me, &id); | 226 | GNUNET_TESTING_peer_get_identity (me, &id); |
227 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "CONNECT BY PORT\n"); | 227 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "CONNECT BY PORT\n"); |
228 | t = GNUNET_MESH_tunnel_create (mesh_peer_1, NULL, &id, 1); | 228 | t = GNUNET_MESH_tunnel_create (mesh_peer_1, NULL, &id, 1, GNUNET_YES, GNUNET_NO); |
229 | GNUNET_MESH_notify_transmit_ready (t, GNUNET_NO, | 229 | GNUNET_MESH_notify_transmit_ready (t, GNUNET_NO, |
230 | GNUNET_TIME_UNIT_FOREVER_REL, | 230 | GNUNET_TIME_UNIT_FOREVER_REL, |
231 | sizeof (struct GNUNET_MessageHeader), | 231 | sizeof (struct GNUNET_MessageHeader), |
diff --git a/src/mesh/test_mesh_single.c b/src/mesh/test_mesh_single.c index d781fb0cb..4c5d0a659 100644 --- a/src/mesh/test_mesh_single.c +++ b/src/mesh/test_mesh_single.c | |||
@@ -232,7 +232,7 @@ do_connect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
232 | 232 | ||
233 | GNUNET_TESTING_peer_get_identity (me, &id); | 233 | GNUNET_TESTING_peer_get_identity (me, &id); |
234 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "CONNECT BY PORT\n"); | 234 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "CONNECT BY PORT\n"); |
235 | t1 = GNUNET_MESH_tunnel_create (mesh, NULL, &id, 1); | 235 | t1 = GNUNET_MESH_tunnel_create (mesh, NULL, &id, 1, GNUNET_YES, GNUNET_NO); |
236 | GNUNET_MESH_notify_transmit_ready (t1, GNUNET_NO, | 236 | GNUNET_MESH_notify_transmit_ready (t1, GNUNET_NO, |
237 | GNUNET_TIME_UNIT_FOREVER_REL, | 237 | GNUNET_TIME_UNIT_FOREVER_REL, |
238 | sizeof (struct GNUNET_MessageHeader) + DATA_SIZE, | 238 | sizeof (struct GNUNET_MessageHeader) + DATA_SIZE, |
diff --git a/src/mesh/test_mesh_small.c b/src/mesh/test_mesh_small.c index 81f9c566c..22b85986c 100644 --- a/src/mesh/test_mesh_small.c +++ b/src/mesh/test_mesh_small.c | |||
@@ -631,7 +631,7 @@ do_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
631 | { | 631 | { |
632 | GNUNET_SCHEDULER_cancel (disconnect_task); | 632 | GNUNET_SCHEDULER_cancel (disconnect_task); |
633 | } | 633 | } |
634 | t = GNUNET_MESH_tunnel_create (h1, NULL, p_id[1], 1); | 634 | t = GNUNET_MESH_tunnel_create (h1, NULL, p_id[1], 1, GNUNET_YES, GNUNET_NO); |
635 | if (SPEED_NOBUF == test) | 635 | if (SPEED_NOBUF == test) |
636 | { | 636 | { |
637 | GNUNET_MESH_tunnel_buffer(t, GNUNET_NO); | 637 | GNUNET_MESH_tunnel_buffer(t, GNUNET_NO); |