diff options
author | Andrea Shepard <andrea@torproject.org> | 2016-07-02 04:39:45 +0000 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2016-08-20 01:43:51 +0000 |
commit | 26c2ded00cfcf1c86ebe10a65b6de0af0e5b76c7 (patch) | |
tree | a110fe894622639b882a836914e4845c5fee9e53 /src/or/connection.c | |
parent | 709f2cbf58c0acc4c84035dadc6be4846b5d3f3e (diff) | |
download | tor-26c2ded00cfcf1c86ebe10a65b6de0af0e5b76c7.tar.gz tor-26c2ded00cfcf1c86ebe10a65b6de0af0e5b76c7.zip |
Unit test for connection_handle_oos()
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 9c80d97e4d..844ab40b6e 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -4550,8 +4550,8 @@ oos_victim_comparator(const void **a_v, const void **b_v) /** Pick n victim connections for the OOS handler and return them in a * smartlist. */ -static smartlist_t * -pick_oos_victims(int n) +MOCK_IMPL(STATIC smartlist_t *, +pick_oos_victims, (int n)) { smartlist_t *eligible = NULL, *victims = NULL; smartlist_t *conns; @@ -4639,8 +4639,8 @@ pick_oos_victims(int n) } /** Kill a list of connections for the OOS handler. */ -static void -kill_conn_list_for_oos(smartlist_t *conns) +MOCK_IMPL(STATIC void, +kill_conn_list_for_oos, (smartlist_t *conns)) { if (!conns) return; |