]> git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_liberror.cc
Fix printing Security::ErrorDetail (#1129)
[thirdparty/squid.git] / src / tests / stub_liberror.cc
1 #include "squid.h"
2 #include "error/Error.h"
3 #include "sbuf/SBuf.h"
4
5 #define STUB_API "error/liberror.la"
6 #include "tests/STUB.h"
7
8 const char * err_type_str[ERR_MAX] = {};
9
10 void Error::update(const Error &) STUB_NOP
11
12 std::ostream &operator <<(std::ostream &os, const Error &) STUB_RETVAL(os)
13 std::ostream &operator <<(std::ostream &os, const ErrorDetail::Pointer &) STUB_RETVAL(os)
14
15 ErrorDetail::Pointer MakeNamedErrorDetail(const char *) STUB_RETVAL(ErrorDetail::Pointer())
16
17 #include "error/SysErrorDetail.h"
18 SBuf SysErrorDetail::Brief(int) STUB_RETVAL(SBuf())
19 SBuf SysErrorDetail::brief() const STUB_RETVAL(SBuf())
20 SBuf SysErrorDetail::verbose(const HttpRequestPointer &) const STUB_RETVAL(SBuf())
21 std::ostream &operator <<(std::ostream &os, ReportSysError) STUB_RETVAL(os)
22