]> git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_url.cc
Bug 1961 extra: Convert the URL::parse method API to take const URI strings
[thirdparty/squid.git] / src / tests / stub_url.cc
1 /*
2 * Copyright (C) 1996-2017 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 "url.cc"
12 #include "tests/STUB.h"
13
14 #include "URL.h"
15 URL::URL(AnyP::UriScheme const &) {STUB}
16 void URL::touch() STUB
17 bool URL::parse(const HttpRequestMethod&, const char *) STUB_RETVAL(true)
18 void URL::host(const char *) STUB
19 static SBuf nil;
20 const SBuf &URL::path() const STUB_RETVAL(nil)
21 const SBuf &URL::SlashPath()
22 {
23 static SBuf slash("/");
24 return slash;
25 }
26 const SBuf &URL::Asterisk()
27 {
28 static SBuf asterisk("*");
29 return asterisk;
30 }
31 SBuf &URL::authority(bool) const STUB_RETVAL(nil)
32 SBuf &URL::absolute() const STUB_RETVAL(nil)
33 void urlInitialize() STUB
34 char *urlCanonicalClean(const HttpRequest *) STUB_RETVAL(nullptr)
35 const char *urlCanonicalFakeHttps(const HttpRequest *) STUB_RETVAL(nullptr)
36 bool urlIsRelative(const char *) STUB_RETVAL(false)
37 char *urlMakeAbsolute(const HttpRequest *, const char *)STUB_RETVAL(nullptr)
38 char *urlRInternal(const char *, unsigned short, const char *, const char *) STUB_RETVAL(nullptr)
39 char *urlInternal(const char *, const char *) STUB_RETVAL(nullptr)
40 int matchDomainName(const char *, const char *, uint) STUB_RETVAL(0)
41 int urlCheckRequest(const HttpRequest *) STUB_RETVAL(0)
42 char *urlHostname(const char *) STUB_RETVAL(nullptr)
43 void urlExtMethodConfigure() STUB
44