aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat_libevent.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-01-09 12:47:24 -0500
committerNick Mathewson <nickm@torproject.org>2014-02-12 12:48:11 -0500
commit52d222aafbc21d674624fdd4c8fc834a40af69c7 (patch)
treefc1664f9cfb3797ce7041635372fea08780b9ec3 /src/common/compat_libevent.h
parentd379fc6e0ffce916753e5ef1ac0783703d150fa5 (diff)
downloadtor-52d222aafbc21d674624fdd4c8fc834a40af69c7.tar
tor-52d222aafbc21d674624fdd4c8fc834a40af69c7.tar.gz
Add tests for buffer time tracking.
Diffstat (limited to 'src/common/compat_libevent.h')
-rw-r--r--src/common/compat_libevent.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/compat_libevent.h b/src/common/compat_libevent.h
index fda873359..17e052378 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