aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_or.h
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2014-01-23 04:54:44 -0800
committerAndrea Shepard <andrea@torproject.org>2014-09-30 23:14:24 -0700
commit3b080230e9fda4befda17739d202b9bc59006add (patch)
tree32cb90e0844b919b4fdafd3dba8bbb26619bba9c /src/or/connection_or.h
parent3bc7108d2cfb6795f1beb0f5dbb3ab66fe1601d3 (diff)
downloadtor-3b080230e9fda4befda17739d202b9bc59006add.tar.gz
tor-3b080230e9fda4befda17739d202b9bc59006add.zip
Make connection_or_connect() mockable
Diffstat (limited to 'src/or/connection_or.h')
-rw-r--r--src/or/connection_or.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/connection_or.h b/src/or/connection_or.h
index 7b46d7d111..c922fb5d52 100644
--- a/src/or/connection_or.h
+++ b/src/or/connection_or.h
@@ -37,9 +37,10 @@ void connection_or_connect_failed(or_connection_t *conn,
int reason, const char *msg);
void connection_or_notify_error(or_connection_t *conn,
int reason, const char *msg);
-or_connection_t *connection_or_connect(const tor_addr_t *addr, uint16_t port,
- const char *id_digest,
- channel_tls_t *chan);
+MOCK_DECL(or_connection_t *,
+ connection_or_connect,
+ (const tor_addr_t *addr, uint16_t port,
+ const char *id_digest, channel_tls_t *chan));
void connection_or_close_normally(or_connection_t *orconn, int flush);
void connection_or_close_for_error(or_connection_t *orconn, int flush);