aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-15 12:18:17 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-15 12:18:17 -0400
commit22e9c647387509b44ff75e232aede360e3f87070 (patch)
treeb21a2c640d50991704318a76e72cf47bbb5d1775 /src/test
parent7d2d131afad17375a7e04086082568903d5335d2 (diff)
downloadtor-22e9c647387509b44ff75e232aede360e3f87070.tar.gz
tor-22e9c647387509b44ff75e232aede360e3f87070.zip
Extract rend_service_descriptor_t into its own header.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/fuzz/fuzz_iptsv2.c3
-rw-r--r--src/test/rend_test_helpers.c2
-rw-r--r--src/test/test.c1
-rw-r--r--src/test/test_rendcache.c3
4 files changed, 9 insertions, 0 deletions
diff --git a/src/test/fuzz/fuzz_iptsv2.c b/src/test/fuzz/fuzz_iptsv2.c
index 4abde0c16d..db99f62dc9 100644
--- a/src/test/fuzz/fuzz_iptsv2.c
+++ b/src/test/fuzz/fuzz_iptsv2.c
@@ -4,6 +4,9 @@
#include "or.h"
#include "routerparse.h"
#include "rendcommon.h"
+
+#include "rend_service_descriptor_st.h"
+
#include "fuzzing.h"
static void
diff --git a/src/test/rend_test_helpers.c b/src/test/rend_test_helpers.c
index 9ac3894b0b..177935edfb 100644
--- a/src/test/rend_test_helpers.c
+++ b/src/test/rend_test_helpers.c
@@ -7,6 +7,8 @@
#include "rendcommon.h"
#include "rend_test_helpers.h"
+#include "rend_service_descriptor_st.h"
+
void
generate_desc(int time_diff, rend_encoded_v2_service_descriptor_t **desc,
char **service_id, int intro_points)
diff --git a/src/test/test.c b/src/test/test.c
index b92dd3c8a0..0408615605 100644
--- a/src/test/test.c
+++ b/src/test/test.c
@@ -63,6 +63,7 @@ double fabs(double x);
#include "crypto_curve25519.h"
#include "or_circuit_st.h"
+#include "rend_service_descriptor_st.h"
/** Run unit tests for the onion handshake code. */
static void
diff --git a/src/test/test_rendcache.c b/src/test/test_rendcache.c
index 9f6cfc4a22..f1e94eb021 100644
--- a/src/test/test_rendcache.c
+++ b/src/test/test_rendcache.c
@@ -11,6 +11,9 @@
#include "routerlist.h"
#include "config.h"
#include "hs_common.h"
+
+#include "rend_service_descriptor_st.h"
+
#include "rend_test_helpers.h"
#include "log_test_helpers.h"