diff options
author | Andrea Shepard <andrea@torproject.org> | 2016-06-25 08:31:45 +0000 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2016-06-30 07:03:25 +0000 |
commit | 2a17b93cc45e62c589de4f413ab0314f9bf72193 (patch) | |
tree | cf07444b9fe8db3847288e80114d8c7963319af2 /src/or/config.h | |
parent | 35fc5879fb15177581284537f5b5286110590555 (diff) | |
download | tor-2a17b93cc45e62c589de4f413ab0314f9bf72193.tar.gz tor-2a17b93cc45e62c589de4f413ab0314f9bf72193.zip |
Make options_get_datadir_fname2_suffix() mockable
Diffstat (limited to 'src/or/config.h')
-rw-r--r-- | src/or/config.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/or/config.h b/src/or/config.h index e08ad81304..a0fe6e4805 100644 --- a/src/or/config.h +++ b/src/or/config.h @@ -53,9 +53,11 @@ config_line_t *option_get_assignment(const or_options_t *options, const char *key); int options_save_current(void); const char *get_torrc_fname(int defaults_fname); -char *options_get_datadir_fname2_suffix(const or_options_t *options, - const char *sub1, const char *sub2, - const char *suffix); +MOCK_DECL(char *, + options_get_datadir_fname2_suffix, + (const or_options_t *options, + const char *sub1, const char *sub2, + const char *suffix)); #define get_datadir_fname2_suffix(sub1, sub2, suffix) \ options_get_datadir_fname2_suffix(get_options(), (sub1), (sub2), (suffix)) /** Return a newly allocated string containing datadir/sub1. See |