summaryrefslogtreecommitdiff
path: root/src/test/test_helpers.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-05-02 16:35:22 +0300
committerNick Mathewson <nickm@torproject.org>2017-07-07 11:12:26 -0400
commitdc3a2037f54bcef14b7021b847edd91d36bf4514 (patch)
treef2c13af32ad0d5f85aa2fb1c7927129033821427 /src/test/test_helpers.h
parent43a73f6eb648632552a20dd17f5736550df75e10 (diff)
downloadtor-dc3a2037f54bcef14b7021b847edd91d36bf4514.tar.gz
tor-dc3a2037f54bcef14b7021b847edd91d36bf4514.zip
test: Move some test code to test helpers.
Move code to create connection streams and rend_data structures to test_helpers so that we can use them from the e2e rendezvous circuit unittests.
Diffstat (limited to 'src/test/test_helpers.h')
-rw-r--r--src/test/test_helpers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_helpers.h b/src/test/test_helpers.h
index 4621631cc1..aa7aff111c 100644
--- a/src/test/test_helpers.h
+++ b/src/test/test_helpers.h
@@ -20,6 +20,9 @@ void connection_write_to_buf_mock(const char *string, size_t len,
int mock_tor_addr_lookup__fail_on_bad_addrs(const char *name,
uint16_t family, tor_addr_t *out);
+connection_t *test_conn_get_connection(uint8_t state,
+ uint8_t type, uint8_t purpose);
+
extern const char TEST_DESCRIPTORS[];
#endif