diff options
author | teor <teor@torproject.org> | 2020-04-06 19:14:27 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2020-04-09 11:00:04 +1000 |
commit | 2b66429fcfe3dbbaa559b0b2de910e0266f27698 (patch) | |
tree | f519a682ea4af580da623770e2a9298ad6677795 /src/core/or/circuitbuild.c | |
parent | 8f3cbe755bc6817a164fe59b5ed1916a1c71fb5b (diff) | |
download | tor-2b66429fcfe3dbbaa559b0b2de910e0266f27698.tar.gz tor-2b66429fcfe3dbbaa559b0b2de910e0266f27698.zip |
core/or: Make some functions mockable
Preparation for testing circuit_extend().
Part of 33633.
Diffstat (limited to 'src/core/or/circuitbuild.c')
-rw-r--r-- | src/core/or/circuitbuild.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/or/circuitbuild.c b/src/core/or/circuitbuild.c index 71a51e61a4..ce0f9618fe 100644 --- a/src/core/or/circuitbuild.c +++ b/src/core/or/circuitbuild.c @@ -698,10 +698,10 @@ circuit_n_chan_done(channel_t *chan, int status, int close_origin_circuits) * gave us via an EXTEND cell, so we shouldn't worry if we don't understand * it. Return -1 if we failed to find a suitable circid, else return 0. */ -int -circuit_deliver_create_cell(circuit_t *circ, - const struct create_cell_t *create_cell, - int relayed) +MOCK_IMPL(int, +circuit_deliver_create_cell,(circuit_t *circ, + const struct create_cell_t *create_cell, + int relayed)) { cell_t cell; circid_t id; |