aboutsummaryrefslogtreecommitdiff
path: root/src/or/relay.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2014-01-22 01:04:39 -0800
committerAndrea Shepard <andrea@torproject.org>2014-09-30 23:14:02 -0700
commit9eea42f844801f673b90788ff4f5389b300d81fb (patch)
tree18fb566f705bae88837cd312d1f4b2737bc63e26 /src/or/relay.c
parent5b7a58f7c43c98c1f1fbb6bc347263c5247a5ab7 (diff)
downloadtor-9eea42f844801f673b90788ff4f5389b300d81fb.tar.gz
tor-9eea42f844801f673b90788ff4f5389b300d81fb.zip
Make channel_flush_from_first_active_circuit() mockable
Diffstat (limited to 'src/or/relay.c')
-rw-r--r--src/or/relay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index b653616c2c..fee2eec39d 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -2592,8 +2592,8 @@ packed_cell_get_circid(const packed_cell_t *cell, int wide_circ_ids)
* queue of the first active circuit on <b>chan</b>, and write them to
* <b>chan</b>-&gt;outbuf. Return the number of cells written. Advance
* the active circuit pointer to the next active circuit in the ring. */
-int
-channel_flush_from_first_active_circuit(channel_t *chan, int max)
+MOCK_IMPL(int,
+channel_flush_from_first_active_circuit, (channel_t *chan, int max))
{
circuitmux_t *cmux = NULL;
int n_flushed = 0;