]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Moved to STUB API stubs for DelayId.cc, HelperChildconfig.cc, debug.cc
authorFrancesco Chemolli <kinkie@squid-cache.org>
Wed, 8 Aug 2012 07:35:10 +0000 (09:35 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Wed, 8 Aug 2012 07:35:10 +0000 (09:35 +0200)
src/tests/stub_DelayId.cc
src/tests/stub_HelperChildConfig.cc
src/tests/stub_debug.cc

index 2828531bdf2817007292d693f7be7b87b8913c83..3fb5ac0922d08955fb36302a1750d4fe5a5c255f 100644 (file)
 #include "squid-old.h"
 #include "DelayId.h"
 
-DelayId::DelayId() {}
-
-void
-DelayId::delayRead(DeferredRead const&)
-{}
+#define STUB_API "stub_DelayId.cc"
+#include "tests/STUB.h"
 
+DelayId::DelayId() {}
 DelayId::~DelayId() {}
 
+void DelayId::delayRead(DeferredRead const&) STUB_NOP
+
 #endif /* USE_DELAY_POOLS */
index 0fede5afad09afc52108bf5c4ec47ad787e3c3ca..55e4be97bde9780dc2152ed77ab80a568f232a4d 100644 (file)
@@ -2,6 +2,9 @@
 #include "HelperChildConfig.h"
 #include "globals.h"
 
+#define STUB_API "stub_HelperChildconfig.cc"
+#include "tests/STUB.h"
+
 #include <string.h>
 
 HelperChildConfig::HelperChildConfig(const unsigned int m):
@@ -26,9 +29,4 @@ HelperChildConfig::needNew() const
     return (n_max - n_active);
 }
 
-void
-HelperChildConfig::parseConfig()
-{
-    fprintf(stderr, "HelperChildConfig::parseConfig not implemented.");
-    exit(1);
-}
+void HelperChildConfig::parseConfig() STUB
index 1c2edff675cc26e506dd4d2555001d38c6a90a0e..50e73fe225cb258d0375b276c79c35b404adb3a2 100644 (file)
@@ -1,6 +1,9 @@
 /*
  * A stub implementation of the Debug.h API.
  * For use by test binaries which do not need the full context debugging
+ *
+ * Note: it doesn't use the STUB API as the functions defined here must
+ * not abort the unit test.
  */
 #include "squid.h"
 #include "Debug.h"