prop224: 'is_new_tp' -> 'use_second_hdsir_index' in hs_get_responsible_hsdirs()
[tor.git] / src / test / fakechans.h
blobc0de430e3d54072600fc5cc4721becb86dd6b1a7
1 /* Copyright (c) 2014-2017, 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) */