aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_address_set.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-02-06 09:49:00 -0500
committerDavid Goulet <dgoulet@torproject.org>2020-02-11 10:15:23 -0500
commit7b4d9fabefa97e1121482ace6bc712cd2b00ff0f (patch)
treeaf50b987d8d4e5b04ffb575ceb97562a521fe8c2 /src/test/test_address_set.c
parent33414e5494b56f3f677d022bfb4bb1ed99191032 (diff)
downloadtor-7b4d9fabefa97e1121482ace6bc712cd2b00ff0f.tar.gz
tor-7b4d9fabefa97e1121482ace6bc712cd2b00ff0f.zip
dirauth: Rename function for better clarity
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test/test_address_set.c')
-rw-r--r--src/test/test_address_set.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/test/test_address_set.c b/src/test/test_address_set.c
index 81dc6dff52..6e299d779e 100644
--- a/src/test/test_address_set.c
+++ b/src/test/test_address_set.c
@@ -33,7 +33,7 @@ mock_networkstatus_get_latest_consensus_by_flavor(consensus_flavor_t f)
}
static void
-mock_dirlist_add_trusted_addresses(void)
+mock_dirlist_add_trusted_dir_addresses(void)
{
return;
}
@@ -105,8 +105,8 @@ test_nodelist(void *arg)
mock_networkstatus_get_latest_consensus_by_flavor);
MOCK(get_estimated_address_per_node,
mock_get_estimated_address_per_node);
- MOCK(dirlist_add_trusted_addresses,
- mock_dirlist_add_trusted_addresses);
+ MOCK(dirlist_add_trusted_dir_addresses,
+ mock_dirlist_add_trusted_dir_addresses);
dummy_ns = tor_malloc_zero(sizeof(*dummy_ns));
dummy_ns->flavor = FLAV_MICRODESC;
@@ -123,8 +123,9 @@ test_nodelist(void *arg)
addr_per_node = 1024;
/* No node no nothing. The lookups should be empty. We've mocked the
- * dirlist_add_trusted_addresses in order for _no_ authorities to be added
- * to the filter else it makes this test to trigger many false positive. */
+ * dirlist_add_trusted_dir_addresses in order for _no_ authorities to be
+ * added to the filter else it makes this test to trigger many false
+ * positive. */
nodelist_set_consensus(dummy_ns);
/* The address set should be empty. */
@@ -178,7 +179,7 @@ test_nodelist(void *arg)
UNMOCK(networkstatus_get_latest_consensus);
UNMOCK(networkstatus_get_latest_consensus_by_flavor);
UNMOCK(get_estimated_address_per_node);
- UNMOCK(dirlist_add_trusted_addresses);
+ UNMOCK(dirlist_add_trusted_dir_addresses);
}
struct testcase_t address_set_tests[] = {