]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
stub-ified SwapDir.cc
authorFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 5 Nov 2013 19:57:10 +0000 (20:57 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 5 Nov 2013 19:57:10 +0000 (20:57 +0100)
src/Makefile.am
src/tests/Stub.list
src/tests/stub_SwapDir.cc [new file with mode: 0644]

index 63a7dbfc950b4fb91fb0de877a538688fb746b54..ede9efe7a10bfbb5bcdc37e92eab8d2bc80d0b0a 100644 (file)
@@ -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 \
index e286c41d9abfe110182bc4e35e4dcc90a8b4bd7f..21b8966feed53cbbecb9f9474f8235fa0efc9a5f 100644 (file)
@@ -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 (file)
index 0000000..a3f86df
--- /dev/null
@@ -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
+