summaryrefslogtreecommitdiff
path: root/src/or/policies.h
diff options
context:
space:
mode:
authordana koch <dsk@google.com>2014-08-27 20:41:25 +1000
committerNick Mathewson <nickm@torproject.org>2014-08-29 12:55:28 -0400
commitc887e20e6a5a2c17c65f308e70e578e773b2ab23 (patch)
treeceef57b8043c107c11ed17f9658c737d2c2caf23 /src/or/policies.h
parentcc3b04a8c1edbeb1a488e319e3c0d28acd227417 (diff)
downloadtor-c887e20e6a5a2c17c65f308e70e578e773b2ab23.tar.gz
tor-c887e20e6a5a2c17c65f308e70e578e773b2ab23.zip
Introduce full coverage tests for module routerset.c.
This is using the paradigm introduced for test_status.c.
Diffstat (limited to 'src/or/policies.h')
-rw-r--r--src/or/policies.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/policies.h b/src/or/policies.h
index 91ac427492..5f81912ad7 100644
--- a/src/or/policies.h
+++ b/src/or/policies.h
@@ -37,8 +37,8 @@ int policies_parse_from_options(const or_options_t *options);
addr_policy_t *addr_policy_get_canonical_entry(addr_policy_t *ent);
int cmp_addr_policies(smartlist_t *a, smartlist_t *b);
-addr_policy_result_t compare_tor_addr_to_addr_policy(const tor_addr_t *addr,
- uint16_t port, const smartlist_t *policy);
+MOCK_DECL(addr_policy_result_t, compare_tor_addr_to_addr_policy,
+ (const tor_addr_t *addr, uint16_t port, const smartlist_t *policy));
addr_policy_result_t compare_tor_addr_to_node_policy(const tor_addr_t *addr,
uint16_t port, const node_t *node);