From 1aeaba4906d9f0d8901f3ef928f2cbcd049f1140 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Wed, 10 Aug 2016 16:40:06 -0400 Subject: test: Add prop224 directory cache unit tests Signed-off-by: David Goulet Signed-off-by: George Kadianakis --- src/or/hs_cache.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/or/hs_cache.c') diff --git a/src/or/hs_cache.c b/src/or/hs_cache.c index c2e2914e5a..40730bd435 100644 --- a/src/or/hs_cache.c +++ b/src/or/hs_cache.c @@ -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: * global_cutoff value. If global_cutoff 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; -- cgit v1.2.3-54-g00ecf