diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-11-05 21:54:44 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-11-05 21:54:44 +0000 |
commit | bdc3b54372a92874c2ecb58069eac5bdfe6fcddc (patch) | |
tree | 575c606a8f81c1f0baabad43bf34789023513ee7 /src/transport/test_plugin_transport_http.c | |
parent | f0963cfb7a694f9a7c7ff28471660242529f00a8 (diff) | |
download | gnunet-bdc3b54372a92874c2ecb58069eac5bdfe6fcddc.tar.gz gnunet-bdc3b54372a92874c2ecb58069eac5bdfe6fcddc.zip |
moving plugin headers
Diffstat (limited to 'src/transport/test_plugin_transport_http.c')
-rw-r--r-- | src/transport/test_plugin_transport_http.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/transport/test_plugin_transport_http.c b/src/transport/test_plugin_transport_http.c index b1a0077cd..a4446576b 100644 --- a/src/transport/test_plugin_transport_http.c +++ b/src/transport/test_plugin_transport_http.c | |||
@@ -18,8 +18,8 @@ | |||
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | /** | 20 | /** |
21 | * @file transport/test_plugin_transport_http.c | 21 | * @file transport/test_gnunet_transport_plugin.http.c |
22 | * @brief testcase for plugin_transport_http.c | 22 | * @brief testcase for gnunet_transport_plugin.http.c |
23 | * @author Matthias Wachs | 23 | * @author Matthias Wachs |
24 | */ | 24 | */ |
25 | 25 | ||
@@ -37,7 +37,7 @@ | |||
37 | #include "gnunet_service_lib.h" | 37 | #include "gnunet_service_lib.h" |
38 | #include "gnunet_crypto_lib.h" | 38 | #include "gnunet_crypto_lib.h" |
39 | 39 | ||
40 | #include "plugin_transport.h" | 40 | #include "gnunet_transport_plugin.h" |
41 | #include "gnunet_statistics_service.h" | 41 | #include "gnunet_statistics_service.h" |
42 | #include "transport.h" | 42 | #include "transport.h" |
43 | #include <curl/curl.h> | 43 | #include <curl/curl.h> |
@@ -459,10 +459,10 @@ shutdown_clean () | |||
459 | 459 | ||
460 | GNUNET_free(test_addr); | 460 | GNUNET_free(test_addr); |
461 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Unloading http plugin\n"); | 461 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Unloading http plugin\n"); |
462 | GNUNET_assert (NULL == GNUNET_PLUGIN_unload ("libgnunet_plugin_transport_http", api)); | 462 | GNUNET_assert (NULL == GNUNET_PLUGIN_unload ("libgnunet_gnunet_transport_plugin.http", api)); |
463 | 463 | ||
464 | GNUNET_SCHEDULER_shutdown(); | 464 | GNUNET_SCHEDULER_shutdown(); |
465 | GNUNET_DISK_directory_remove ("/tmp/test_plugin_transport_http"); | 465 | GNUNET_DISK_directory_remove ("/tmp/test_gnunet_transport_plugin.http"); |
466 | 466 | ||
467 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Exiting testcase\n"); | 467 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Exiting testcase\n"); |
468 | exit(fail); | 468 | exit(fail); |
@@ -1200,7 +1200,7 @@ run (void *cls, | |||
1200 | 1200 | ||
1201 | /* load plugins... */ | 1201 | /* load plugins... */ |
1202 | setup_plugin_environment (); | 1202 | setup_plugin_environment (); |
1203 | GNUNET_asprintf (&libname, "libgnunet_plugin_transport_http"); | 1203 | GNUNET_asprintf (&libname, "libgnunet_gnunet_transport_plugin.http"); |
1204 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Loading HTTP transport plugin `%s'\n"),libname); | 1204 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Loading HTTP transport plugin `%s'\n"),libname); |
1205 | api = GNUNET_PLUGIN_load (libname, &env); | 1205 | api = GNUNET_PLUGIN_load (libname, &env); |
1206 | GNUNET_free (libname); | 1206 | GNUNET_free (libname); |
@@ -1311,7 +1311,7 @@ main (int argc, char *const *argv) | |||
1311 | }; | 1311 | }; |
1312 | int ret; | 1312 | int ret; |
1313 | char *const argv_prog[] = { | 1313 | char *const argv_prog[] = { |
1314 | "test_plugin_transport_http", | 1314 | "test_gnunet_transport_plugin.http", |
1315 | "-c", | 1315 | "-c", |
1316 | "test_plugin_transport_data_http.conf", | 1316 | "test_plugin_transport_data_http.conf", |
1317 | "-L", | 1317 | "-L", |
@@ -1322,7 +1322,7 @@ main (int argc, char *const *argv) | |||
1322 | #endif | 1322 | #endif |
1323 | NULL | 1323 | NULL |
1324 | }; | 1324 | }; |
1325 | GNUNET_log_setup ("test_plugin_transport_http", | 1325 | GNUNET_log_setup ("test_gnunet_transport_plugin.http", |
1326 | #if VERBOSE | 1326 | #if VERBOSE |
1327 | "DEBUG", | 1327 | "DEBUG", |
1328 | #else | 1328 | #else |
@@ -1333,12 +1333,12 @@ main (int argc, char *const *argv) | |||
1333 | ret = (GNUNET_OK == | 1333 | ret = (GNUNET_OK == |
1334 | GNUNET_PROGRAM_run (5, | 1334 | GNUNET_PROGRAM_run (5, |
1335 | argv_prog, | 1335 | argv_prog, |
1336 | "test_plugin_transport_http", | 1336 | "test_gnunet_transport_plugin.http", |
1337 | "testcase", options, &run, NULL)) ? GNUNET_NO : GNUNET_YES; | 1337 | "testcase", options, &run, NULL)) ? GNUNET_NO : GNUNET_YES; |
1338 | 1338 | ||
1339 | GNUNET_DISK_directory_remove ("/tmp/test_plugin_transport_http"); | 1339 | GNUNET_DISK_directory_remove ("/tmp/test_gnunet_transport_plugin.http"); |
1340 | 1340 | ||
1341 | return fail; | 1341 | return fail; |
1342 | } | 1342 | } |
1343 | 1343 | ||
1344 | /* end of test_plugin_transport_http.c */ | 1344 | /* end of test_gnunet_transport_plugin.http.c */ |