mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
test: Add prop224 directory cache unit tests
Signed-off-by: David Goulet <dgoulet@torproject.org> Signed-off-by: George Kadianakis <desnacked@riseup.net>
This commit is contained in:
+4
-1
@@ -6,6 +6,9 @@
|
||||
* \brief Handle hidden service descriptor caches.
|
||||
**/
|
||||
|
||||
/* For unit tests.*/
|
||||
#define HS_CACHE_PRIVATE
|
||||
|
||||
#include "hs_cache.h"
|
||||
|
||||
#include "or.h"
|
||||
@@ -178,7 +181,7 @@ err:
|
||||
* <b>global_cutoff</b> value. If <b>global_cutoff</b> is 0, the cleaning
|
||||
* process will use the lifetime found in the plaintext data section. Return
|
||||
* the number of bytes cleaned. */
|
||||
static size_t
|
||||
STATIC size_t
|
||||
cache_clean_v3_as_dir(time_t now, time_t global_cutoff)
|
||||
{
|
||||
size_t bytes_removed = 0;
|
||||
|
||||
Reference in New Issue
Block a user