]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
stub-ify whois.cc
authorFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 5 Nov 2013 14:22:49 +0000 (15:22 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 5 Nov 2013 14:22:49 +0000 (15:22 +0100)
src/Makefile.am
src/tests/Stub.list
src/tests/stub_whois.cc [new file with mode: 0644]

index d7c09b76d6d4098e9b74097ba9410621dc6640a9..c9fb0eb00be4e896f2ee80f1f1b1d3eada5ba449 100644 (file)
@@ -1571,7 +1571,7 @@ tests_testCacheManager_SOURCES = \
        wccp2.h \
        wccp2.cc \
        whois.h \
-       whois.cc \
+       tests/stub_whois.cc \
        FadingCounter.cc \
        $(WIN32_SOURCE) \
        wordlist.h \
@@ -2004,7 +2004,7 @@ tests_testEvent_SOURCES = \
        wccp2.h \
        wccp2.cc \
        whois.h \
-       whois.cc \
+       tests/stub_whois.cc \
        $(WIN32_SOURCE) \
        wordlist.h \
        wordlist.cc
@@ -2253,7 +2253,7 @@ tests_testEventLoop_SOURCES = \
        wccp2.h \
        wccp2.cc \
        whois.h \
-       whois.cc \
+       tests/stub_whois.cc \
        $(WIN32_SOURCE) \
        wordlist.h \
        wordlist.cc
@@ -2494,7 +2494,7 @@ tests_test_http_range_SOURCES = \
        wccp2.h \
        wccp2.cc \
        whois.h \
-       whois.cc \
+       tests/stub_whois.cc \
        $(WIN32_SOURCE) \
        wordlist.h \
        wordlist.cc
@@ -2776,7 +2776,7 @@ tests_testHttpRequest_SOURCES = \
        wccp2.h \
        wccp2.cc \
        whois.h \
-       whois.cc \
+       tests/stub_whois.cc \
        FadingCounter.cc \
        $(WIN32_SOURCE) \
        wordlist.h \
@@ -3602,7 +3602,7 @@ tests_testURL_SOURCES = \
        wccp2.h \
        wccp2.cc \
        whois.h \
-       whois.cc \
+       tests/stub_whois.cc \
        FadingCounter.cc \
        $(WIN32_SOURCE) \
        wordlist.h \
index 0149ef845c6799d41a3d4196e7fa1fde0d6a5fbf..148a740366517b619b87aa757dfa22f6e2b3f405 100644 (file)
@@ -60,4 +60,5 @@ STUB_SOURCE= tests/STUB.h \
        tests/stub_store_swapout.cc \
        tests/stub_time.cc \
        tests/stub_tools.cc \
+       tests/stub_whois.cc \
        tests/stub_wordlist.cc 
diff --git a/src/tests/stub_whois.cc b/src/tests/stub_whois.cc
new file mode 100644 (file)
index 0000000..b7414de
--- /dev/null
@@ -0,0 +1,9 @@
+#include "squid.h"
+
+#define STUB_API "whois.cc"
+#include "tests/STUB.h"
+
+class FwdState;
+
+void whoisStart(FwdState *) STUB
+