From: Francesco Chemolli Date: Wed, 30 Oct 2013 17:42:48 +0000 (+0100) Subject: implemeted stub_time, more stubs in testConfigParser X-Git-Tag: SQUID_3_5_0_1~570^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8a1e7035d8861f0d152f203e26ec7581959299a7;p=thirdparty%2Fsquid.git implemeted stub_time, more stubs in testConfigParser --- diff --git a/src/Makefile.am b/src/Makefile.am index 335231999f..313458ef88 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -3687,8 +3687,9 @@ tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA) 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 \ @@ -3704,7 +3705,6 @@ tests_testConfigParser_SOURCES = \ tests/stub_HelperChildConfig.cc \ tools.h \ tests/stub_tools.cc \ - time.cc \ wordlist.h \ wordlist.cc nodist_tests_testConfigParser_SOURCES = \ diff --git a/src/tests/stub_time.cc b/src/tests/stub_time.cc new file mode 100644 index 0000000000..068b569415 --- /dev/null +++ b/src/tests/stub_time.cc @@ -0,0 +1,13 @@ +#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 +