aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerlist.h
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/routerlist.h
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/routerlist.h')
-rw-r--r--src/or/routerlist.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/or/routerlist.h b/src/or/routerlist.h
index 65ba88db42..e75c922d4e 100644
--- a/src/or/routerlist.h
+++ b/src/or/routerlist.h
@@ -104,13 +104,13 @@ void routerlist_remove(routerlist_t *rl, routerinfo_t *ri, int make_old,
void routerlist_free_all(void);
void routerlist_reset_warnings(void);
-smartlist_t * list_authority_ids_with_downloads(void);
-download_status_t * id_only_download_status_for_authority_id(
- const char *digest);
-smartlist_t * list_sk_digests_for_authority_id(const char *digest);
-download_status_t * download_status_for_authority_id_and_sk(
- const char *id_digest,
- const char *sk_digest);
+MOCK_DECL(smartlist_t *, list_authority_ids_with_downloads, (void);)
+MOCK_DECL(download_status_t *, id_only_download_status_for_authority_id,
+ (const char *digest));
+MOCK_DECL(smartlist_t *, list_sk_digests_for_authority_id,
+ (const char *digest));
+MOCK_DECL(download_status_t *, download_status_for_authority_id_and_sk,
+ (const char *id_digest, const char *sk_digest));
static int WRA_WAS_ADDED(was_router_added_t s);
static int WRA_WAS_OUTDATED(was_router_added_t s);