diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-12-03 13:22:23 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-12-03 13:22:23 -0500 |
commit | 92af8e511394685f7a39224ec1f73ce79fcf2c42 (patch) | |
tree | d593804f2f558a9d01c8c6e687b6c0a7162b4b10 /src/test/test.h | |
parent | 417a324a8577b0c61185c9d06eb72fbc483d984b (diff) | |
download | tor-92af8e511394685f7a39224ec1f73ce79fcf2c42.tar.gz tor-92af8e511394685f7a39224ec1f73ce79fcf2c42.zip |
Add a framework for testing set_routerstatus_from_routerinfo().
Additionally, use it to test that is_staledesc is set correctly.
Eventually we'll want to test all the other flags, but I'm aiming
for only adding coverage on the changed code here.
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 092356f0fb..1d8f79717f 100644 --- a/src/test/test.h +++ b/src/test/test.h @@ -265,6 +265,7 @@ extern struct testcase_t tortls_tests[]; extern struct testcase_t util_format_tests[]; extern struct testcase_t util_process_tests[]; extern struct testcase_t util_tests[]; +extern struct testcase_t voting_flags_tests[]; extern struct testcase_t voting_schedule_tests[]; extern struct testcase_t x509_tests[]; |