diff options
author | Suphanat Chunhapanya <haxx.pop@gmail.com> | 2019-10-21 18:00:02 +0800 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-01-06 13:39:10 -0500 |
commit | de58a49a2db20638823a77a1fb4c7f913f4f2169 (patch) | |
tree | 4cf6c897077b4791b858eb11c090ee7fc3d50134 /src/test/test_helpers.h | |
parent | 41b9dca07bb7dea4758cf97f9bbff7a52b09ebf4 (diff) | |
download | tor-de58a49a2db20638823a77a1fb4c7f913f4f2169.tar.gz tor-de58a49a2db20638823a77a1fb4c7f913f4f2169.zip |
test: HAPRoxy protocol
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 d82072bb34..d5a5417983 100644 --- a/src/test/test_helpers.h +++ b/src/test/test_helpers.h @@ -26,6 +26,9 @@ 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); +void mock_connection_or_change_state(or_connection_t *conn, uint8_t state); + +or_connection_t *test_conn_get_proxy_or_connection(unsigned int proxy_type); connection_t *test_conn_get_connection(uint8_t state, uint8_t type, uint8_t purpose); or_options_t *helper_parse_options(const char *conf); |