diff options
author | Andrea Shepard <andrea@torproject.org> | 2014-02-03 12:52:28 -0800 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2014-09-30 23:14:59 -0700 |
commit | 99d312c2937c0289eec047a70f626e3976a25895 (patch) | |
tree | 316bca0b8f3a1759faf9d56485cc541cedf787a9 /src/or/channel.c | |
parent | 684bcd886abb36414a1499ced1b038050f6face1 (diff) | |
download | tor-99d312c2937c0289eec047a70f626e3976a25895.tar.gz tor-99d312c2937c0289eec047a70f626e3976a25895.zip |
Make channel_flush_some_cells() mockable
Diffstat (limited to 'src/or/channel.c')
-rw-r--r-- | src/or/channel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/channel.c b/src/or/channel.c index ec44cce427..edeee6937a 100644 --- a/src/or/channel.c +++ b/src/or/channel.c @@ -2197,8 +2197,8 @@ channel_listener_change_state(channel_listener_t *chan_l, #define MAX_CELLS_TO_GET_FROM_CIRCUITS_FOR_UNLIMITED 256 -ssize_t -channel_flush_some_cells(channel_t *chan, ssize_t num_cells) +MOCK_IMPL(ssize_t, +channel_flush_some_cells, (channel_t *chan, ssize_t num_cells)) { unsigned int unlimited = 0; ssize_t flushed = 0; |