From 2999f0b33fec8e91ba8e4680d3f9d03b09fe9501 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 21 Jul 2016 10:25:23 +0200 Subject: Make the monotonic{_coarse,}_get() functions mockable. --- src/common/compat_time.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/compat_time.h') diff --git a/src/common/compat_time.h b/src/common/compat_time.h index 8d61bc2580..206e5b6170 100644 --- a/src/common/compat_time.h +++ b/src/common/compat_time.h @@ -72,7 +72,7 @@ void monotime_init(void); /** * Set out to the current time. */ -void monotime_get(monotime_t *out); +MOCK_DECL(void, monotime_get, (monotime_t *out)); /** * Return the number of nanoseconds between start and end. */ @@ -102,7 +102,7 @@ uint64_t monotime_absolute_msec(void); /** * Set out to the current coarse time. */ -void monotime_coarse_get(monotime_coarse_t *out); +MOCK_DECL(void, monotime_coarse_get, (monotime_coarse_t *out)); uint64_t monotime_coarse_absolute_nsec(void); uint64_t monotime_coarse_absolute_usec(void); uint64_t monotime_coarse_absolute_msec(void); -- cgit v1.2.3-54-g00ecf