Squid Web Cache master
Loading...
Searching...
No Matches
stub_errorpage.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2025 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 "AccessLogEntry.h"
11#include "errorpage.h"
12#include "HttpReply.h"
13
14#define STUB_API "errorpage.cc"
15#include "tests/STUB.h"
16
17err_type errorReservePageId(const char *, const SBuf &) STUB_RETVAL(err_type(0))
23HttpReply *ErrorState::BuildHttpReply(void) STUB_RETVAL(nullptr)
24void ErrorState::validate() STUB
25void errorInitialize(void) STUB
26void errorClean(void) STUB
27void errorSend(const Comm::ConnectionPointer &, ErrorState *) STUB
29bool strHdrAcptLangGetItem(const String &, char *, int, size_t &) STUB_RETVAL(false)
30void TemplateFile::loadDefault() STUB
31const char *errorPageName(int) STUB_RETVAL(nullptr)
33bool TemplateFile::loadFor(const HttpRequest *) STUB_RETVAL(false)
34bool TemplateFile::loadFromFile(const char *) STUB_RETVAL(false)
35bool TemplateFile::tryLoadTemplate(const char *) STUB_RETVAL(false)
36std::ostream &operator <<(std::ostream &os, const ErrorState *) STUB_RETVAL(os)
37
#define STUB
macro to stub a void function.
Definition STUB.h:34
#define STUB_RETVAL(x)
Definition STUB.h:42
#define CBDATA_CLASS_INIT(type)
Definition cbdata.h:325
Definition SBuf.h:94
err_type
Definition forward.h:14
bool strHdrAcptLangGetItem(const String &hdr, char *lang, int langLen, size_t &pos)
Definition errorpage.cc:472
void errorInitialize(void)
Definition errorpage.cc:261
void errorSend(const Comm::ConnectionPointer &conn, ErrorState *err)
Definition errorpage.cc:792
void errorClean(void)
Definition errorpage.cc:323
void errorAppendEntry(StoreEntry *entry, ErrorState *err)
Definition errorpage.cc:738
const char * errorPageName(int pageId)
error ID to string
Definition errorpage.cc:669
Abstraction layer for TCP, UDP, TLS, UDS and filedescriptor sockets.
Definition forward.h:18
STL namespace.
err_type errorReservePageId(const char *, const SBuf &) STUB_RETVAL(err_type(0)) CBDATA_CLASS_INIT(ErrorState)
allocates a new slot for the error page
Definition errorpage.cc:654