aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-05-04 17:07:07 +0000
committerMike Buland <eichlan@xagasoft.com>2010-05-04 17:07:07 +0000
commit51c5bfa4881b5def142092e10dd402fd40e2e712 (patch)
tree787ee6a56c14a51e92d8097bce87534ebbae4ec1 /src/tests
parent49af4dce0fdc569b623140ca5a711988281835d5 (diff)
downloadlibbu++-51c5bfa4881b5def142092e10dd402fd40e2e712.tar.gz
libbu++-51c5bfa4881b5def142092e10dd402fd40e2e712.tar.bz2
libbu++-51c5bfa4881b5def142092e10dd402fd40e2e712.tar.xz
libbu++-51c5bfa4881b5def142092e10dd402fd40e2e712.zip
Cache fixes?
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/cache.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tests/cache.cpp b/src/tests/cache.cpp
index 3470ecb..7fe660a 100644
--- a/src/tests/cache.cpp
+++ b/src/tests/cache.cpp
@@ -160,6 +160,15 @@ public:
160 delete pObj; 160 delete pObj;
161 } 161 }
162 162
163 virtual void destroy( const long &key )
164 {
165 TRACE( pObj, key );
166 Bu::FString sDest;
167 sDest.format("bobcache/%d", key );
168 if( !access( sDest.getStr(), F_OK ) )
169 unlink( sDest.getStr() );
170 }
171
163private: 172private:
164 long cLastId; 173 long cLastId;
165}; 174};
@@ -187,6 +196,10 @@ public:
187 { 196 {
188 } 197 }
189 198
199 virtual void onDestroy( const long & )
200 {
201 }
202
190 virtual bool shouldSync( Bob *, const long &, time_t ) 203 virtual bool shouldSync( Bob *, const long &, time_t )
191 { 204 {
192 return false; 205 return false;