aboutsummaryrefslogtreecommitdiff
path: root/src/or/transports.h
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2014-07-25 21:41:03 -0700
committerAndrea Shepard <andrea@torproject.org>2014-07-25 21:41:03 -0700
commitb8b46e8ef847c0683fab00783fb64bef0c6f83c6 (patch)
treeac6685e52c73e51acbe05eb14dece77583d9ebc9 /src/or/transports.h
parent18c97ad8bc85b9c0a0b3cac088f719f7e261c60b (diff)
downloadtor-b8b46e8ef847c0683fab00783fb64bef0c6f83c6.tar.gz
tor-b8b46e8ef847c0683fab00783fb64bef0c6f83c6.zip
Add some mocks needed to unit test ClientTransportPlugin/ServerTransportPlugin config line parsing
Diffstat (limited to 'src/or/transports.h')
-rw-r--r--src/or/transports.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/or/transports.h b/src/or/transports.h
index 1365ead006..deacdcdd68 100644
--- a/src/or/transports.h
+++ b/src/or/transports.h
@@ -32,14 +32,16 @@ typedef struct transport_t {
void mark_transport_list(void);
void sweep_transport_list(void);
-int transport_add_from_config(const tor_addr_t *addr, uint16_t port,
- const char *name, int socks_ver);
+MOCK_DECL(int, transport_add_from_config,
+ (const tor_addr_t *addr, uint16_t port,
+ const char *name, int socks_ver));
void transport_free(transport_t *transport);
transport_t *transport_get_by_name(const char *name);
-void pt_kickstart_proxy(const smartlist_t *transport_list, char **proxy_argv,
- int is_server);
+MOCK_DECL(void, pt_kickstart_proxy,
+ (const smartlist_t *transport_list, char **proxy_argv,
+ int is_server));
#define pt_kickstart_client_proxy(tl, pa) \
pt_kickstart_proxy(tl, pa, 0)