aboutsummaryrefslogtreecommitdiff
path: root/src/test/test.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-04-10 11:23:14 -0400
committerNick Mathewson <nickm@torproject.org>2018-04-13 10:41:14 -0400
commitc376200f6a77b2509928bc08d2aa1245028cec30 (patch)
tree3e086444e595718c59edffeaeb13e439422a8bc8 /src/test/test.c
parentd8ef9a2d1e0701073d8209115bc3c34857c2d7b4 (diff)
downloadtor-c376200f6a77b2509928bc08d2aa1245028cec30.tar.gz
tor-c376200f6a77b2509928bc08d2aa1245028cec30.zip
Add a new token-bucket backend abstraction, with tests
This differs from our previous token bucket abstraction in a few ways: 1) It is an abstraction, and not a collection of fields. 2) It is meant to be used with monotonic timestamps, which should produce better results than calling gettimeofday over and over.
Diffstat (limited to 'src/test/test.c')
-rw-r--r--src/test/test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test.c b/src/test/test.c
index 4f2fbc693a..7df385bc36 100644
--- a/src/test/test.c
+++ b/src/test/test.c
@@ -812,6 +812,7 @@ struct testgroup_t testgroups[] = {
{ "address/", address_tests },
{ "address_set/", address_set_tests },
{ "buffer/", buffer_tests },
+ { "bwmgt/", bwmgt_tests },
{ "cellfmt/", cell_format_tests },
{ "cellqueue/", cell_queue_tests },
{ "channel/", channel_tests },