summaryrefslogtreecommitdiff
path: root/src/common/compat_time.h
diff options
context:
space:
mode:
authorNeel Chauhan <neel@neelc.org>2018-04-16 20:18:40 -0400
committerNeel Chauhan <neel@neelc.org>2018-04-16 20:37:50 -0400
commitce84de39efc09142d36d5b94963b1aeb2c0a1ae9 (patch)
tree396dc15c68a666ab25c69e18133bcc1ad18db973 /src/common/compat_time.h
parente72742d693827a747ad405eb81422d6ee9fd691b (diff)
downloadtor-ce84de39efc09142d36d5b94963b1aeb2c0a1ae9.tar.gz
tor-ce84de39efc09142d36d5b94963b1aeb2c0a1ae9.zip
Make tor_gettimeofday() mockable
Diffstat (limited to 'src/common/compat_time.h')
-rw-r--r--src/common/compat_time.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat_time.h b/src/common/compat_time.h
index 75b57f6f24..09dd6add3d 100644
--- a/src/common/compat_time.h
+++ b/src/common/compat_time.h
@@ -173,7 +173,7 @@ void monotime_coarse_add_msec(monotime_coarse_t *out,
#define monotime_coarse_add_msec monotime_add_msec
#endif /* defined(MONOTIME_COARSE_TYPE_IS_DIFFERENT) */
-void tor_gettimeofday(struct timeval *timeval);
+MOCK_DECL(void, tor_gettimeofday, (struct timeval *timeval));
#ifdef TOR_UNIT_TESTS
void tor_sleep_msec(int msec);