diff options
author | Andrea Shepard <andrea@torproject.org> | 2016-06-30 06:27:14 +0000 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2016-06-30 07:03:26 +0000 |
commit | f99c9df02b6ac0c7804013bca951ecaf5744c2db (patch) | |
tree | 9a7447e0bb7ac51da35b6b2966baa83965adc358 /src/or/routerparse.c | |
parent | 42f089473a50613ae62875ede386861e91123b78 (diff) | |
download | tor-f99c9df02b6ac0c7804013bca951ecaf5744c2db.tar.gz tor-f99c9df02b6ac0c7804013bca951ecaf5744c2db.zip |
Make things mockable for dump_desc_populate_fifo_from_directory() unit test
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r-- | src/or/routerparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index f3f003eede..3436bfb86b 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -823,8 +823,8 @@ dump_desc_fifo_cleanup(void) * the filename is sensibly formed and matches the file content, and either * return a dumped_desc_t for it or remove the file and return NULL. */ -STATIC dumped_desc_t * -dump_desc_populate_one_file(const char *dirname, const char *f) +MOCK_IMPL(STATIC dumped_desc_t *, +dump_desc_populate_one_file, (const char *dirname, const char *f)) { dumped_desc_t *ent = NULL; char *path = NULL, *desc = NULL; |