diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-07-10 15:07:32 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-07-10 15:26:34 -0400 |
commit | ec6c155f827000e337796f1f1c54299fbc5cf72a (patch) | |
tree | e165ed24d0bc530ab25710214e0a63e2f052ed1e /src/or/circuitlist.h | |
parent | b6e8c74667cf723c5ef4d081fc901752e05f9a9b (diff) | |
download | tor-ec6c155f827000e337796f1f1c54299fbc5cf72a.tar.gz tor-ec6c155f827000e337796f1f1c54299fbc5cf72a.zip |
Add some basic unit tests for the circuit map data structure.
These show off the new mocking code by mocking the circuitmux code
so that we can test the circuit map code in isolation.
Diffstat (limited to 'src/or/circuitlist.h')
-rw-r--r-- | src/or/circuitlist.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/circuitlist.h b/src/or/circuitlist.h index 03f678c5af..a5a54859b2 100644 --- a/src/or/circuitlist.h +++ b/src/or/circuitlist.h @@ -12,6 +12,8 @@ #ifndef TOR_CIRCUITLIST_H #define TOR_CIRCUITLIST_H +#include "testsupport.h" + circuit_t * circuit_get_global_list_(void); const char *circuit_state_to_string(int state); const char *circuit_purpose_to_controller_string(uint8_t purpose); @@ -68,5 +70,9 @@ void circuits_handle_oom(size_t current_allocation); void channel_note_destroy_pending(channel_t *chan, circid_t id); void channel_note_destroy_not_pending(channel_t *chan, circid_t id); +#ifdef CIRCUITLIST_PRIVATE +STATIC void circuit_free(circuit_t *circ); +#endif + #endif |