diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-07-01 14:42:55 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-07-02 09:51:04 -0400 |
commit | 1e97f968882f12edad20874ada99c2bd8542119d (patch) | |
tree | 31ee477578e6e7ac83cf6f8df5507bb639589fb9 /src/test/test_circuitbuild.c | |
parent | 6a0b9e47462d7c0bcb4598343cc7d6e7689216d7 (diff) | |
download | tor-1e97f968882f12edad20874ada99c2bd8542119d.tar.gz tor-1e97f968882f12edad20874ada99c2bd8542119d.zip |
Refactor channel_connect_for_circuit() to take an extend_info_t.
Diffstat (limited to 'src/test/test_circuitbuild.c')
-rw-r--r-- | src/test/test_circuitbuild.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/test/test_circuitbuild.c b/src/test/test_circuitbuild.c index e1fbd333d7..f7a27146b0 100644 --- a/src/test/test_circuitbuild.c +++ b/src/test/test_circuitbuild.c @@ -1001,15 +1001,9 @@ mock_circuit_mark_for_close_(circuit_t *circ, int reason, static int mock_channel_connect_calls = 0; static channel_t *mock_channel_connect_nchan = NULL; static channel_t * -mock_channel_connect_for_circuit(const tor_addr_t *addr, - uint16_t port, - const char *id_digest, - const struct ed25519_public_key_t *ed_id) +mock_channel_connect_for_circuit(const extend_info_t *ei) { - (void)addr; - (void)port; - (void)id_digest; - (void)ed_id; + (void)ei; mock_channel_connect_calls++; return mock_channel_connect_nchan; } |