aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/circuitpadding.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-03-28 15:39:08 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2019-05-16 14:23:22 +0300
commit953dc601d9369db54ad48a21768a7852f18a617b (patch)
tree4560d6fcd00dbb06daefb4a59bd4bb0086434544 /src/core/or/circuitpadding.h
parentac895fa40552b78744eddfb648dadde23834e553 (diff)
downloadtor-953dc601d9369db54ad48a21768a7852f18a617b.tar.gz
tor-953dc601d9369db54ad48a21768a7852f18a617b.zip
Add unittests for the new machines.
Diffstat (limited to 'src/core/or/circuitpadding.h')
-rw-r--r--src/core/or/circuitpadding.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/or/circuitpadding.h b/src/core/or/circuitpadding.h
index 37b4603f0e..0dc66246d9 100644
--- a/src/core/or/circuitpadding.h
+++ b/src/core/or/circuitpadding.h
@@ -786,10 +786,17 @@ circpad_send_command_to_hop,(struct origin_circuit_t *circ, uint8_t hopnum,
uint8_t relay_command, const uint8_t *payload,
ssize_t payload_len));
+MOCK_DECL(STATIC const node_t *,
+circuit_get_nth_node,(origin_circuit_t *circ, int hop));
+
STATIC circpad_delay_t
histogram_get_bin_upper_bound(const circpad_machine_runtime_t *mi,
circpad_hist_index_t bin);
+STATIC void
+circpad_add_matching_machines(origin_circuit_t *on_circ,
+ smartlist_t *machines_sl);
+
#ifdef TOR_UNIT_TESTS
extern smartlist_t *origin_padding_machines;
extern smartlist_t *relay_padding_machines;