diff options
author | Andrea Shepard <andrea@torproject.org> | 2014-01-22 03:51:22 -0800 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2014-09-30 23:14:23 -0700 |
commit | 452bce6c7200600d4810f490ba5cc1c93d49cc96 (patch) | |
tree | a22f877d2af33ff38977f148fe80490de1bf4fcb /src/or/channel.c | |
parent | 5a24ff0563ed916abffcde083019d23142197fdf (diff) | |
download | tor-452bce6c7200600d4810f490ba5cc1c93d49cc96.tar.gz tor-452bce6c7200600d4810f490ba5cc1c93d49cc96.zip |
Make channel_dump_statistics() 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 94cca5caf8..ec44cce427 100644 --- a/src/or/channel.c +++ b/src/or/channel.c @@ -3450,8 +3450,8 @@ chan_cell_queue_len(const chan_cell_queue_t *queue) * Dump statistics for one channel to the log */ -void -channel_dump_statistics(channel_t *chan, int severity) +MOCK_IMPL(void, +channel_dump_statistics, (channel_t *chan, int severity)) { double avg, interval, age; time_t now = time(NULL); |