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.h | |
parent | 684bcd886abb36414a1499ced1b038050f6face1 (diff) | |
download | tor-99d312c2937c0289eec047a70f626e3976a25895.tar.gz tor-99d312c2937c0289eec047a70f626e3976a25895.zip |
Make channel_flush_some_cells() mockable
Diffstat (limited to 'src/or/channel.h')
-rw-r--r-- | src/or/channel.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/channel.h b/src/or/channel.h index 07a66ebcda..dd0ca369cd 100644 --- a/src/or/channel.h +++ b/src/or/channel.h @@ -455,7 +455,8 @@ void channel_queue_var_cell(channel_t *chan, var_cell_t *var_cell); void channel_flush_cells(channel_t *chan); /* Request from lower layer for more cells if available */ -ssize_t channel_flush_some_cells(channel_t *chan, ssize_t num_cells); +MOCK_DECL(ssize_t, channel_flush_some_cells, + (channel_t *chan, ssize_t num_cells)); /* Query if data available on this channel */ int channel_more_to_flush(channel_t *chan); |