diff options
author | Andrea Shepard <andrea@torproject.org> | 2014-01-21 00:46:57 -0800 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2014-09-30 23:09:14 -0700 |
commit | 79b8f14c25ecbb4cda8fe587f18694dedd3ee9c0 (patch) | |
tree | 7ba738411f367452a334ac9816d94731d28cf010 /src/test/fakechans.h | |
parent | ba294ff2dcdbf75c49a478cd9f0ad20fc0ad4b50 (diff) | |
download | tor-79b8f14c25ecbb4cda8fe587f18694dedd3ee9c0.tar.gz tor-79b8f14c25ecbb4cda8fe587f18694dedd3ee9c0.zip |
Expose fake channel utility functions in test suite in fakechans.h, and fix a test_channel.c bug
Diffstat (limited to 'src/test/fakechans.h')
-rw-r--r-- | src/test/fakechans.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/fakechans.h b/src/test/fakechans.h new file mode 100644 index 0000000000..b474810bc4 --- /dev/null +++ b/src/test/fakechans.h @@ -0,0 +1,16 @@ + /* 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); + +#endif /* !defined(TOR_FAKECHANS_H) */ |