diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-01-09 12:47:24 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-02-12 12:48:11 -0500 |
commit | 52d222aafbc21d674624fdd4c8fc834a40af69c7 (patch) | |
tree | fc1664f9cfb3797ce7041635372fea08780b9ec3 /src/common/compat_libevent.h | |
parent | d379fc6e0ffce916753e5ef1ac0783703d150fa5 (diff) | |
download | tor-52d222aafbc21d674624fdd4c8fc834a40af69c7.tar.gz tor-52d222aafbc21d674624fdd4c8fc834a40af69c7.zip |
Add tests for buffer time tracking.
Diffstat (limited to 'src/common/compat_libevent.h')
-rw-r--r-- | src/common/compat_libevent.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/compat_libevent.h b/src/common/compat_libevent.h index fda8733592..17e0523789 100644 --- a/src/common/compat_libevent.h +++ b/src/common/compat_libevent.h @@ -91,6 +91,9 @@ int tor_add_bufferevent_to_rate_limit_group(struct bufferevent *bev, void tor_gettimeofday_cached(struct timeval *tv); void tor_gettimeofday_cache_clear(void); +#ifdef TOR_UNIT_TESTS +void tor_gettimeofday_cache_set(const struct timeval *tv); +#endif #endif |