summaryrefslogtreecommitdiff
path: root/src/or/routerparse.h
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2016-06-30 06:27:14 +0000
committerAndrea Shepard <andrea@torproject.org>2016-06-30 07:03:26 +0000
commitf99c9df02b6ac0c7804013bca951ecaf5744c2db (patch)
tree9a7447e0bb7ac51da35b6b2966baa83965adc358 /src/or/routerparse.h
parent42f089473a50613ae62875ede386861e91123b78 (diff)
downloadtor-f99c9df02b6ac0c7804013bca951ecaf5744c2db.tar.gz
tor-f99c9df02b6ac0c7804013bca951ecaf5744c2db.zip
Make things mockable for dump_desc_populate_fifo_from_directory() unit test
Diffstat (limited to 'src/or/routerparse.h')
-rw-r--r--src/or/routerparse.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/routerparse.h b/src/or/routerparse.h
index 6167e5148b..131f158c56 100644
--- a/src/or/routerparse.h
+++ b/src/or/routerparse.h
@@ -107,8 +107,8 @@ STATIC int routerstatus_parse_guardfraction(const char *guardfraction_str,
networkstatus_t *vote,
vote_routerstatus_t *vote_rs,
routerstatus_t *rs);
-STATIC dumped_desc_t * dump_desc_populate_one_file(const char *dirname,
- const char *f);
+MOCK_DECL(STATIC dumped_desc_t *, dump_desc_populate_one_file,
+ (const char *dirname, const char *f));
STATIC void dump_desc(const char *desc, const char *type);
STATIC void dump_desc_fifo_cleanup(void);
#endif