diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-12-19 09:18:03 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-12-19 09:19:02 -0500 |
commit | bc0f1076d53e57d1a4ba19170a1c27d9eaee34e8 (patch) | |
tree | 0ae2be62abb3a0af7a7df6f238eb05d80cdf34fc /src/test/test_options.c | |
parent | 7d5e360c3b74e52ecc997a6accefd39fbbd6f092 (diff) | |
download | tor-bc0f1076d53e57d1a4ba19170a1c27d9eaee34e8.tar.gz tor-bc0f1076d53e57d1a4ba19170a1c27d9eaee34e8.zip |
Move get_foo_options() test helpers into a new test module.
Some of these helpers will be needed in multiple places in the unit
tests, so we should move them now.
Diffstat (limited to 'src/test/test_options.c')
-rw-r--r-- | src/test/test_options.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/test/test_options.c b/src/test/test_options.c index fe21cc96fd..1649a25861 100644 --- a/src/test/test_options.c +++ b/src/test/test_options.c @@ -31,6 +31,7 @@ #include "lib/encoding/confline.h" #include "core/or/policies.h" #include "test/test_helpers.h" +#include "test/opts_test_helpers.h" #include "lib/net/resolve.h" #ifdef HAVE_SYS_PARAM_H @@ -754,14 +755,6 @@ test_options_validate__logs(void *ignored) /* return config_line; */ /* } */ -static dirauth_options_t * -get_dirauth_options(or_options_t *opt) -{ - int idx = subsystems_get_options_idx(&sys_dirauth); - tor_assert(idx >= 0); - return config_mgr_get_obj_mutable(get_options_mgr(), opt, idx); -} - static void test_options_validate__authdir(void *ignored) { @@ -4005,14 +3998,6 @@ test_options_validate__testing_options(void *ignored) tor_free(msg); } -static crypto_options_t * -get_crypto_options(or_options_t *opt) -{ - int idx = subsystems_get_options_idx(&sys_crypto); - tor_assert(idx >= 0); - return config_mgr_get_obj_mutable(get_options_mgr(), opt, idx); -} - static void test_options_validate__accel(void *ignored) { |