aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_circuitpadding.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-01-10 12:38:00 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2019-01-10 13:06:08 +0200
commitf4938179c50cc385b7599e5a03388792e46cde83 (patch)
tree288c30339c5d7c3280d12b09aa6789fa65696604 /src/test/test_circuitpadding.c
parent5738a0ab6c7904ed9dd53ce5d045b2dedf69b4f6 (diff)
downloadtor-f4938179c50cc385b7599e5a03388792e46cde83.tar.gz
tor-f4938179c50cc385b7599e5a03388792e46cde83.zip
Rename circpad_machineinfo_t -> circpad_machine_state_t
Diffstat (limited to 'src/test/test_circuitpadding.c')
-rw-r--r--src/test/test_circuitpadding.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/test/test_circuitpadding.c b/src/test/test_circuitpadding.c
index 2ab8e2445e..f4d003969e 100644
--- a/src/test/test_circuitpadding.c
+++ b/src/test/test_circuitpadding.c
@@ -479,7 +479,7 @@ helper_create_machine_with_big_histogram(circpad_removal_t removal_strategy)
}
static circpad_decision_t
-circpad_machine_schedule_padding_mock(circpad_machineinfo_t *mi)
+circpad_machine_schedule_padding_mock(circpad_machine_state_t *mi)
{
(void)mi;
return 0;
@@ -495,7 +495,7 @@ mock_monotime_absolute_usec(void)
static void
test_circuitpadding_token_removal_higher(void *arg)
{
- circpad_machineinfo_t *mi;
+ circpad_machine_state_t *mi;
(void)arg;
/* Mock it up */
@@ -592,7 +592,7 @@ test_circuitpadding_token_removal_higher(void *arg)
static void
test_circuitpadding_token_removal_lower(void *arg)
{
- circpad_machineinfo_t *mi;
+ circpad_machine_state_t *mi;
(void)arg;
/* Mock it up */
@@ -689,7 +689,7 @@ test_circuitpadding_token_removal_lower(void *arg)
static void
test_circuitpadding_closest_token_removal(void *arg)
{
- circpad_machineinfo_t *mi;
+ circpad_machine_state_t *mi;
(void)arg;
/* Mock it up */
@@ -794,7 +794,7 @@ test_circuitpadding_closest_token_removal(void *arg)
static void
test_circuitpadding_closest_token_removal_usec(void *arg)
{
- circpad_machineinfo_t *mi;
+ circpad_machine_state_t *mi;
(void)arg;
/* Mock it up */
@@ -902,7 +902,7 @@ test_circuitpadding_closest_token_removal_usec(void *arg)
static void
test_circuitpadding_token_removal_exact(void *arg)
{
- circpad_machineinfo_t *mi;
+ circpad_machine_state_t *mi;
(void)arg;
/* Mock it up */
@@ -963,7 +963,7 @@ void
test_circuitpadding_tokens(void *arg)
{
const circpad_state_t *state;
- circpad_machineinfo_t *mi;
+ circpad_machine_state_t *mi;
(void)arg;
/** Test plan:
@@ -2114,7 +2114,7 @@ helper_circpad_circ_distribution_machine_setup(int min, int max)
static void
test_circuitpadding_sample_distribution(void *arg)
{
- circpad_machineinfo_t *mi;
+ circpad_machine_state_t *mi;
int n_samples;
int n_states;
@@ -2159,7 +2159,7 @@ test_circuitpadding_sample_distribution(void *arg)
}
static circpad_decision_t
-circpad_machine_spec_transition_mock(circpad_machineinfo_t *mi,
+circpad_machine_spec_transition_mock(circpad_machine_state_t *mi,
circpad_event_t event)
{
(void) mi;
@@ -2174,7 +2174,7 @@ test_circuitpadding_machine_rate_limiting(void *arg)
{
(void) arg;
bool retval;
- circpad_machineinfo_t *mi;
+ circpad_machine_state_t *mi;
int i;
/* Ignore machine transitions for the purposes of this function, we only
@@ -2242,7 +2242,7 @@ test_circuitpadding_global_rate_limiting(void *arg)
{
(void) arg;
bool retval;
- circpad_machineinfo_t *mi;
+ circpad_machine_state_t *mi;
int i;
/* Ignore machine transitions for the purposes of this function, we only