aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_policy.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-10-01 11:08:09 -0500
committerNick Mathewson <nickm@torproject.org>2018-10-01 11:17:19 -0500
commit35db3f8162f132cec7afc148eda8f7482dbeeb76 (patch)
tree7c00b06286d5c75f5ab5d854a201031c7e7a0f9a /src/test/test_policy.c
parent95e2eb9083d2cd9c79c3f4151850c86cbeaf4cc4 (diff)
downloadtor-35db3f8162f132cec7afc148eda8f7482dbeeb76.tar.gz
tor-35db3f8162f132cec7afc148eda8f7482dbeeb76.zip
Extract addr-policy parsing code.
Diffstat (limited to 'src/test/test_policy.c')
-rw-r--r--src/test/test_policy.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/test/test_policy.c b/src/test/test_policy.c
index 5101b57abf..afe608f5f7 100644
--- a/src/test/test_policy.c
+++ b/src/test/test_policy.c
@@ -1,19 +1,20 @@
/* Copyright (c) 2013-2018, The Tor Project, Inc. */
/* See LICENSE for licensing information */
-#include "core/or/or.h"
#define CONFIG_PRIVATE
-#include "app/config/config.h"
-#include "feature/relay/router.h"
-#include "feature/dirparse/routerparse.h"
#define POLICIES_PRIVATE
+
+#include "core/or/or.h"
+#include "app/config/config.h"
#include "core/or/policies.h"
+#include "feature/dirparse/policy_parse.h"
+#include "feature/relay/router.h"
#include "lib/encoding/confline.h"
#include "test/test.h"
#include "core/or/addr_policy_st.h"
-#include "feature/nodelist/node_st.h"
#include "core/or/port_cfg_st.h"
+#include "feature/nodelist/node_st.h"
#include "feature/nodelist/routerinfo_st.h"
#include "feature/nodelist/routerstatus_st.h"