]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Moved stubs for calls in main.cc to a specific stub-file.
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 16 Aug 2010 14:47:39 +0000 (16:47 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 16 Aug 2010 14:47:39 +0000 (16:47 +0200)
src/Makefile.am
src/tests/stub_main_cc.cc [new file with mode: 0644]
src/tests/testCacheManager.cc
src/tests/testEvent.cc
src/tests/testEventLoop.cc
src/tests/testHttpRequest.cc
src/tests/testURL.cc
src/tests/test_http_range.cc

index 36bba933f4924df96d14b629fc0005209d4f51e8..5f80e0ff96f8642d60b3db0125940e5087556136 100644 (file)
@@ -1114,6 +1114,7 @@ tests_testCacheManager_SOURCES = \
        tests/testCacheManager.cc \
        tests/testCacheManager.h \
        tests/testMain.cc \
+       tests/stub_main_cc.cc \
        time.cc \
        BodyPipe.cc \
        cache_manager.cc \
@@ -1298,6 +1299,7 @@ tests_testEvent_SOURCES = \
        tests/testEvent.cc \
        tests/testEvent.h \
        tests/testMain.cc \
+       tests/stub_main_cc.cc \
        time.cc \
        BodyPipe.cc \
        cache_manager.cc \
@@ -1453,6 +1455,7 @@ tests_testEventLoop_SOURCES = \
        tests/testEventLoop.cc \
        tests/testEventLoop.h \
        tests/testMain.cc \
+       tests/stub_main_cc.cc \
        time.cc \
        BodyPipe.cc \
        cache_manager.cc \
@@ -1615,6 +1618,7 @@ tests_test_http_range_SOURCES = \
        $(squid_COMMSOURCES) \
        ConfigOption.cc \
        ConfigParser.cc \
+       tests/stub_main_cc.cc \
        debug.cc \
        $(DELAY_POOL_SOURCE) \
        disk.cc \
@@ -1757,6 +1761,7 @@ tests_testHttpRequest_SOURCES = \
        tests/testHttpRequestMethod.h \
        tests/testHttpRequestMethod.cc \
        tests/testMain.cc \
+       tests/stub_main_cc.cc \
        time.cc \
        BodyPipe.cc \
        cache_manager.cc \
@@ -2132,6 +2137,7 @@ tests_testURL_SOURCES = \
        tests/testURLScheme.cc \
        tests/testURLScheme.h \
        tests/testMain.cc \
+       tests/stub_main_cc.cc \
        time.cc \
        BodyPipe.cc \
        cache_manager.cc \
diff --git a/src/tests/stub_main_cc.cc b/src/tests/stub_main_cc.cc
new file mode 100644 (file)
index 0000000..24f4fad
--- /dev/null
@@ -0,0 +1,47 @@
+/*
+ * $Id$
+ *
+ * AUTHOR: Francesco Chemolli
+ *
+ * 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.
+ * 
+ * Stubs for calls to stuff defined in main.cc
+ *
+ */
+
+void
+shut_down(int)
+{ /* stub */ }
+
+void
+reconfigure(int)
+{ /* stub */ }
+
+void
+rotate_logs(int)
+{ /* stub */ }
+
index 035e587daad0089b0b9c45a8ca14d42af0469a17..39d9d806a1c457bcb376aebdb53648a1a01beed2 100644 (file)
 
 CPPUNIT_TEST_SUITE_REGISTRATION( testCacheManager );
 
-/* stub functions to link successfully */
-void
-shut_down(int)
-{}
-
-void
-reconfigure(int)
-{}
-
-/* end stubs */
-
 /* init memory pools */
 
 void testCacheManager::setUp()
index e0b54bbe5209470347b523276e7b844698044ee5..57fb0a3df4bfa7168003bea27f027c00173fca6c 100644 (file)
 
 CPPUNIT_TEST_SUITE_REGISTRATION( testEvent );
 
-/* stub functions to link successfully */
-void
-shut_down(int)
-{}
-
-void
-reconfigure(int)
-{}
-
-/* end stubs */
-
 /* init legacy static-initialized modules */
 
 void
index b490ad8e1d76c69559b9d8fa10f7c38d487a347f..03412038d26aedde2b469c1c985c57f73534756c 100644 (file)
 
 CPPUNIT_TEST_SUITE_REGISTRATION( testEventLoop );
 
-/* stub functions to link successfully */
-void
-shut_down(int)
-{}
-
-void
-reconfigure(int)
-{}
-
-/* end stubs */
-
 /* init legacy static-initialized modules */
 
 void
index ae1e8bc873ddcd066929888364ceb49edcf86be2..841b1cf225ce4a6642d112943e2c94dd75b3e7d6 100644 (file)
@@ -17,17 +17,6 @@ public:
     bool doSanityCheckStartLine(MemBuf *b, const size_t h, http_status *e) { return sanityCheckStartLine(b,h,e); };
 };
 
-/* stub functions to link successfully */
-void
-shut_down(int)
-{}
-
-void
-reconfigure(int)
-{}
-
-/* end stubs */
-
 /* init memory pools */
 
 void
index 371eda69d4a231af6149943feaaac55e60c70cf2..aba0f174c4897deb13ef1b2499929f15c2d1d6e2 100644 (file)
 
 CPPUNIT_TEST_SUITE_REGISTRATION( testURL );
 
-/* stub functions to link successfully */
-void
-shut_down(int)
-{}
-
-void
-reconfigure(int)
-{}
-
-/* end stubs */
-
 /* init memory pools */
 
 void
index e106f8fe3aaa4c94ce7add9ec793b5ef524b423f..02212f2312722c44926dadaa2a4d47088a042cad 100644 (file)
 #include "acl/Checklist.h"
 #endif
 
-/* Stub routines */
-void
-shut_down(int)
-{}
-
-void
-reconfigure(int)
-{}
-
 SQUIDCEXTERN void httpHeaderPutStr(HttpHeader * hdr, http_hdr_type type, const char *str)
 {
     fatal ("dummy function\n");