diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-04-10 11:23:14 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-04-13 10:41:14 -0400 |
commit | c376200f6a77b2509928bc08d2aa1245028cec30 (patch) | |
tree | 3e086444e595718c59edffeaeb13e439422a8bc8 /src/test/test.h | |
parent | d8ef9a2d1e0701073d8209115bc3c34857c2d7b4 (diff) | |
download | tor-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.h')
-rw-r--r-- | src/test/test.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test.h b/src/test/test.h index 02ec9bda89..95715da7a9 100644 --- a/src/test/test.h +++ b/src/test/test.h @@ -178,6 +178,7 @@ extern struct testcase_t accounting_tests[]; extern struct testcase_t addr_tests[]; extern struct testcase_t address_tests[]; extern struct testcase_t address_set_tests[]; +extern struct testcase_t bwmgt_tests[]; extern struct testcase_t buffer_tests[]; extern struct testcase_t cell_format_tests[]; extern struct testcase_t cell_queue_tests[]; |