]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/tests/stub_store_client.cc
Renamed squid.h to squid-old.h and config.h to squid.h
[thirdparty/squid.git] / src / tests / stub_store_client.cc
index 12eb7de8501e5e0eb6d49b663d322505f917a8a2..16e87d28c062074b1164e7e5d094d954b736ac9b 100644 (file)
-/*
- * $Id: stub_store_client.cc,v 1.1 2005/01/03 16:08:27 robertc Exp $
- *
- * DEBUG: section 84    Helper process maintenance
- * AUTHOR: Robert Collins
- *
- * SQUID Web Proxy Cache          http://www.squid-cache.org/
- * ----------------------------------------------------------
- *
- *  Squid is the result of efforts by numerous individuals from
- *  the Internet community; see the CONTRIBUTORS file for full
- *  details.   Many organizations have provided support for Squid's
- *  development; see the SPONSORS file for full details.  Squid is
- *  Copyrighted (C) 2001 by the Regents of the University of
- *  California; see the COPYRIGHT file for full details.  Squid
- *  incorporates software developed and/or copyrighted by other
- *  sources; see the CREDITS file for full details.
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *  
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *  
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
- *
- */
-
-#include "squid.h"
+#include "squid-old.h"
 #include "StoreClient.h"
+#include "Store.h"
+
+#define STUB_API "store_client.cc"
+#include "tests/STUB.h"
 
-int
-storePendingNClients(const StoreEntry * e)
+int storePendingNClients(const StoreEntry * e)
 {
     /* no clients in the tests so far */
     return 0;
 }
 
-/* Garh, too many stub files */
-
-void
-InvokeHandlers(StoreEntry * e)
-{}
-
-void
-storeLog(int tag, const StoreEntry * e)
+void StoreEntry::invokeHandlers()
 {
-    /* do nothing for tests - we don't need the log */
+    /* do nothing for tests */
 }
 
 void
-storeLogOpen(void)
-{
-    fatal ("Not implemented");
-}
-
-void
-storeDigestInit(void)
-{
-    fatal ("Not implemented");
-}
-
-void
-storeRebuildStart(void)
-{
-    fatal ("Not implemented");
-}
-
-#include "Store.h"
-const char *
-storeEntryFlags(const StoreEntry *)
-{
-    fatal ("Not implemented");
-    return NULL;
-}
-
-void
-storeReplSetup(void)
-{
-    fatal ("Not implemented");
-}
-
-bool
-store_client::memReaderHasLowerOffset(off_t anOffset) const
-{
-    fatal ("Not implemented");
-    return false;
-}
-
-void
-store_client::dumpStats(MemBuf * output, int clientNumber) const
-{
-    fatal ("Not implemented");
-}
-
-int
-store_client::getType() const
+storeLog(int tag, const StoreEntry * e)
 {
-    return type;
+    /* do nothing for tests - we don't need the log */
 }
 
+void storeLogOpen(void) STUB
+void storeDigestInit(void) STUB
+void storeRebuildStart(void) STUB
+const char *storeEntryFlags(const StoreEntry *) STUB_RETVAL(NULL)
+void storeReplSetup(void) STUB
+bool store_client::memReaderHasLowerOffset(int64_t anOffset) const STUB_RETVAL(false)
+void store_client::dumpStats(MemBuf * output, int clientNumber) const STUB
+int store_client::getType() const STUB_RETVAL(0)