aboutsummaryrefslogtreecommitdiff
path: root/src/or/nodelist.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/nodelist.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/nodelist.h')
-rw-r--r--src/or/nodelist.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/nodelist.h b/src/or/nodelist.h
index 8e719e012d..cb54cecf1d 100644
--- a/src/or/nodelist.h
+++ b/src/or/nodelist.h
@@ -31,7 +31,8 @@ smartlist_t *nodelist_find_nodes_with_microdesc(const microdesc_t *md);
void nodelist_free_all(void);
void nodelist_assert_ok(void);
-const node_t *node_get_by_nickname(const char *nickname, int warn_if_unnamed);
+MOCK_DECL(const node_t *, node_get_by_nickname,
+ (const char *nickname, int warn_if_unnamed));
void node_get_verbose_nickname(const node_t *node,
char *verbose_name_out);
void node_get_verbose_nickname_by_id(const char *id_digest,
@@ -60,7 +61,7 @@ void node_get_pref_orport(const node_t *node, tor_addr_port_t *ap_out);
void node_get_pref_ipv6_orport(const node_t *node, tor_addr_port_t *ap_out);
int node_has_curve25519_onion_key(const node_t *node);
-smartlist_t *nodelist_get_list(void);
+MOCK_DECL(smartlist_t *, nodelist_get_list, (void));
/* Temporary during transition to multiple addresses. */
void node_get_addr(const node_t *node, tor_addr_t *addr_out);