aboutsummaryrefslogtreecommitdiff
path: root/src/or/entrynodes.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2016-06-28 21:30:57 +0000
committerAndrea Shepard <andrea@torproject.org>2016-06-29 05:55:42 +0000
commit657eaee6ae640d5abffc760bed14b5d31ad1ea73 (patch)
treef38d042a7c80a8146da8acd1a8bc96174b6924ee /src/or/entrynodes.c
parentc69290072819d20e43bd0dd83fa8cefc1167b544 (diff)
downloadtor-657eaee6ae640d5abffc760bed14b5d31ad1ea73.tar.gz
tor-657eaee6ae640d5abffc760bed14b5d31ad1ea73.zip
Expose GETINFO download status statics for test suite and make things mockable
Diffstat (limited to 'src/or/entrynodes.c')
-rw-r--r--src/or/entrynodes.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c
index 72ac6e7e4f..17507fefbd 100644
--- a/src/or/entrynodes.c
+++ b/src/or/entrynodes.c
@@ -2425,8 +2425,8 @@ num_bridges_usable(void)
}
/** Return a smartlist containing all bridge identity digests */
-smartlist_t *
-list_bridge_identities(void)
+MOCK_IMPL(smartlist_t *,
+list_bridge_identities, (void))
{
smartlist_t *result = NULL;
char *digest_tmp;
@@ -2445,8 +2445,8 @@ list_bridge_identities(void)
}
/** Get the download status for a bridge descriptor given its identity */
-download_status_t *
-get_bridge_dl_status_by_id(const char *digest)
+MOCK_IMPL(download_status_t *,
+get_bridge_dl_status_by_id, (const char *digest))
{
download_status_t *dl = NULL;