X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/6d1a13b7d0f517c46b8456acc835bf6f5efb2b67..d0adbf3d56cb2e95fae085700c3e305b134cbaf0:/tests/testsettings.h diff --git a/tests/testsettings.h b/tests/testsettings.h new file mode 100644 index 00000000..39ec62e2 --- /dev/null +++ b/tests/testsettings.h @@ -0,0 +1,33 @@ +#ifndef __TEST_SETTINGS_H__ +#define __TEST_SETTINGS_H__ + +#include "stg/settings.h" + +class TEST_SETTINGS : public SETTINGS { + public: + TEST_SETTINGS() {} + + 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; } + const std::string & GetMonitorDir() const { return monitorDir; } + bool GetMonitoring() const { return false; } + + private: + std::string dirName; + std::string scriptsDir; + std::string monitorDir; +}; + +#endif