aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test_helpers.h')
-rw-r--r--src/test/test_helpers.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/test_helpers.h b/src/test/test_helpers.h
index 684375e1b1..c6d4d9c41f 100644
--- a/src/test/test_helpers.h
+++ b/src/test/test_helpers.h
@@ -6,11 +6,20 @@
const char *get_yesterday_date_str(void);
+circuit_t * dummy_origin_circuit_new(int num_cells);
+
/* Number of descriptors contained in test_descriptors.txt. */
#define HELPER_NUMBER_OF_DESCRIPTORS 8
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 zlib);
+
+int mock_tor_addr_lookup__fail_on_bad_addrs(const char *name,
+ uint16_t family, tor_addr_t *out);
+
extern const char TEST_DESCRIPTORS[];
#endif