mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
Make scheduler_channel_doesnt_want_writes() mockable
This commit is contained in:
parent
e00fde1797
commit
fd57840a77
@ -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 */
|
/** Mark a channel as no longer ready to accept writes */
|
||||||
|
|
||||||
void
|
MOCK_IMPL(void,
|
||||||
scheduler_channel_doesnt_want_writes(channel_t *chan)
|
scheduler_channel_doesnt_want_writes,(channel_t *chan))
|
||||||
{
|
{
|
||||||
tor_assert(chan);
|
tor_assert(chan);
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ void scheduler_init(void);
|
|||||||
void scheduler_run(void);
|
void scheduler_run(void);
|
||||||
|
|
||||||
/* Mark channels as having cells or wanting/not wanting writes */
|
/* 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_has_waiting_cells(channel_t *chan);
|
||||||
void scheduler_channel_wants_writes(channel_t *chan);
|
void scheduler_channel_wants_writes(channel_t *chan);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user