migrate more tests to new transmission API
authorChristian Grothoff <christian@grothoff.org>
Fri, 22 Jul 2016 22:13:17 +0000 (22:13 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 22 Jul 2016 22:13:17 +0000 (22:13 +0000)
src/transport/test_transport_api_blacklisting.c

index a2add5957010baf03ab6cb21ffb7fa1cb2ae7cbc..c3675bb9a668e43b8ef290d7aa0cf576159ffd85 100644 (file)
 
 #define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
 
-#define TEST_MESSAGE_SIZE 2600
-
-#define TEST_MESSAGE_TYPE 12345
-
-
-static struct GNUNET_TRANSPORT_TransmitHandle *th;
-
 static struct GNUNET_TRANSPORT_TESTING_ConnectCheckContext *ccc;
 
 static int connected;
@@ -49,8 +42,6 @@ static struct GNUNET_TRANSPORT_Blacklist *blacklist_p1;
 
 static struct GNUNET_TRANSPORT_Blacklist *blacklist_p2;
 
-static struct GNUNET_SCHEDULER_Task *send_task;
-
 static struct GNUNET_SCHEDULER_Task *shutdown_task;
 
 
@@ -81,21 +72,11 @@ end (void *cls)
 static void
 custom_shutdown (void *cls)
 {
-  if (NULL != send_task)
-  {
-    GNUNET_SCHEDULER_cancel (send_task);
-    send_task = NULL;
-  }
   if (NULL != shutdown_task)
   {
     GNUNET_SCHEDULER_cancel (shutdown_task);
     shutdown_task = NULL;
   }
-  if (NULL != th)
-  {
-    GNUNET_TRANSPORT_notify_transmit_ready_cancel (th);
-    th = NULL;
-  }
   if (NULL != blacklist_p1)
   {
     GNUNET_TRANSPORT_blacklist_cancel (blacklist_p1);