Make scheduler_channel_doesnt_want_writes() mockable

This commit is contained in:
Andrea Shepard 2013-12-18 15:31:54 -08:00
parent e00fde1797
commit fd57840a77
2 changed files with 3 additions and 3 deletions

View File

@ -235,8 +235,8 @@ scheduler_evt_callback(evutil_socket_t fd, short events, void *arg)
/** Mark a channel as no longer ready to accept writes */
void
scheduler_channel_doesnt_want_writes(channel_t *chan)
MOCK_IMPL(void,
scheduler_channel_doesnt_want_writes,(channel_t *chan))
{
tor_assert(chan);

View File

@ -21,7 +21,7 @@ void scheduler_init(void);
void scheduler_run(void);
/* Mark channels as having cells or wanting/not wanting writes */
void scheduler_channel_doesnt_want_writes(channel_t *chan);
MOCK_DECL(void,scheduler_channel_doesnt_want_writes,(channel_t *chan));
void scheduler_channel_has_waiting_cells(channel_t *chan);
void scheduler_channel_wants_writes(channel_t *chan);