mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
Make channel_note_destroy_not_pending() mockable
This commit is contained in:
parent
dabf4c33e2
commit
8907554cf3
@ -302,8 +302,8 @@ channel_note_destroy_pending(channel_t *chan, circid_t id)
|
|||||||
|
|
||||||
/** Called to indicate that a DESTROY is no longer pending on <b>chan</b> with
|
/** Called to indicate that a DESTROY is no longer pending on <b>chan</b> with
|
||||||
* circuit ID <b>id</b> -- typically, because it has been sent. */
|
* circuit ID <b>id</b> -- typically, because it has been sent. */
|
||||||
void
|
MOCK_IMPL(void, channel_note_destroy_not_pending,
|
||||||
channel_note_destroy_not_pending(channel_t *chan, circid_t id)
|
(channel_t *chan, circid_t id))
|
||||||
{
|
{
|
||||||
circuit_t *circ = circuit_get_by_circid_channel_even_if_marked(id,chan);
|
circuit_t *circ = circuit_get_by_circid_channel_even_if_marked(id,chan);
|
||||||
if (circ) {
|
if (circ) {
|
||||||
|
@ -72,7 +72,8 @@ void circuit_free_all(void);
|
|||||||
void circuits_handle_oom(size_t current_allocation);
|
void circuits_handle_oom(size_t current_allocation);
|
||||||
|
|
||||||
void channel_note_destroy_pending(channel_t *chan, circid_t id);
|
void channel_note_destroy_pending(channel_t *chan, circid_t id);
|
||||||
void channel_note_destroy_not_pending(channel_t *chan, circid_t id);
|
MOCK_DECL(void, channel_note_destroy_not_pending,
|
||||||
|
(channel_t *chan, circid_t id));
|
||||||
|
|
||||||
#ifdef CIRCUITLIST_PRIVATE
|
#ifdef CIRCUITLIST_PRIVATE
|
||||||
STATIC void circuit_free(circuit_t *circ);
|
STATIC void circuit_free(circuit_t *circ);
|
||||||
|
Loading…
Reference in New Issue
Block a user