diff options
author | teor <teor@torproject.org> | 2020-04-06 19:14:27 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2020-04-09 11:00:04 +1000 |
commit | 2b66429fcfe3dbbaa559b0b2de910e0266f27698 (patch) | |
tree | f519a682ea4af580da623770e2a9298ad6677795 /src/core/or/onion.h | |
parent | 8f3cbe755bc6817a164fe59b5ed1916a1c71fb5b (diff) | |
download | tor-2b66429fcfe3dbbaa559b0b2de910e0266f27698.tar.gz tor-2b66429fcfe3dbbaa559b0b2de910e0266f27698.zip |
core/or: Make some functions mockable
Preparation for testing circuit_extend().
Part of 33633.
Diffstat (limited to 'src/core/or/onion.h')
-rw-r--r-- | src/core/or/onion.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/or/onion.h b/src/core/or/onion.h index ff3083f374..72470d1cbe 100644 --- a/src/core/or/onion.h +++ b/src/core/or/onion.h @@ -74,8 +74,10 @@ void create_cell_init(create_cell_t *cell_out, uint8_t cell_type, const uint8_t *onionskin); int create_cell_parse(create_cell_t *cell_out, const cell_t *cell_in); int created_cell_parse(created_cell_t *cell_out, const cell_t *cell_in); -int extend_cell_parse(extend_cell_t *cell_out, const uint8_t command, - const uint8_t *payload_in, size_t payload_len); +MOCK_DECL(int,extend_cell_parse,(extend_cell_t *cell_out, + const uint8_t command, + const uint8_t *payload_in, + size_t payload_len)); int extended_cell_parse(extended_cell_t *cell_out, const uint8_t command, const uint8_t *payload_in, size_t payload_len); |