diff options
author | Andrea Shepard <andrea@torproject.org> | 2016-06-30 06:59:29 +0000 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2016-06-30 07:03:26 +0000 |
commit | 9580b99dab217cc14b3dab78962bfb3bfd51922a (patch) | |
tree | f72f22a1c0781ebd45e3a4ceaa67fa4f93456fc6 /src/or | |
parent | f99c9df02b6ac0c7804013bca951ecaf5744c2db (diff) | |
download | tor-9580b99dab217cc14b3dab78962bfb3bfd51922a.tar.gz tor-9580b99dab217cc14b3dab78962bfb3bfd51922a.zip |
Add unit test for dump_desc_populate_fifo_from_directory()
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/routerparse.c | 4 | ||||
-rw-r--r-- | src/or/routerparse.h | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 3436bfb86b..2260693939 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -588,8 +588,6 @@ static int check_signature_token(const char *digest, /* Dump mechanism for unparseable descriptors */ -static void dump_desc_populate_fifo_from_directory(const char *dirname); - /** List of dumped descriptors for FIFO cleanup purposes */ STATIC smartlist_t *descs_dumped = NULL; /** Total size of dumped descriptors for FIFO cleanup */ @@ -972,7 +970,7 @@ dump_desc_compare_fifo_entries(const void **a_v, const void **b_v) * reconstructed order will be wrong, but will always be a permutation of * the original. */ -static void +STATIC void dump_desc_populate_fifo_from_directory(const char *dirname) { smartlist_t *files = NULL; diff --git a/src/or/routerparse.h b/src/or/routerparse.h index 131f158c56..2eb9932410 100644 --- a/src/or/routerparse.h +++ b/src/or/routerparse.h @@ -109,6 +109,7 @@ STATIC int routerstatus_parse_guardfraction(const char *guardfraction_str, routerstatus_t *rs); MOCK_DECL(STATIC dumped_desc_t *, dump_desc_populate_one_file, (const char *dirname, const char *f)); +STATIC void dump_desc_populate_fifo_from_directory(const char *dirname); STATIC void dump_desc(const char *desc, const char *type); STATIC void dump_desc_fifo_cleanup(void); #endif |