Make scheduler_channel_doesnt_want_writes() mockable

This commit is contained in:
Andrea Shepard 2014-01-21 02:49:21 -08:00
parent bef11b7156
commit ade60890d0
2 changed files with 3 additions and 3 deletions

View File

@ -275,8 +275,8 @@ scheduler_channel_doesnt_want_writes,(channel_t *chan))
/** Mark a channel as having waiting cells */ /** Mark a channel as having waiting cells */
void MOCK_IMPL(void,
scheduler_channel_has_waiting_cells(channel_t *chan) scheduler_channel_has_waiting_cells,(channel_t *chan))
{ {
int became_pending = 0; int became_pending = 0;

View File

@ -22,7 +22,7 @@ void scheduler_run(void);
/* Mark channels as having cells or wanting/not wanting writes */ /* Mark channels as having cells or wanting/not wanting writes */
MOCK_DECL(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); MOCK_DECL(void,scheduler_channel_has_waiting_cells,(channel_t *chan));
void scheduler_channel_wants_writes(channel_t *chan); void scheduler_channel_wants_writes(channel_t *chan);
/* Notify the scheduler of a channel being closed */ /* Notify the scheduler of a channel being closed */