changelog typo fix
[tor.git] / src / test / fakechans.h
blobfa0e37dbe61baa5227aeeeab1b0c59e9cdfd921a
1 /* Copyright (c) 2014-2016, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
4 #ifndef TOR_FAKECHANS_H
5 #define TOR_FAKECHANS_H
7 /**
8 * \file fakechans.h
9 * \brief Declarations for fake channels for test suite use
12 void make_fake_cell(cell_t *c);
13 void make_fake_var_cell(var_cell_t *c);
14 channel_t * new_fake_channel(void);
15 void free_fake_channel(channel_t *c);
17 /* Also exposes some a mock used by both test_channel.c and test_relay.c */
18 void scheduler_channel_has_waiting_cells_mock(channel_t *ch);
19 void scheduler_release_channel_mock(channel_t *ch);
21 /* Query some counters used by the exposed mocks */
22 int get_mock_scheduler_has_waiting_cells_count(void);
23 int get_mock_scheduler_release_channel_count(void);
25 #endif /* !defined(TOR_FAKECHANS_H) */