X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/673dfbb28627fea0836a71dc8cf8194428d9313b..c7801cde8b95a9ef8318030e1caaa0be0603fe80:/tests/testservices.h diff --git a/tests/testservices.h b/tests/testservices.h index 88e21769..ace3c863 100644 --- a/tests/testservices.h +++ b/tests/testservices.h @@ -3,20 +3,20 @@ #include "stg/services.h" -class TEST_SERVICES : public SERVICES +class TEST_SERVICES : public STG::Services { public: - virtual int Add(const SERVICE_CONF & /*service*/, const ADMIN * /*admin*/) { return 0; } - virtual int Del(const std::string & /*name*/, const ADMIN * /*admin*/) { return 0; } - virtual int Change(const SERVICE_CONF & /*service*/, const ADMIN * /*admin*/) { return 0; } - virtual bool Find(const std::string & name, SERVICE_CONF * service) const { return false; } - virtual bool Find(const std::string & name, SERVICE_CONF_RES * service) const { return false; } - virtual bool Exists(const std::string & name) const { return false; } + virtual int Add(const STG::ServiceConf & /*service*/, const STG::Admin * /*admin*/) { return 0; } + virtual int Del(const std::string & /*name*/, const STG::Admin * /*admin*/) { return 0; } + virtual int Change(const STG::ServiceConf & /*service*/, const STG::Admin * /*admin*/) { return 0; } + virtual bool Find(const std::string & /*name*/, STG::ServiceConf * /*service*/) const { return false; } + virtual bool Find(const std::string & /*name*/, STG::ServiceConfOpt * /*service*/) const { return false; } + virtual bool Exists(const std::string & /*name*/) const { return false; } virtual const std::string & GetStrError() const { return m_errorStr; } virtual size_t Count() const { return 0; } virtual int OpenSearch() const { return 0; } - virtual int SearchNext(int, SERVICE_CONF * /*service*/) const { return 0; } + virtual int SearchNext(int, STG::ServiceConf * /*service*/) const { return 0; } virtual int CloseSearch(int) const { return 0; } private: