diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-06-23 12:39:10 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-06-23 12:39:10 +0000 |
commit | 544e880ab3dd3292e2aac3877aa616d9efb53496 (patch) | |
tree | 9d1d148f4a8ca0885fa4f68be9e18f0b9c65f444 /src/transport/test_plugin_transport_http.c | |
parent | ef1c9e128f922eeb930fa659e37d22256e6886d6 (diff) | |
download | gnunet-544e880ab3dd3292e2aac3877aa616d9efb53496.tar.gz gnunet-544e880ab3dd3292e2aac3877aa616d9efb53496.zip |
plugin changed to be loadable multiple times
Diffstat (limited to 'src/transport/test_plugin_transport_http.c')
-rw-r--r-- | src/transport/test_plugin_transport_http.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/transport/test_plugin_transport_http.c b/src/transport/test_plugin_transport_http.c index 6ac925512..6042ad154 100644 --- a/src/transport/test_plugin_transport_http.c +++ b/src/transport/test_plugin_transport_http.c | |||
@@ -1170,9 +1170,9 @@ run (void *cls, | |||
1170 | while (cur != NULL) | 1170 | while (cur != NULL) |
1171 | { | 1171 | { |
1172 | 1172 | ||
1173 | api->address_pretty_printer (NULL,"http",cur->addr,cur->addrlen,GNUNET_NO,TEST_TIMEOUT,&pretty_printer_cb,NULL); | 1173 | api->address_pretty_printer (api->cls, "http",cur->addr,cur->addrlen, GNUNET_NO,TEST_TIMEOUT, &pretty_printer_cb,NULL); |
1174 | addr_str = api->address_to_string (NULL,cur->addr,cur->addrlen); | 1174 | addr_str = api->address_to_string (api->cls, cur->addr, cur->addrlen); |
1175 | suggest_res = api->check_address (NULL,cur->addr,cur->addrlen); | 1175 | suggest_res = api->check_address (api->cls, cur->addr, cur->addrlen); |
1176 | 1176 | ||
1177 | GNUNET_assert (GNUNET_OK == suggest_res); | 1177 | GNUNET_assert (GNUNET_OK == suggest_res); |
1178 | GNUNET_assert (NULL != addr_str); | 1178 | GNUNET_assert (NULL != addr_str); |
@@ -1190,19 +1190,19 @@ run (void *cls, | |||
1190 | struct IPv4HttpAddress failing_addr; | 1190 | struct IPv4HttpAddress failing_addr; |
1191 | failing_addr.ipv4_addr = htonl(INADDR_LOOPBACK); | 1191 | failing_addr.ipv4_addr = htonl(INADDR_LOOPBACK); |
1192 | failing_addr.u_port = htons(0); | 1192 | failing_addr.u_port = htons(0); |
1193 | suggest_res = api->check_address (NULL,&failing_addr,sizeof (struct IPv4HttpAddress)); | 1193 | suggest_res = api->check_address (api->cls,&failing_addr,sizeof (struct IPv4HttpAddress)); |
1194 | GNUNET_assert (GNUNET_SYSERR == suggest_res); | 1194 | GNUNET_assert (GNUNET_SYSERR == suggest_res); |
1195 | 1195 | ||
1196 | /* Suggesting addresses with wrong size*/ | 1196 | /* Suggesting addresses with wrong size*/ |
1197 | failing_addr.ipv4_addr = htonl(INADDR_LOOPBACK); | 1197 | failing_addr.ipv4_addr = htonl(INADDR_LOOPBACK); |
1198 | failing_addr.u_port = htons(0); | 1198 | failing_addr.u_port = htons(0); |
1199 | suggest_res = api->check_address (NULL,&failing_addr,sizeof (struct IPv6HttpAddress)); | 1199 | suggest_res = api->check_address (api->cls,&failing_addr,sizeof (struct IPv6HttpAddress)); |
1200 | GNUNET_assert (GNUNET_SYSERR == suggest_res); | 1200 | GNUNET_assert (GNUNET_SYSERR == suggest_res); |
1201 | 1201 | ||
1202 | /* Suggesting addresses with wrong address*/ | 1202 | /* Suggesting addresses with wrong address*/ |
1203 | failing_addr.ipv4_addr = htonl(INADDR_LOOPBACK); | 1203 | failing_addr.ipv4_addr = htonl(INADDR_LOOPBACK); |
1204 | failing_addr.u_port = htons(12389); | 1204 | failing_addr.u_port = htons(12389); |
1205 | suggest_res = api->check_address (NULL,&failing_addr,sizeof (struct IPv4HttpAddress)); | 1205 | suggest_res = api->check_address (api->cls,&failing_addr,sizeof (struct IPv4HttpAddress)); |
1206 | GNUNET_assert (GNUNET_SYSERR == suggest_res); | 1206 | GNUNET_assert (GNUNET_SYSERR == suggest_res); |
1207 | 1207 | ||
1208 | /* test sending to client */ | 1208 | /* test sending to client */ |
@@ -1235,7 +1235,7 @@ run (void *cls, | |||
1235 | test_valid_ident.test_executed = GNUNET_NO; | 1235 | test_valid_ident.test_executed = GNUNET_NO; |
1236 | test_valid_ident.test_failed = GNUNET_YES; | 1236 | test_valid_ident.test_failed = GNUNET_YES; |
1237 | 1237 | ||
1238 | test_addr = (char *) api->address_to_string (NULL,addr_head->addr,addr_head->addrlen); | 1238 | test_addr = (char *) api->address_to_string (api->cls,addr_head->addr,addr_head->addrlen); |
1239 | run_connection_tests(); | 1239 | run_connection_tests(); |
1240 | 1240 | ||
1241 | /* testing finished */ | 1241 | /* testing finished */ |