From: Francesco Chemolli Date: Thu, 24 Oct 2013 15:45:36 +0000 (-0600) Subject: Have testRock use cachemgr stubs X-Git-Tag: SQUID_3_3_10~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35174864124a9daae6186f4ef24fb2fb2857e2b1;p=thirdparty%2Fsquid.git Have testRock use cachemgr stubs --- diff --git a/src/Makefile.am b/src/Makefile.am index fd1a0740bc..15ed2760be 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -3275,8 +3275,8 @@ tests_testRock_SOURCES = \ cache_cf.h \ YesNoNone.h \ tests/stub_cache_cf.cc \ - tests/stub_cache_manager.cc \ client_db.h \ + tests/stub_cache_manager.cc \ tests/stub_client_db.cc \ tests/stub_client_side_request.cc \ tests/stub_debug.cc \ @@ -3289,6 +3289,7 @@ tests_testRock_SOURCES = \ tests/stub_ipcache.cc \ tests/stub_libformat.cc \ tests/stub_libicmp.cc \ + tests/stub_libmgr.cc \ tests/stub_MemStore.cc \ mime.h \ tests/stub_mime.cc \ @@ -3330,7 +3331,6 @@ tests_testRock_LDADD = \ acl/libstate.la \ eui/libeui.la \ ipc/libipc.la \ - mgr/libmgr.la \ base/libbase.la \ $(SSL_LIBS) \ $(top_builddir)/lib/libmisccontainers.la \ diff --git a/src/tests/stub_libmgr.cc b/src/tests/stub_libmgr.cc index ab9727de18..5849fb2a37 100644 --- a/src/tests/stub_libmgr.cc +++ b/src/tests/stub_libmgr.cc @@ -27,8 +27,8 @@ StoreEntry * Mgr::Action::createStoreEntry() const STUB_RETVAL(NULL) static Mgr::Action::Pointer dummyAction; #include "mgr/ActionParams.h" -Mgr::ActionParams::ActionParams() STUB -Mgr::ActionParams::ActionParams(const Ipc::TypedMsgHdr &msg) STUB +Mgr::ActionParams::ActionParams() STUB_NOP +Mgr::ActionParams::ActionParams(const Ipc::TypedMsgHdr &msg) STUB_NOP void Mgr::ActionParams::pack(Ipc::TypedMsgHdr &msg) const STUB std::ostream &operator <<(std::ostream &os, const Mgr::ActionParams ¶ms) STUB_RETVAL(os) @@ -174,8 +174,8 @@ Mgr::QueryParam::Pointer Mgr::QueryParams::CreateParam(QueryParam::Type aType) S bool Mgr::QueryParams::ParseParam(const String& paramStr, Param& param) STUB_RETVAL(false) #include "mgr/Registration.h" -void Mgr::RegisterAction(char const * action, char const * desc, OBJH * handler, int pw_req_flag, int atomic); -void Mgr::RegisterAction(char const * action, char const * desc, ClassActionCreationHandler *handler, int pw_req_flag, int atomic); +//void Mgr::RegisterAction(char const * action, char const * desc, OBJH * handler, int pw_req_flag, int atomic); +//void Mgr::RegisterAction(char const * action, char const * desc, ClassActionCreationHandler *handler, int pw_req_flag, int atomic); #include "mgr/Request.h" //Mgr::Request::Request(int aRequestorId, unsigned int aRequestId, int aFd, const Mgr::ActionParams &aParams) STUB