From: Francesco Chemolli Date: Tue, 5 Nov 2013 19:57:10 +0000 (+0100) Subject: stub-ified SwapDir.cc X-Git-Tag: SQUID_3_5_0_1~534^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=003a3ee0d59d565bf84e0d1eeb5038521ccf7b7c;p=thirdparty%2Fsquid.git stub-ified SwapDir.cc --- diff --git a/src/Makefile.am b/src/Makefile.am index 63a7dbfc95..ede9efe7a1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1275,7 +1275,7 @@ tests_testACLMaxUserIP_SOURCES= \ store_key_md5.cc \ swap_log_op.cc \ swap_log_op.h \ - SwapDir.cc \ + tests/stub_SwapDir.cc \ SwapDir.h \ log/access_log.h \ tests/stub_access_log.cc \ @@ -1561,7 +1561,7 @@ tests_testCacheManager_SOURCES = \ tools.h \ tools.cc \ tunnel.cc \ - SwapDir.cc \ + tests/stub_SwapDir.cc \ MemStore.cc \ $(UNLINKDSOURCE) \ url.cc \ @@ -1707,7 +1707,7 @@ tests_testDiskIO_SOURCES = \ String.cc \ StrList.h \ StrList.cc \ - SwapDir.cc \ + tests/stub_SwapDir.cc \ log/access_log.h \ tests/stub_access_log.cc \ tests/stub_acl.cc \ @@ -1980,7 +1980,7 @@ tests_testEvent_SOURCES = \ StoreMetaVary.cc \ StoreSwapLogData.cc \ String.cc \ - SwapDir.cc \ + tests/stub_SwapDir.cc \ tests/CapturingStoreEntry.h \ tests/testEvent.cc \ tests/testEvent.h \ @@ -2230,7 +2230,7 @@ tests_testEventLoop_SOURCES = \ String.cc \ StrList.h \ StrList.cc \ - SwapDir.cc \ + tests/stub_SwapDir.cc \ tests/testEventLoop.cc \ tests/testEventLoop.h \ tests/testMain.cc \ @@ -2474,7 +2474,7 @@ tests_test_http_range_SOURCES = \ String.cc \ StrList.h \ StrList.cc \ - SwapDir.cc \ + tests/stub_SwapDir.cc \ tests/test_http_range.cc \ tests/stub_external_acl.cc \ tests/stub_ipc_Forwarder.cc \ @@ -2767,7 +2767,7 @@ tests_testHttpRequest_SOURCES = \ tools.h \ tools.cc \ tunnel.cc \ - SwapDir.cc \ + tests/stub_SwapDir.cc \ MemStore.cc \ url.cc \ URLScheme.cc \ diff --git a/src/tests/Stub.list b/src/tests/Stub.list index e286c41d9a..21b8966fee 100644 --- a/src/tests/Stub.list +++ b/src/tests/Stub.list @@ -51,6 +51,7 @@ STUB_SOURCE= tests/STUB.h \ tests/stub_pconn.cc \ tests/stub_redirect.cc \ tests/stub_stat.cc \ + tests/stub_SwapDir.cc \ tests/stub_stmem.cc \ tests/stub_store.cc \ tests/stub_store_client.cc \ diff --git a/src/tests/stub_SwapDir.cc b/src/tests/stub_SwapDir.cc new file mode 100644 index 0000000000..a3f86dfbf4 --- /dev/null +++ b/src/tests/stub_SwapDir.cc @@ -0,0 +1,43 @@ +#include "squid.h" +#include "SwapDir.h" + +#define STUB_API "SwapDir.cc" +#include "tests/STUB.h" + +SwapDir::SwapDir(char const *) STUB +SwapDir::~SwapDir() STUB +void SwapDir::create() STUB +void SwapDir::dump(StoreEntry &) const STUB +bool SwapDir::doubleCheck(StoreEntry &) STUB_RETVAL(false) +void SwapDir::unlink(StoreEntry &) STUB +void SwapDir::getStats(StoreInfoStats &) const STUB +void SwapDir::stat(StoreEntry &) const STUB +void SwapDir::statfs(StoreEntry &)const STUB +void SwapDir::maintain() STUB +uint64_t SwapDir::minSize() const STUB_RETVAL(0) +int64_t SwapDir::maxObjectSize() const STUB_RETVAL(0) +void SwapDir::maxObjectSize(int64_t) STUB +void SwapDir::reference(StoreEntry &) STUB +bool SwapDir::dereference(StoreEntry &, bool) STUB_RETVAL(false) +int SwapDir::callback() STUB_RETVAL(0) +bool SwapDir::canStore(const StoreEntry &, int64_t, int &) const STUB_RETVAL(false) +bool SwapDir::canLog(StoreEntry const &)const STUB_RETVAL(false) +void SwapDir::sync() STUB +void SwapDir::openLog() STUB +void SwapDir::closeLog() STUB +int SwapDir::writeCleanStart() STUB_RETVAL(0) +void SwapDir::writeCleanDone() STUB +void SwapDir::logEntry(const StoreEntry &, int) const STUB +char const * SwapDir::type() const STUB_RETVAL("stub") +bool SwapDir::active() const STUB_RETVAL(false) +bool SwapDir::needsDiskStrand() const STUB_RETVAL(false) +ConfigOption * SwapDir::getOptionTree() const STUB_RETVAL(NULL) +void SwapDir::parseOptions(int) STUB +void SwapDir::dumpOptions(StoreEntry *) const STUB +bool SwapDir::optionReadOnlyParse(char const *, const char *, int) STUB_RETVAL(false) +void SwapDir::optionReadOnlyDump(StoreEntry *) const STUB +bool SwapDir::optionObjectSizeParse(char const *, const char *, int) STUB_RETVAL(false) +void SwapDir::optionObjectSizeDump(StoreEntry *) const STUB +StoreEntry * SwapDir::get(const cache_key *) STUB_RETVAL(NULL) +void SwapDir::get(String const, STOREGETCLIENT , void *) STUB +