diff options
author | Andrea Shepard <andrea@torproject.org> | 2016-07-02 05:42:09 +0000 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2016-08-20 01:43:52 +0000 |
commit | e17083b4328490d8785c798eb4f41f653e6548d7 (patch) | |
tree | 62d7687f3da3c9aa157afa881d5cb90a580c3b2e /src/or | |
parent | 26c2ded00cfcf1c86ebe10a65b6de0af0e5b76c7 (diff) | |
download | tor-e17083b4328490d8785c798eb4f41f653e6548d7.tar.gz tor-e17083b4328490d8785c798eb4f41f653e6548d7.zip |
Unit test for kill_conn_list_for_oos()
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/connection.c | 6 | ||||
-rw-r--r-- | src/or/connection.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 844ab40b6e..09b4733234 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -754,9 +754,9 @@ connection_mark_for_close_(connection_t *conn, int line, const char *file) * For all other cases, use connection_mark_and_flush() instead, which * checks for or_connection_t properly, instead. See below. */ -void -connection_mark_for_close_internal_(connection_t *conn, - int line, const char *file) +MOCK_IMPL(void, +connection_mark_for_close_internal_, (connection_t *conn, + int line, const char *file)) { assert_connection_ok(conn,0); tor_assert(line); diff --git a/src/or/connection.h b/src/or/connection.h index 83ee76932b..e2f1764549 100644 --- a/src/or/connection.h +++ b/src/or/connection.h @@ -34,8 +34,8 @@ void connection_about_to_close_connection(connection_t *conn); void connection_close_immediate(connection_t *conn); void connection_mark_for_close_(connection_t *conn, int line, const char *file); -void connection_mark_for_close_internal_(connection_t *conn, - int line, const char *file); +MOCK_DECL(void, connection_mark_for_close_internal_, + (connection_t *conn, int line, const char *file)); #define connection_mark_for_close(c) \ connection_mark_for_close_((c), __LINE__, SHORT_FILE__) |