summaryrefslogtreecommitdiffstats
path: root/tests/torture.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-12-13 14:49:13 +0100
committerAndreas Schneider <asn@samba.org>2013-12-17 14:30:30 +0100
commit356fc983ec7f3147b5685fa6dc586959ec50b0ea (patch)
tree6891bc7cd2d409d3ac60a8c03693edb60bcdb324 /tests/torture.h
parent2ee37e01cf0a48553a19f2714fb4252d967711df (diff)
downloadsocket_wrapper-356fc983ec7f3147b5685fa6dc586959ec50b0ea.tar.gz
socket_wrapper-356fc983ec7f3147b5685fa6dc586959ec50b0ea.tar.xz
socket_wrapper-356fc983ec7f3147b5685fa6dc586959ec50b0ea.zip
torture: Add torture_generate_random_buffer().
Diffstat (limited to 'tests/torture.h')
-rw-r--r--tests/torture.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/torture.h b/tests/torture.h
index 7b88a4c..549a620 100644
--- a/tests/torture.h
+++ b/tests/torture.h
@@ -41,6 +41,7 @@
#include <setjmp.h>
#include <cmocka.h>
+#include <stdint.h>
#include <string.h>
#define TORTURE_ECHO_SRV_IPV4 "127.0.0.10"
@@ -64,4 +65,5 @@ void torture_setup_echo_srv_udp_ipv6(void **state);
void torture_teardown_socket_dir(void **state);
void torture_teardown_echo_srv(void **state);
+void torture_generate_random_buffer(uint8_t *out, int len);
#endif /* _TORTURE_H */