summaryrefslogtreecommitdiff
path: root/src/or/transports.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-11-04 09:49:35 -0500
committerNick Mathewson <nickm@torproject.org>2014-11-04 09:52:04 -0500
commit9619c395ac7e2a8c2e57f55cd1885fe5f8e5f8b5 (patch)
tree5741dcdf0bf425712470554a0dfb63cd54f4a2a1 /src/or/transports.c
parentb1ca05d273eaef7477528c059ab0d1deb0dc9dab (diff)
parent2d4241d58482c919984f163323efb96c6f365a2d (diff)
downloadtor-9619c395ac7e2a8c2e57f55cd1885fe5f8e5f8b5.tar.gz
tor-9619c395ac7e2a8c2e57f55cd1885fe5f8e5f8b5.zip
Merge remote-tracking branch 'andrea/ticket6456'
Somewhat tricky conflicts: src/or/config.c Also, s/test_assert/tt_assert in test_config.c
Diffstat (limited to 'src/or/transports.c')
-rw-r--r--src/or/transports.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/or/transports.c b/src/or/transports.c
index 584454feb1..2623f807d0 100644
--- a/src/or/transports.c
+++ b/src/or/transports.c
@@ -326,9 +326,9 @@ transport_add(transport_t *t)
/** Remember a new pluggable transport proxy at <b>addr</b>:<b>port</b>.
* <b>name</b> is set to the name of the protocol this proxy uses.
* <b>socks_ver</b> is set to the SOCKS version of the proxy. */
-int
-transport_add_from_config(const tor_addr_t *addr, uint16_t port,
- const char *name, int socks_ver)
+MOCK_IMPL(int,
+transport_add_from_config, (const tor_addr_t *addr, uint16_t port,
+ const char *name, int socks_ver))
{
transport_t *t = transport_new(addr, port, name, socks_ver, NULL);
@@ -1456,9 +1456,9 @@ managed_proxy_create(const smartlist_t *transport_list,
* Requires that proxy_argv be a NULL-terminated array of command-line
* elements, containing at least one element.
**/
-void
-pt_kickstart_proxy(const smartlist_t *transport_list,
- char **proxy_argv, int is_server)
+MOCK_IMPL(void,
+pt_kickstart_proxy, (const smartlist_t *transport_list,
+ char **proxy_argv, int is_server))
{
managed_proxy_t *mp=NULL;
transport_t *old_transport = NULL;