]> git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_libanyp.cc
Source Format Enforcement (#763)
[thirdparty/squid.git] / src / tests / stub_libanyp.cc
1 /*
2 * Copyright (C) 1996-2021 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
11 #define STUB_API "anyp/libanyp.la"
12 #include "tests/STUB.h"
13
14 #include "anyp/Uri.h"
15 AnyP::Uri::Uri(AnyP::UriScheme const &) {STUB}
16 void AnyP::Uri::touch() STUB
17 bool AnyP::Uri::parse(const HttpRequestMethod&, const SBuf &) STUB_RETVAL(true)
18 void AnyP::Uri::host(const char *) STUB
19 static SBuf nil;
20 const SBuf &AnyP::Uri::path() const STUB_RETVAL(nil)
21 void AnyP::Uri::addRelativePath(const char *) STUB
22 const SBuf &AnyP::Uri::SlashPath()
23 {
24 static SBuf slash("/");
25 return slash;
26 }
27 const SBuf &AnyP::Uri::Asterisk()
28 {
29 static SBuf asterisk("*");
30 return asterisk;
31 }
32 SBuf &AnyP::Uri::authority(bool) const STUB_RETVAL(nil)
33 SBuf &AnyP::Uri::absolute() const STUB_RETVAL(nil)
34 void urlInitialize() STUB
35 const char *urlCanonicalFakeHttps(const HttpRequest *) STUB_RETVAL(nullptr)
36 bool urlIsRelative(const char *) STUB_RETVAL(false)
37 char *urlRInternal(const char *, unsigned short, const char *, const char *) STUB_RETVAL(nullptr)
38 char *urlInternal(const char *, const char *) STUB_RETVAL(nullptr)
39 int matchDomainName(const char *, const char *, enum MatchDomainNameFlags) STUB_RETVAL(0)
40 int urlCheckRequest(const HttpRequest *) STUB_RETVAL(0)
41 void urlExtMethodConfigure() STUB
42