diff options
author | teor (Tim Wilson-Brown) <teor2345@gmail.com> | 2015-12-17 11:40:49 +1100 |
---|---|---|
committer | teor (Tim Wilson-Brown) <teor2345@gmail.com> | 2015-12-17 11:40:49 +1100 |
commit | 1b704979488fad24bc439b52e7392e6936955577 (patch) | |
tree | ad6a134eafdfa36752079502fa6750fb25a45afe /src/or/router.h | |
parent | e7e61ec7ec32b4aa874a38991358812438405d96 (diff) | |
download | tor-1b704979488fad24bc439b52e7392e6936955577.tar.gz tor-1b704979488fad24bc439b52e7392e6936955577.zip |
Prop210: Fix directory fetch tests
Check that directory fetches behave as expected under Prop 210.
Diffstat (limited to 'src/or/router.h')
-rw-r--r-- | src/or/router.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/router.h b/src/or/router.h index 85f43d804d..a4b3e9616c 100644 --- a/src/or/router.h +++ b/src/or/router.h @@ -67,7 +67,7 @@ uint16_t router_get_advertised_dir_port(const or_options_t *options, MOCK_DECL(int, server_mode, (const or_options_t *options)); MOCK_DECL(int, public_server_mode, (const or_options_t *options)); -int advertised_server_mode(void); +MOCK_DECL(int, advertised_server_mode, (void)); int proxy_mode(const or_options_t *options); void consider_publishable_server(int force); int should_refuse_unknown_exits(const or_options_t *options); @@ -89,7 +89,8 @@ int router_digest_is_me(const char *digest); const uint8_t *router_get_my_id_digest(void); int router_extrainfo_digest_is_me(const char *digest); int router_is_me(const routerinfo_t *router); -int router_pick_published_address(const or_options_t *options, uint32_t *addr); +MOCK_DECL(int,router_pick_published_address,(const or_options_t *options, + uint32_t *addr)); int router_build_fresh_descriptor(routerinfo_t **r, extrainfo_t **e); int router_rebuild_descriptor(int force); char *router_dump_router_to_string(routerinfo_t *router, |