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

index de23d888a69842c2487c4cc25408b0aa3c7b97f1..63a7dbfc950b4fb91fb0de877a538688fb746b54 100644 (file)
@@ -1569,7 +1569,7 @@ tests_testCacheManager_SOURCES = \
        urn.h \
        urn.cc \
        wccp2.h \
-       wccp2.cc \
+       tests/stub_wccp2.cc \
        whois.h \
        tests/stub_whois.cc \
        FadingCounter.cc \
@@ -2002,7 +2002,7 @@ tests_testEvent_SOURCES = \
        urn.h \
        urn.cc \
        wccp2.h \
-       wccp2.cc \
+       tests/stub_wccp2.cc \
        whois.h \
        tests/stub_whois.cc \
        $(WIN32_SOURCE) \
@@ -2251,7 +2251,7 @@ tests_testEventLoop_SOURCES = \
        urn.h \
        urn.cc \
        wccp2.h \
-       wccp2.cc \
+       tests/stub_wccp2.cc \
        whois.h \
        tests/stub_whois.cc \
        $(WIN32_SOURCE) \
@@ -2492,7 +2492,7 @@ tests_test_http_range_SOURCES = \
        urn.h \
        urn.cc \
        wccp2.h \
-       wccp2.cc \
+       tests/stub_wccp2.cc \
        whois.h \
        tests/stub_whois.cc \
        $(WIN32_SOURCE) \
@@ -2774,7 +2774,7 @@ tests_testHttpRequest_SOURCES = \
        urn.h \
        urn.cc \
        wccp2.h \
-       wccp2.cc \
+       tests/stub_wccp2.cc \
        whois.h \
        tests/stub_whois.cc \
        FadingCounter.cc \
@@ -3600,7 +3600,7 @@ tests_testURL_SOURCES = \
        urn.h \
        urn.cc \
        wccp2.h \
-       wccp2.cc \
+       tests/stub_wccp2.cc \
        whois.h \
        tests/stub_whois.cc \
        FadingCounter.cc \
index 148a740366517b619b87aa757dfa22f6e2b3f405..e286c41d9abfe110182bc4e35e4dcc90a8b4bd7f 100644 (file)
@@ -60,5 +60,6 @@ STUB_SOURCE= tests/STUB.h \
        tests/stub_store_swapout.cc \
        tests/stub_time.cc \
        tests/stub_tools.cc \
+       tests/stub_wccp2.cc \
        tests/stub_whois.cc \
        tests/stub_wordlist.cc 
diff --git a/src/tests/stub_wccp2.cc b/src/tests/stub_wccp2.cc
new file mode 100644 (file)
index 0000000..79e672f
--- /dev/null
@@ -0,0 +1,27 @@
+#include "squid.h"
+
+#define STUB_API "wccp2.cc"
+#include "tests/STUB.h"
+
+#if USE_WCCPv2
+class StoreEntry;
+
+void wccp2_add_service_list(int, int, int, int, int, int[], int, char *) STUB
+void wccp2Init(void) STUB
+void wccp2ConnectionOpen(void) STUB
+void wccp2ConnectionClose(void) STUB
+void dump_wccp2_method(StoreEntry *, const char *, int) STUB
+void free_wccp2_method(int *) STUB
+void parse_wccp2_amethod(int *) STUB
+void dump_wccp2_amethod(StoreEntry *, const char *, int) STUB
+void parse_wccp2_service(void *) STUB
+void dump_wccp2_service(StoreEntry *, const char *, void *) STUB
+void free_wccp2_service(void *) STUB
+int check_null_wccp2_service(void *) STUB_RETVAL(0)
+void parse_wccp2_service_info(void *) STUB
+void dump_wccp2_service_info(StoreEntry *, const char *, void *) STUB
+void free_wccp2_service_info(void *) STUB
+void free_wccp2_amethod(int *) STUB
+void parse_wccp2_method(int *) STUB
+
+#endif /* USE_WCCPv2 */