aboutsummaryrefslogtreecommitdiff
path: root/src/or/policies.c
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.c
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.c')
-rw-r--r--src/or/policies.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/policies.c b/src/or/policies.c
index 6a9e73bdd5..4dbb43eb76 100644
--- a/src/or/policies.c
+++ b/src/or/policies.c
@@ -769,9 +769,9 @@ compare_unknown_tor_addr_to_addr_policy(uint16_t port,
* We could do better by assuming that some ranges never match typical
* addresses (127.0.0.1, and so on). But we'll try this for now.
*/
-addr_policy_result_t
-compare_tor_addr_to_addr_policy(const tor_addr_t *addr, uint16_t port,
- const smartlist_t *policy)
+MOCK_IMPL(addr_policy_result_t,
+compare_tor_addr_to_addr_policy,(const tor_addr_t *addr, uint16_t port,
+ const smartlist_t *policy))
{
if (!policy) {
/* no policy? accept all. */