aboutsummaryrefslogtreecommitdiff
path: root/src/test/fakechans.h
blob: 99773e721d9f1b1abc89eb88b1f46f787846ed48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 /* Copyright (c) 2014, The Tor Project, Inc. */
 /* See LICENSE for licensing information */

#ifndef TOR_FAKECHANS_H
#define TOR_FAKECHANS_H

/**
 * \file fakechans.h
 * \brief Declarations for fake channels for test suite use
 */

void make_fake_cell(cell_t *c);
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_release_channel_mock(channel_t *ch);

#endif /* !defined(TOR_FAKECHANS_H) */