tests_testConfigParser_SOURCES = \
ClientInfo.h \
Mem.h \
- mem.cc \
- MemBuf.cc \
+ tests/stub_mem.cc \
+ tests/stub_MemBuf.cc \
+ tests/stub_time.cc \
String.cc \
ConfigParser.cc \
fatal.h \
tests/stub_HelperChildConfig.cc \
tools.h \
tests/stub_tools.cc \
- time.cc \
wordlist.h \
wordlist.cc
nodist_tests_testConfigParser_SOURCES = \
--- /dev/null
+#include "squid.h"
+#include "SquidTime.h"
+
+#define STUB_API "time.cc"
+#include "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
+