]> git.stg.codes - stg.git/blobdiff - tests/testsettings.h
Test admin, settings, tariffs and store moved to separate files
[stg.git] / tests / testsettings.h
diff --git a/tests/testsettings.h b/tests/testsettings.h
new file mode 100644 (file)
index 0000000..39ec62e
--- /dev/null
@@ -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