diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-04-04 13:51:34 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-04-06 11:48:41 -0400 |
commit | 73e9bc914f43b21f3bed5eca5d2fc837cc5aa070 (patch) | |
tree | dfcfbe0d59a6d7760c3ec1d8b68bc5308b4755c2 /src/or/conscache.h | |
parent | 4404dc5756c929fccc5784a637014aee929bdfd1 (diff) | |
download | tor-73e9bc914f43b21f3bed5eca5d2fc837cc5aa070.tar.gz tor-73e9bc914f43b21f3bed5eca5d2fc837cc5aa070.zip |
Tests for simple cases of conscache code.
Diffstat (limited to 'src/or/conscache.h')
-rw-r--r-- | src/or/conscache.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/conscache.h b/src/or/conscache.h index 0a0fc61071..94d7f15457 100644 --- a/src/or/conscache.h +++ b/src/or/conscache.h @@ -44,5 +44,9 @@ int consensus_cache_entry_get_body(const consensus_cache_entry_t *ent, const uint8_t **body_out, size_t *sz_out); +#ifdef TOR_UNIT_TESTS +int consensus_cache_entry_is_mapped(consensus_cache_entry_t *ent); +#endif + #endif |