diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-07-21 10:25:23 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-07-21 10:25:23 +0200 |
commit | 2999f0b33fec8e91ba8e4680d3f9d03b09fe9501 (patch) | |
tree | e6da0915cfe1bc4ad5dff011549d930a942d5de0 /src/common/compat_time.h | |
parent | a31078a581c35310cd642b16ce57efd5b888f6dc (diff) | |
download | tor-2999f0b33fec8e91ba8e4680d3f9d03b09fe9501.tar.gz tor-2999f0b33fec8e91ba8e4680d3f9d03b09fe9501.zip |
Make the monotonic{_coarse,}_get() functions mockable.
Diffstat (limited to 'src/common/compat_time.h')
-rw-r--r-- | src/common/compat_time.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 <b>out</b> to the current time. */ -void monotime_get(monotime_t *out); +MOCK_DECL(void, monotime_get, (monotime_t *out)); /** * Return the number of nanoseconds between <b>start</b> and <b>end</b>. */ @@ -102,7 +102,7 @@ uint64_t monotime_absolute_msec(void); /** * Set <b>out</b> 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); |