X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/4a680f37817759b02e424faf1b22c5c38ea29e5b..1cb912e4f90473f78d2f0f10ab5c9b2c5bd36440:/tests/testsettings.h diff --git a/tests/testsettings.h b/tests/testsettings.h index dd30f3fa..1eadb8ec 100644 --- a/tests/testsettings.h +++ b/tests/testsettings.h @@ -1,34 +1,37 @@ -#ifndef __TEST_SETTINGS_H__ -#define __TEST_SETTINGS_H__ +#pragma once #include "stg/settings.h" -class TEST_SETTINGS : public SETTINGS { +class TestSettings : public STG::Settings +{ public: - TEST_SETTINGS() {} + TestSettings() { m_filterParamsLog.push_back("*"); } - const std::string & GetDirName(size_t) const { return dirName; } - const std::string & GetScriptsDir() const { return scriptsDir; } - unsigned GetDetailStatWritePeriod() const { return 10; } - unsigned GetStatWritePeriod() const { return 10; } - unsigned GetDayFee() const { return 0; } - bool GetFullFee() const { return false; } - unsigned GetDayResetTraff() const { return 0; } - bool GetSpreadFee() const { return false; } - bool GetFreeMbAllowInet() const { return false; } - bool GetDayFeeIsLastDay() const { return false; } - bool GetWriteFreeMbTraffCost() const { return false; } - bool GetShowFeeInCash() const { return false; } - unsigned GetMessageTimeout() const { return 0; } - unsigned GetFeeChargeType() const { return 0; } - bool GetReconnectOnTariffChange() const { return false; } - const std::string & GetMonitorDir() const { return monitorDir; } - bool GetMonitoring() const { return false; } + const std::string& GetDirName(size_t) const override { return m_dirName; } + const std::string& GetScriptsDir() const override { return m_scriptsDir; } + unsigned GetDetailStatWritePeriod() const override { return 10; } + unsigned GetStatWritePeriod() const override { return 10; } + unsigned GetDayFee() const override { return 0; } + bool GetFullFee() const override { return false; } + unsigned GetDayResetTraff() const override { return 0; } + bool GetSpreadFee() const override { return false; } + bool GetFreeMbAllowInet() const override { return false; } + bool GetDayFeeIsLastDay() const override { return false; } + bool GetWriteFreeMbTraffCost() const override { return false; } + bool GetShowFeeInCash() const override { return false; } + unsigned GetMessageTimeout() const override { return 0; } + unsigned GetFeeChargeType() const override { return 0; } + bool GetReconnectOnTariffChange() const override { return false; } + const std::string& GetMonitorDir() const override { return m_monitorDir; } + bool GetMonitoring() const override { return false; } + const std::vector& GetScriptParams() const override { return m_scriptParams; } + bool GetDisableSessionLog() const override { return false; } + const std::vector& GetFilterParamsLog() const override { return m_filterParamsLog; } private: - std::string dirName; - std::string scriptsDir; - std::string monitorDir; + std::string m_dirName; + std::string m_scriptsDir; + std::string m_monitorDir; + std::vector m_scriptParams; + std::vector m_filterParamsLog; }; - -#endif