diff options
author | Andrea Shepard <andrea@torproject.org> | 2014-01-24 07:03:14 -0800 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2014-09-30 23:14:58 -0700 |
commit | f8ceb0f028eb7661cb31b2f82d5a82460e96ece9 (patch) | |
tree | d3421ccf079a9649296b8ba20714eeb77864243b /src/or/scheduler.c | |
parent | 314c2f18ae53c73e790b815567d4c266a4b67382 (diff) | |
download | tor-f8ceb0f028eb7661cb31b2f82d5a82460e96ece9.tar.gz tor-f8ceb0f028eb7661cb31b2f82d5a82460e96ece9.zip |
Make scheduler_run() mockable
Diffstat (limited to 'src/or/scheduler.c')
-rw-r--r-- | src/or/scheduler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/scheduler.c b/src/or/scheduler.c index 544ec83258..bf86810517 100644 --- a/src/or/scheduler.c +++ b/src/or/scheduler.c @@ -376,8 +376,8 @@ scheduler_release_channel,(channel_t *chan)) /** Run the scheduling algorithm if necessary */ -void -scheduler_run(void) +MOCK_IMPL(void, +scheduler_run, (void)) { int n_cells, n_chans_before, n_chans_after; uint64_t q_len_before, q_heur_before, q_len_after, q_heur_after; |