]> 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 648f42c60c59064b8ecfd3af4b73d77fbbec78e4..089ca57f8855d27e654f05d81f0bd6e9e407eab6 100644 (file)
@@ -1,8 +1,16 @@
+/*
+ * 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;
@@ -10,9 +18,14 @@ time_t squid_curtime = 0;
 
 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
+TimeEngine::~TimeEngine() {STUB_NOP}
+
+std::ostream &operator <<(std::ostream &os, const timeval &) STUB_RETVAL(os)