aboutsummaryrefslogtreecommitdiff
path: root/src/or/relay.h
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.h
parent5b7a58f7c43c98c1f1fbb6bc347263c5247a5ab7 (diff)
downloadtor-9eea42f844801f673b90788ff4f5389b300d81fb.tar.gz
tor-9eea42f844801f673b90788ff4f5389b300d81fb.zip
Make channel_flush_from_first_active_circuit() mockable
Diffstat (limited to 'src/or/relay.h')
-rw-r--r--src/or/relay.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/relay.h b/src/or/relay.h
index 969c6fb61d..68b4fdf197 100644
--- a/src/or/relay.h
+++ b/src/or/relay.h
@@ -64,7 +64,8 @@ void append_cell_to_circuit_queue(circuit_t *circ, channel_t *chan,
cell_t *cell, cell_direction_t direction,
streamid_t fromstream);
void channel_unlink_all_circuits(channel_t *chan, smartlist_t *detached_out);
-int channel_flush_from_first_active_circuit(channel_t *chan, int max);
+MOCK_DECL(int, channel_flush_from_first_active_circuit,
+ (channel_t *chan, int max));
void assert_circuit_mux_okay(channel_t *chan);
void update_circuit_on_cmux_(circuit_t *circ, cell_direction_t direction,
const char *file, int lineno);