]> git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_icp.cc
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / src / tests / stub_icp.cc
1 /*
2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 #include "squid.h"
10 #include "comm/Connection.h"
11 #include "ICP.h"
12
13 #define STUB_API "icp_*.cc"
14 #include "tests/STUB.h"
15
16 icp_common_t::icp_common_t() STUB
17 icp_common_t::icp_common_t(char *buf, unsigned int len) STUB
18 void icp_common_t::handleReply(char *buf, Ip::Address &from) STUB
19 icp_common_t *icp_common_t::CreateMessage(icp_opcode opcode, int flags, const char *url, int reqnum, int pad) STUB_RETVAL(nullptr)
20 icp_opcode icp_common_t::getOpCode() const STUB_RETVAL(ICP_INVALID)
21 ICPState::ICPState(icp_common_t &aHeader, HttpRequest *aRequest) STUB
22 ICPState::~ICPState() STUB
23
24 Comm::ConnectionPointer icpIncomingConn;
25 Comm::ConnectionPointer icpOutgoingConn;
26 Ip::Address theIcpPublicHostID;
27
28 HttpRequest* icpGetRequest(char *url, int reqnum, int fd, Ip::Address &from) STUB_RETVAL(NULL)
29 bool icpAccessAllowed(Ip::Address &from, HttpRequest * icp_request) STUB_RETVAL(false)
30 void icpCreateAndSend(icp_opcode, int flags, char const *url, int reqnum, int pad, int fd, const Ip::Address &from) STUB
31 icp_opcode icpGetCommonOpcode() STUB_RETVAL(ICP_INVALID)
32 int icpUdpSend(int, const Ip::Address &, icp_common_t *, LogTags, int) STUB_RETVAL(0)
33 LogTags icpLogFromICPCode(icp_opcode opcode) STUB_RETVAL(LOG_TAG_NONE)
34 void icpDenyAccess(Ip::Address &from, char *url, int reqnum, int fd) STUB
35 void icpHandleIcpV3(int, Ip::Address &, char *, int) STUB
36 int icpCheckUdpHit(StoreEntry *, HttpRequest * request) STUB_RETVAL(0)
37 void icpConnectionsOpen(void) STUB
38 void icpConnectionShutdown(void) STUB
39 void icpConnectionClose(void) STUB
40 int icpSetCacheKey(const cache_key * key) STUB_RETVAL(0)
41 const cache_key *icpGetCacheKey(const char *url, int reqnum) STUB_RETVAL(NULL)
42
43 #include "icp_opcode.h"
44 // dynamically generated
45 #include "icp_opcode.cc"
46