aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitmux.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2014-01-24 03:10:55 -0800
committerAndrea Shepard <andrea@torproject.org>2014-09-30 23:14:58 -0700
commitc5f73e52e54a60581374ff6355104aea3e0f6233 (patch)
tree1fe0d940e50b0e51b98d28efbf24ff33cefec78f /src/or/circuitmux.c
parent030608d68d393c90fb789638e5e93ac6af7d4f5e (diff)
downloadtor-c5f73e52e54a60581374ff6355104aea3e0f6233.tar.gz
tor-c5f73e52e54a60581374ff6355104aea3e0f6233.zip
Make circuitmux_compare_muxes() and circuitmux_get_policy() mockable
Diffstat (limited to 'src/or/circuitmux.c')
-rw-r--r--src/or/circuitmux.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/circuitmux.c b/src/or/circuitmux.c
index 71bc4efc4a..7175b6bf13 100644
--- a/src/or/circuitmux.c
+++ b/src/or/circuitmux.c
@@ -621,8 +621,8 @@ circuitmux_clear_policy(circuitmux_t *cmux)
* Return the policy currently installed on a circuitmux_t
*/
-const circuitmux_policy_t *
-circuitmux_get_policy(circuitmux_t *cmux)
+MOCK_IMPL(const circuitmux_policy_t *,
+circuitmux_get_policy, (circuitmux_t *cmux))
{
tor_assert(cmux);
@@ -1961,8 +1961,8 @@ circuitmux_count_queued_destroy_cells(const channel_t *chan,
* support the cmp_cmux method, return 0.
*/
-int
-circuitmux_compare_muxes(circuitmux_t *cmux_1, circuitmux_t *cmux_2)
+MOCK_IMPL(int,
+circuitmux_compare_muxes, (circuitmux_t *cmux_1, circuitmux_t *cmux_2))
{
const circuitmux_policy_t *policy;