From 39be8af7092a4ee004f4c53fa1e55678d9d67f1f Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 3 May 2016 11:42:50 -0400 Subject: prop250: Add unit tests Signed-off-by: David Goulet Signed-off-by: George Kadianakis --- src/or/networkstatus.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or/networkstatus.h') diff --git a/src/or/networkstatus.h b/src/or/networkstatus.h index aee6641c6e..b34696e5ae 100644 --- a/src/or/networkstatus.h +++ b/src/or/networkstatus.h @@ -64,10 +64,10 @@ void update_certificate_downloads(time_t now); int consensus_is_waiting_for_certs(void); int client_would_use_router(const routerstatus_t *rs, time_t now, const or_options_t *options); -networkstatus_t *networkstatus_get_latest_consensus(void); +MOCK_DECL(networkstatus_t *,networkstatus_get_latest_consensus,(void)); MOCK_DECL(networkstatus_t *,networkstatus_get_latest_consensus_by_flavor, (consensus_flavor_t f)); -networkstatus_t *networkstatus_get_live_consensus(time_t now); +MOCK_DECL(networkstatus_t *, networkstatus_get_live_consensus,(time_t now)); networkstatus_t *networkstatus_get_reasonably_live_consensus(time_t now, int flavor); MOCK_DECL(int, networkstatus_consensus_is_bootstrapping,(time_t now)); -- cgit v1.2.3-54-g00ecf