]> git.ipfire.org Git - thirdparty/squid.git/blame - src/tests/stub_icp.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / tests / stub_icp.cc
CommitLineData
4e0938ef 1/*
4ac4a490 2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
4e0938ef
AJ
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
f7f3304a 9#include "squid.h"
1b76e6c1
AJ
10#include "comm/Connection.h"
11#include "ICP.h"
1b76e6c1 12
081edc2d
AJ
13#define STUB_API "icp_*.cc"
14#include "tests/STUB.h"
1b76e6c1
AJ
15
16#ifdef __cplusplus
17_icp_common_t::_icp_common_t() STUB
18_icp_common_t::_icp_common_t(char *buf, unsigned int len) STUB
19void _icp_common_t::handleReply(char *buf, Ip::Address &from) STUB
20_icp_common_t *_icp_common_t::createMessage(icp_opcode opcode, int flags, const char *url, int reqnum, int pad) STUB_RETVAL(NULL)
21icp_opcode _icp_common_t::getOpCode() const STUB_RETVAL(ICP_INVALID)
22ICPState::ICPState(icp_common_t &aHeader, HttpRequest *aRequest) STUB
23ICPState::~ICPState() STUB
24#endif
25
26Comm::ConnectionPointer icpIncomingConn;
27Comm::ConnectionPointer icpOutgoingConn;
28Ip::Address theIcpPublicHostID;
29
30HttpRequest* icpGetRequest(char *url, int reqnum, int fd, Ip::Address &from) STUB_RETVAL(NULL)
2efeb0b7 31bool icpAccessAllowed(Ip::Address &from, HttpRequest * icp_request) STUB_RETVAL(false)
1b76e6c1
AJ
32void icpCreateAndSend(icp_opcode, int flags, char const *url, int reqnum, int pad, int fd, const Ip::Address &from) STUB
33icp_opcode icpGetCommonOpcode() STUB_RETVAL(ICP_INVALID)
02c8dde5
AJ
34int icpUdpSend(int, const Ip::Address &, icp_common_t *, LogTags, int) STUB_RETVAL(0)
35LogTags icpLogFromICPCode(icp_opcode opcode) STUB_RETVAL(LOG_TAG_NONE)
1b76e6c1
AJ
36void icpDenyAccess(Ip::Address &from, char *url, int reqnum, int fd) STUB
37void icpHandleIcpV3(int, Ip::Address &, char *, int) STUB
38int icpCheckUdpHit(StoreEntry *, HttpRequest * request) STUB_RETVAL(0)
39void icpConnectionsOpen(void) STUB
40void icpConnectionShutdown(void) STUB
41void icpConnectionClose(void) STUB
42int icpSetCacheKey(const cache_key * key) STUB_RETVAL(0)
43const cache_key *icpGetCacheKey(const char *url, int reqnum) STUB_RETVAL(NULL)
f53969cc 44
da6dbcd1
EB
45#include "icp_opcode.h"
46// dynamically generated
47#include "icp_opcode.cc"
48