]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/tests/stub_store_client.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / tests / stub_store_client.cc
index 12eb7de8501e5e0eb6d49b663d322505f917a8a2..0870ddd693abd922b01542cb9092575d4d89fd2d 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.
+ * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
  *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
  */
 
 #include "squid.h"
+#include "Store.h"
 #include "StoreClient.h"
 
-int
-storePendingNClients(const StoreEntry * e)
+#define STUB_API "store_client.cc"
+#include "tests/STUB.h"
+
+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)
-{
-    /* do nothing for tests - we don't need the log */
-}
-
-void
-storeLogOpen(void)
-{
-    fatal ("Not implemented");
-}
-
-void
-storeDigestInit(void)
+void StoreEntry::invokeHandlers()
 {
-    fatal ("Not implemented");
+    /* do nothing for tests */
 }
 
 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
+storeLog(int tag, const StoreEntry * e)
 {
-    fatal ("Not implemented");
+    /* do nothing for tests - we don't need the log */
 }
 
-int
-store_client::getType() const
-{
-    return type;
-}
+void storeLogOpen(void) STUB
+void storeDigestInit(void) STUB
+void storeRebuildStart(void) STUB
+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)