]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Stub-ified carp.cc
authorFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 5 Nov 2013 21:19:03 +0000 (22:19 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 5 Nov 2013 21:19:03 +0000 (22:19 +0100)
src/Makefile.am
src/tests/stub_carp.cc [new file with mode: 0644]

index ede9efe7a10bfbb5bcdc37e92eab8d2bc80d0b0a..e96b0580c86d694eaeadc629d2a666972b83a144 100644 (file)
@@ -1403,7 +1403,7 @@ tests_testCacheManager_SOURCES = \
        CacheDigest.h \
        tests/stub_CacheDigest.cc \
        carp.h \
-       carp.cc \
+       tests/stub_carp.cc \
        cbdata.cc \
        ChunkedCodingParser.cc \
        client_db.h \
@@ -1815,7 +1815,7 @@ tests_testEvent_SOURCES = \
        cache_cf.cc \
        cache_manager.cc \
        carp.h \
-       carp.cc \
+       tests/stub_carp.cc \
        cbdata.cc \
        ChunkedCodingParser.cc \
        client_db.h \
@@ -2064,7 +2064,7 @@ tests_testEventLoop_SOURCES = \
        RefreshPattern.h \
        cache_cf.cc \
        carp.h \
-       carp.cc \
+       tests/stub_carp.cc \
        cbdata.cc \
        ChunkedCodingParser.cc \
        client_db.h \
@@ -2312,7 +2312,7 @@ tests_test_http_range_SOURCES = \
        CacheDigest.h \
        tests/stub_CacheDigest.cc \
        carp.h \
-       carp.cc \
+       tests/stub_carp.cc \
        cbdata.cc \
        ChunkedCodingParser.cc \
        client_db.h \
@@ -2614,7 +2614,7 @@ tests_testHttpRequest_SOURCES = \
        CacheDigest.h \
        tests/stub_CacheDigest.cc \
        carp.h \
-       carp.cc \
+       tests/stub_carp.cc \
        cbdata.cc \
        ChunkedCodingParser.cc \
        client_db.h \
@@ -3415,7 +3415,7 @@ tests_testURL_SOURCES = \
        CacheDigest.h \
        tests/stub_CacheDigest.cc \
        carp.h \
-       carp.cc \
+       tests/stub_carp.cc \
        cbdata.cc \
        ChunkedCodingParser.cc \
        client_db.h \
@@ -3577,7 +3577,7 @@ tests_testURL_SOURCES = \
        String.cc \
        StrList.h \
        StrList.cc \
-       SwapDir.cc \
+       tests/stub_SwapDir.cc \
        MemStore.cc \
        tests/stub_debug.cc \
        tests/stub_DiskIOModule.cc \
diff --git a/src/tests/stub_carp.cc b/src/tests/stub_carp.cc
new file mode 100644 (file)
index 0000000..949f0de
--- /dev/null
@@ -0,0 +1,11 @@
+#include "squid.h"
+
+#define STUB_API "carp.cc"
+#include "tests/STUB.h"
+
+class CachePeer;
+class HttpRequest;
+
+void carpInit(void) STUB
+CachePeer * carpSelectParent(HttpRequest *) STUB_RETVAL(NULL)
+