diff options
author | George Kadianakis <desnacked@riseup.net> | 2018-09-15 16:33:05 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2018-09-15 16:52:32 +0300 |
commit | b2092f1ced891737d83915f027b6776882d256b5 (patch) | |
tree | 99408c3e39062b725dbbf42430c4f39cf54f0d6b /src/test/test_helpers.h | |
parent | 6069185bcc61fe797582b9b9826a5d52e4aabb22 (diff) | |
download | tor-b2092f1ced891737d83915f027b6776882d256b5.tar.gz tor-b2092f1ced891737d83915f027b6776882d256b5.zip |
Add unittest for HiddenServiceExportCircuitID.
Had to move a function to test helpers.
Diffstat (limited to 'src/test/test_helpers.h')
-rw-r--r-- | src/test/test_helpers.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_helpers.h b/src/test/test_helpers.h index 3196c93e6b..72bf7f2f71 100644 --- a/src/test/test_helpers.h +++ b/src/test/test_helpers.h @@ -4,6 +4,8 @@ #ifndef TOR_TEST_HELPERS_H #define TOR_TEST_HELPERS_H +#define BUFFERS_PRIVATE + #include "core/or/or.h" const char *get_yesterday_date_str(void); @@ -18,6 +20,7 @@ void helper_setup_fake_routerlist(void); #define GET(path) "GET " path " HTTP/1.0\r\n\r\n" void connection_write_to_buf_mock(const char *string, size_t len, connection_t *conn, int compressed); +char *buf_get_contents(buf_t *buf, size_t *sz_out); int mock_tor_addr_lookup__fail_on_bad_addrs(const char *name, uint16_t family, tor_addr_t *out); |