diff options
author | Andrea Shepard <andrea@torproject.org> | 2014-01-21 02:50:33 -0800 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2014-09-30 23:09:15 -0700 |
commit | 46ff91b6ec90fc8ee9a84622f9dce91903686559 (patch) | |
tree | e594eb1aa418b5f84945d42fc4966427014f8941 /src/test/fakechans.h | |
parent | 2ee69bd5d74842681aa3c90aae93b93fb0657269 (diff) | |
download | tor-46ff91b6ec90fc8ee9a84622f9dce91903686559.tar.gz tor-46ff91b6ec90fc8ee9a84622f9dce91903686559.zip |
Add scheduler_channel_has_waiting_cells_mock() and some mock counter queries
Diffstat (limited to 'src/test/fakechans.h')
-rw-r--r-- | src/test/fakechans.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/fakechans.h b/src/test/fakechans.h index 99773e721d..b129ab49a5 100644 --- a/src/test/fakechans.h +++ b/src/test/fakechans.h @@ -14,6 +14,12 @@ void make_fake_var_cell(var_cell_t *c); channel_t * new_fake_channel(void); /* Also exposes some a mock used by both test_channel.c and test_relay.c */ +void scheduler_channel_has_waiting_cells_mock(channel_t *ch); void scheduler_release_channel_mock(channel_t *ch); +/* Query some counters used by the exposed mocks */ +int get_mock_scheduler_has_waiting_cells_count(void); +int get_mock_scheduler_release_channel_count(void); + #endif /* !defined(TOR_FAKECHANS_H) */ + |