]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/tests/stub_time.cc
Source Format Enforcement (#763)
[thirdparty/squid.git] / src / tests / stub_time.cc
index 67299bdfaa4224ce82499eb37689057ee908dfd1..089ca57f8855d27e654f05d81f0bd6e9e407eab6 100644 (file)
@@ -1,14 +1,31 @@
+/*
+ * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
+
 #include "squid.h"
 #include "SquidTime.h"
 
 #define STUB_API "time.cc"
-#include "STUB.h"
+#include "tests/STUB.h"
 
 struct timeval current_time;
 double current_dtime;
 time_t squid_curtime = 0;
 
-time_t getCurrentTime(void) STUB
-int tvSubMsec(struct timeval, struct timeval) STUB
-const char * Time::FormatStrf(time_t ) STUB
-const char * Time::FormatHttpd(time_t ) STUB
+time_t getCurrentTime(void) STUB_RETVAL(0)
+int tvSubMsec(struct timeval, struct timeval) STUB_RETVAL(0)
+void tvSub(timeval&, timeval const&, timeval const&) STUB
+void tvAssignAdd(timeval&, timeval const&) STUB
+
+const char * Time::FormatStrf(time_t ) STUB_RETVAL("")
+const char * Time::FormatHttpd(time_t ) STUB_RETVAL("")
+
+void TimeEngine::tick() STUB
+TimeEngine::~TimeEngine() {STUB_NOP}
+
+std::ostream &operator <<(std::ostream &os, const timeval &) STUB_RETVAL(os)
+