diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-09-19 14:10:15 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-09-19 17:08:57 -0400 |
commit | 08e3b88f0774fedb41a6b1c170a710dd12a7cb90 (patch) | |
tree | 856a7f9ce528021c1d0c9d09b631d09aeec2356c /src/test | |
parent | 119159677be14351ebcae647d3988f4f2fd9eb72 (diff) | |
download | tor-08e3b88f0774fedb41a6b1c170a710dd12a7cb90.tar.gz tor-08e3b88f0774fedb41a6b1c170a710dd12a7cb90.zip |
Split routerlist.c into 4 separate modules
There are now separate modules for:
* the list of router descriptors
* the list of authorities and fallbacks
* managing authority certificates
* selecting random nodes
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_config.c | 1 | ||||
-rw-r--r-- | src/test/test_controller.c | 2 | ||||
-rw-r--r-- | src/test/test_dir.c | 4 | ||||
-rw-r--r-- | src/test/test_dir_handle_get.c | 2 | ||||
-rw-r--r-- | src/test/test_routerlist.c | 3 | ||||
-rw-r--r-- | src/test/test_shared_random.c | 3 |
6 files changed, 13 insertions, 2 deletions
diff --git a/src/test/test_config.c b/src/test/test_config.c index bf21a8d512..f224ddde33 100644 --- a/src/test/test_config.c +++ b/src/test/test_config.c @@ -38,6 +38,7 @@ #include "feature/rend/rendclient.h" #include "feature/rend/rendservice.h" #include "feature/relay/router.h" +#include "feature/nodelist/dirlist.h" #include "feature/nodelist/routerlist.h" #include "feature/nodelist/routerset.h" #include "app/config/statefile.h" diff --git a/src/test/test_controller.c b/src/test/test_controller.c index 0428ac6fce..4f5a9f58d5 100644 --- a/src/test/test_controller.c +++ b/src/test/test_controller.c @@ -10,7 +10,7 @@ #include "feature/hs/hs_common.h" #include "feature/nodelist/networkstatus.h" #include "feature/rend/rendservice.h" -#include "feature/nodelist/routerlist.h" +#include "feature/nodelist/authcert.h" #include "feature/nodelist/nodelist.h" #include "test/test.h" #include "test/test_helpers.h" diff --git a/src/test/test_dir.c b/src/test/test_dir.c index 723799ee8a..363539ce4d 100644 --- a/src/test/test_dir.c +++ b/src/test/test_dir.c @@ -15,6 +15,7 @@ #define ROUTERPARSE_PRIVATE #define HIBERNATE_PRIVATE #define NETWORKSTATUS_PRIVATE +#define NODE_SELECT_PRIVATE #define RELAY_PRIVATE #include "core/or/or.h" @@ -38,6 +39,9 @@ #include "feature/nodelist/networkstatus.h" #include "feature/relay/router.h" #include "feature/relay/routerkeys.h" +#include "feature/nodelist/authcert.h" +#include "feature/nodelist/dirlist.h" +#include "feature/nodelist/node_select.h" #include "feature/nodelist/routerlist.h" #include "feature/nodelist/routerparse.h" #include "feature/nodelist/routerset.h" diff --git a/src/test/test_dir_handle_get.c b/src/test/test_dir_handle_get.c index 09799a0e5f..2cfed16b51 100644 --- a/src/test/test_dir_handle_get.c +++ b/src/test/test_dir_handle_get.c @@ -19,6 +19,8 @@ #include "feature/rend/rendcommon.h" #include "feature/rend/rendcache.h" #include "feature/relay/router.h" +#include "feature/nodelist/authcert.h" +#include "feature/nodelist/dirlist.h" #include "feature/nodelist/routerlist.h" #include "test/rend_test_helpers.h" #include "feature/nodelist/microdesc.h" diff --git a/src/test/test_routerlist.c b/src/test/test_routerlist.c index 89d1f4f90f..f629596c5b 100644 --- a/src/test/test_routerlist.c +++ b/src/test/test_routerlist.c @@ -12,6 +12,7 @@ #define HIBERNATE_PRIVATE #define NETWORKSTATUS_PRIVATE #define ROUTERLIST_PRIVATE +#define NODE_SELECT_PRIVATE #define TOR_UNIT_TESTING #include "core/or/or.h" #include "app/config/config.h" @@ -27,6 +28,8 @@ #include "feature/nodelist/nodelist.h" #include "core/or/policies.h" #include "feature/relay/router.h" +#include "feature/nodelist/authcert.h" +#include "feature/nodelist/node_select.h" #include "feature/nodelist/routerlist.h" #include "feature/nodelist/routerset.h" #include "feature/nodelist/routerparse.h" diff --git a/src/test/test_shared_random.c b/src/test/test_shared_random.c index 70adf580ab..725724aa56 100644 --- a/src/test/test_shared_random.c +++ b/src/test/test_shared_random.c @@ -17,7 +17,8 @@ #include "feature/nodelist/networkstatus.h" #include "feature/relay/router.h" #include "feature/relay/routerkeys.h" -#include "feature/nodelist/routerlist.h" +#include "feature/nodelist/authcert.h" +#include "feature/nodelist/dirlist.h" #include "feature/nodelist/routerparse.h" #include "feature/hs_common/shared_random_client.h" #include "feature/dircommon/voting_schedule.h" |