mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 06:33:44 +01:00
Make scheduler_run() mockable
This commit is contained in:
parent
314c2f18ae
commit
f8ceb0f028
@ -376,8 +376,8 @@ scheduler_release_channel,(channel_t *chan))
|
|||||||
|
|
||||||
/** Run the scheduling algorithm if necessary */
|
/** Run the scheduling algorithm if necessary */
|
||||||
|
|
||||||
void
|
MOCK_IMPL(void,
|
||||||
scheduler_run(void)
|
scheduler_run, (void))
|
||||||
{
|
{
|
||||||
int n_cells, n_chans_before, n_chans_after;
|
int n_cells, n_chans_before, n_chans_after;
|
||||||
uint64_t q_len_before, q_heur_before, q_len_after, q_heur_after;
|
uint64_t q_len_before, q_heur_before, q_len_after, q_heur_after;
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
/* Set up and shut down the scheduler from main.c */
|
/* Set up and shut down the scheduler from main.c */
|
||||||
void scheduler_free_all(void);
|
void scheduler_free_all(void);
|
||||||
void scheduler_init(void);
|
void scheduler_init(void);
|
||||||
void scheduler_run(void);
|
MOCK_DECL(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));
|
||||||
|
Loading…
Reference in New Issue
Block a user