stub_errorpage.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 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 
17 err_type errorReservePageId(const char *, const SBuf &) STUB_RETVAL(err_type(0))
23 HttpReply *ErrorState::BuildHttpReply(void) STUB_RETVAL(nullptr)
24 void ErrorState::validate() STUB
25 void errorInitialize(void) STUB
26 void errorClean(void) STUB
29 bool strHdrAcptLangGetItem(const String &, char *, int, size_t &) STUB_RETVAL(false)
30 void TemplateFile::loadDefault() STUB
31 const char *errorPageName(int) STUB_RETVAL(nullptr)
33 bool TemplateFile::loadFor(const HttpRequest *) STUB_RETVAL(false)
34 bool TemplateFile::loadFromFile(const char *) STUB_RETVAL(false)
35 bool TemplateFile::tryLoadTemplate(const char *) STUB_RETVAL(false)
36 std::ostream &operator <<(std::ostream &os, const ErrorState *) STUB_RETVAL(os)
37 
void errorAppendEntry(StoreEntry *entry, ErrorState *err)
Definition: errorpage.cc:738
#define STUB_RETVAL(x)
Definition: STUB.h:42
Definition: SBuf.h:93
const char * errorPageName(int pageId)
error ID to string
Definition: errorpage.cc:669
Abstraction layer for TCP, UDP, TLS, UDS and filedescriptor sockets.
Definition: AcceptLimiter.h:16
StatusCode
Definition: StatusCode.h:20
err_type
Definition: forward.h:14
Definition: forward.h:17
void errorSend(const Comm::ConnectionPointer &conn, ErrorState *err)
Definition: errorpage.cc:792
bool strHdrAcptLangGetItem(const String &hdr, char *lang, int langLen, size_t &pos)
Definition: errorpage.cc:472
#define STUB
macro to stub a void function.
Definition: STUB.h:34
#define CBDATA_CLASS_INIT(type)
Definition: cbdata.h:325
RefCount< Comm::Connection > ConnectionPointer
Definition: forward.h:26
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
void errorClean(void)
Definition: errorpage.cc:323
void errorInitialize(void)
Definition: errorpage.cc:261

 

Introduction

Documentation

Support

Miscellaneous