diff options
author | Andrea Shepard <andrea@torproject.org> | 2014-01-21 02:49:21 -0800 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2014-09-30 23:09:14 -0700 |
commit | ade60890d013e8af25f432cca97193bdc8659701 (patch) | |
tree | 2b30713ca2570720624c91765ef55f5f7d1d14f4 /src/or | |
parent | bef11b715637ad28f6c8802adf6893e050c05d0a (diff) | |
download | tor-ade60890d013e8af25f432cca97193bdc8659701.tar.gz tor-ade60890d013e8af25f432cca97193bdc8659701.zip |
Make scheduler_channel_doesnt_want_writes() mockable
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/scheduler.c | 4 | ||||
-rw-r--r-- | src/or/scheduler.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/or/scheduler.c b/src/or/scheduler.c index 8a6620b049..367480cb31 100644 --- a/src/or/scheduler.c +++ b/src/or/scheduler.c @@ -275,8 +275,8 @@ scheduler_channel_doesnt_want_writes,(channel_t *chan)) /** Mark a channel as having waiting cells */ -void -scheduler_channel_has_waiting_cells(channel_t *chan) +MOCK_IMPL(void, +scheduler_channel_has_waiting_cells,(channel_t *chan)) { int became_pending = 0; diff --git a/src/or/scheduler.h b/src/or/scheduler.h index 0752ae0760..7f59ec45d0 100644 --- a/src/or/scheduler.h +++ b/src/or/scheduler.h @@ -22,7 +22,7 @@ void scheduler_run(void); /* Mark channels as having cells or wanting/not wanting writes */ MOCK_DECL(void,scheduler_channel_doesnt_want_writes,(channel_t *chan)); -void scheduler_channel_has_waiting_cells(channel_t *chan); +MOCK_DECL(void,scheduler_channel_has_waiting_cells,(channel_t *chan)); void scheduler_channel_wants_writes(channel_t *chan); /* Notify the scheduler of a channel being closed */ |