diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-01-13 09:52:07 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-02-12 12:48:20 -0500 |
commit | 9a07ec751ff73062b958a8fc9f8437bed72e144c (patch) | |
tree | f603ecc2eed23118c7e848f0a80d0b00a665e262 /src/or/circuitlist.h | |
parent | 52d222aafbc21d674624fdd4c8fc834a40af69c7 (diff) | |
download | tor-9a07ec751ff73062b958a8fc9f8437bed72e144c.tar.gz tor-9a07ec751ff73062b958a8fc9f8437bed72e144c.zip |
Refactor OOM-handling functions for more testability
This patch splits out some of the functions in OOM handling so that
it's easier to check them without involving the rest of Tor or
requiring that the circuits be "wired up".
Diffstat (limited to 'src/or/circuitlist.h')
-rw-r--r-- | src/or/circuitlist.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/circuitlist.h b/src/or/circuitlist.h index 1c8cf7de24..a6340c1f7a 100644 --- a/src/or/circuitlist.h +++ b/src/or/circuitlist.h @@ -53,8 +53,8 @@ origin_circuit_t *circuit_find_to_cannibalize(uint8_t purpose, extend_info_t *info, int flags); void circuit_mark_all_unused_circs(void); void circuit_mark_all_dirty_circs_as_unusable(void); -void circuit_mark_for_close_(circuit_t *circ, int reason, - int line, const char *file); +MOCK_DECL(void, circuit_mark_for_close_, (circuit_t *circ, int reason, + int line, const char *file)); int circuit_get_cpath_len(origin_circuit_t *circ); void circuit_clear_cpath(origin_circuit_t *circ); crypt_path_t *circuit_get_cpath_hop(origin_circuit_t *circ, int hopnum); |