diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-10-01 10:44:59 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-10-01 10:46:00 -0500 |
commit | 4201203845fa563a7f7410609267b96f2c319720 (patch) | |
tree | 85349852c6735b4a792280a1da469a45d3622b69 /src/test | |
parent | cd23903427844efb23048941af62643e5e0163cb (diff) | |
download | tor-4201203845fa563a7f7410609267b96f2c319720.tar.gz tor-4201203845fa563a7f7410609267b96f2c319720.zip |
extract networkstatus parsing to its own file.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/fuzz/fuzz_consensus.c | 2 | ||||
-rw-r--r-- | src/test/fuzz/fuzz_vrs.c | 4 | ||||
-rw-r--r-- | src/test/test_consdiffmgr.c | 2 | ||||
-rw-r--r-- | src/test/test_dir.c | 2 | ||||
-rw-r--r-- | src/test/test_dir_common.c | 1 | ||||
-rw-r--r-- | src/test/test_guardfraction.c | 4 | ||||
-rw-r--r-- | src/test/test_routerlist.c | 1 |
7 files changed, 10 insertions, 6 deletions
diff --git a/src/test/fuzz/fuzz_consensus.c b/src/test/fuzz/fuzz_consensus.c index 64507c67ea..b56702a650 100644 --- a/src/test/fuzz/fuzz_consensus.c +++ b/src/test/fuzz/fuzz_consensus.c @@ -2,7 +2,7 @@ /* See LICENSE for licensing information */ #define SIGCOMMON_PRIVATE #include "core/or/or.h" -#include "feature/dirparse/routerparse.h" +#include "feature/dirparse/ns_parse.h" #include "feature/dirparse/sigcommon.h" #include "feature/dirparse/unparseable.h" #include "feature/nodelist/networkstatus.h" diff --git a/src/test/fuzz/fuzz_vrs.c b/src/test/fuzz/fuzz_vrs.c index 8fb6e6ef24..0b869aa5c0 100644 --- a/src/test/fuzz/fuzz_vrs.c +++ b/src/test/fuzz/fuzz_vrs.c @@ -1,9 +1,9 @@ /* Copyright (c) 2016-2018, The Tor Project, Inc. */ /* See LICENSE for licensing information */ -#define ROUTERPARSE_PRIVATE +#define NS_PARSE_PRIVATE #define NETWORKSTATUS_PRIVATE #include "core/or/or.h" -#include "feature/dirparse/routerparse.h" +#include "feature/dirparse/ns_parse.h" #include "feature/dirparse/unparseable.h" #include "lib/memarea/memarea.h" #include "feature/nodelist/microdesc.h" diff --git a/src/test/test_consdiffmgr.c b/src/test/test_consdiffmgr.c index dc05c351bf..6c451da685 100644 --- a/src/test/test_consdiffmgr.c +++ b/src/test/test_consdiffmgr.c @@ -11,7 +11,7 @@ #include "core/mainloop/cpuworker.h" #include "lib/crypt_ops/crypto_rand.h" #include "feature/nodelist/networkstatus.h" -#include "feature/dirparse/routerparse.h" +#include "feature/dirparse/ns_parse.h" #include "lib/evloop/workqueue.h" #include "lib/compress/compress.h" #include "lib/encoding/confline.h" diff --git a/src/test/test_dir.c b/src/test/test_dir.c index 59464022b4..3b5d6dc3d6 100644 --- a/src/test/test_dir.c +++ b/src/test/test_dir.c @@ -16,6 +16,7 @@ #define DLSTATUS_PRIVATE #define HIBERNATE_PRIVATE #define NETWORKSTATUS_PRIVATE +#define NS_PARSE_PRIVATE #define NODE_SELECT_PRIVATE #define RELAY_PRIVATE #define ROUTERLIST_PRIVATE @@ -54,6 +55,7 @@ #include "feature/nodelist/node_select.h" #include "feature/nodelist/routerlist.h" #include "feature/dirparse/authcert_parse.h" +#include "feature/dirparse/ns_parse.h" #include "feature/dirparse/routerparse.h" #include "feature/dirparse/unparseable.h" #include "feature/nodelist/routerset.h" diff --git a/src/test/test_dir_common.c b/src/test/test_dir_common.c index 5a9659ad4f..86d2838944 100644 --- a/src/test/test_dir_common.c +++ b/src/test/test_dir_common.c @@ -11,6 +11,7 @@ #include "feature/nodelist/nodelist.h" #include "feature/nodelist/routerlist.h" #include "feature/dirparse/authcert_parse.h" +#include "feature/dirparse/ns_parse.h" #include "test/test_dir_common.h" #include "feature/dircommon/voting_schedule.h" diff --git a/src/test/test_guardfraction.c b/src/test/test_guardfraction.c index c7266be66f..d6f4cd63f2 100644 --- a/src/test/test_guardfraction.c +++ b/src/test/test_guardfraction.c @@ -2,15 +2,15 @@ /* See LICENSE for licensing information */ #define GUARDFRACTION_PRIVATE -#define ROUTERPARSE_PRIVATE #define NETWORKSTATUS_PRIVATE +#define NS_PARSE_PRIVATE #include "orconfig.h" #include "core/or/or.h" #include "app/config/config.h" #include "feature/dirauth/guardfraction.h" #include "feature/client/entrynodes.h" -#include "feature/dirparse/routerparse.h" +#include "feature/dirparse/ns_parse.h" #include "feature/nodelist/networkstatus.h" #include "feature/nodelist/networkstatus_st.h" diff --git a/src/test/test_routerlist.c b/src/test/test_routerlist.c index d4606c227d..b386ad5298 100644 --- a/src/test/test_routerlist.c +++ b/src/test/test_routerlist.c @@ -35,6 +35,7 @@ #include "feature/nodelist/routerset.h" #include "feature/dirparse/authcert_parse.h" #include "feature/dirparse/routerparse.h" +#include "feature/dirparse/ns_parse.h" #include "feature/dirauth/shared_random.h" #include "app/config/statefile.h" |