]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_libtime.cc
2 * Copyright (C) 1996-2022 The Squid Software Foundation and contributors
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.
11 #define STUB_API "time/libtime.la"
12 #include "tests/STUB.h"
14 #include "time/Engine.h"
15 void Time::Engine::tick() STUB
17 #include "time/gadgets.h"
18 struct timeval current_time
= {};
19 double current_dtime
= 0.0;
20 time_t squid_curtime
= 0;
21 time_t getCurrentTime() STUB_RETVAL(0)
22 int tvSubUsec(struct timeval
, struct timeval
) STUB_RETVAL(0)
23 double tvSubDsec(struct timeval
, struct timeval
) STUB_RETVAL(0.0)
24 int tvSubMsec(struct timeval
, struct timeval
) STUB_RETVAL(0)
25 void tvSub(struct timeval
&, struct timeval
const &, struct timeval
const &) STUB
26 void tvAdd(struct timeval
&, struct timeval
const &, struct timeval
const &) STUB
27 void tvAssignAdd(struct timeval
&, struct timeval
const &) STUB
28 std::ostream
&operator <<(std::ostream
&os
, const timeval
&) STUB_RETVAL(os
)
31 time_t ParseIso3307(const char *) STUB_RETVAL(0)
32 const char *FormatRfc1123(time_t) STUB_RETVAL("")
33 time_t ParseRfc1123(const char *) STUB_RETVAL(0)
34 const char *FormatStrf(time_t) STUB_RETVAL("")
35 const char *FormatHttpd(time_t) STUB_RETVAL("")