]> git.stg.codes - stg.git/blobdiff - tests/testtariffs.h
Port to CMake, get rid of os_int.h.
[stg.git] / tests / testtariffs.h
index 68279aca7eecda52a604f7c4d7f6657ba7221824..f43bc22b400287416e3fe8f75fc9a1f1f05daebc 100644 (file)
@@ -7,17 +7,24 @@
 
 class TEST_TARIFFS : public TARIFFS {
     public:
-        TEST_TARIFFS() {}
+        TEST_TARIFFS() : testTariff("") {}
 
         int            ReadTariffs () { return 0; }
-        const TARIFF * FindByName(const std::string & name) const { return &testTariff; }
+        const TARIFF * FindByName(const std::string & /*name*/) const { return &testTariff; }
         const TARIFF * GetNoTariff() const { return NULL; }
-        int            GetTariffsNum() const { return 0; }
-        int            Del(const std::string & name, const ADMIN * admin) { return 0; }
-        int            Add(const std::string & name, const ADMIN * admin) { return 0; }
-        int            Chg(const TARIFF_DATA & td, const ADMIN * admin) { return 0; }
+        int            Del(const std::string & /*name*/, const ADMIN * /*admin*/) { return 0; }
+        int            Add(const std::string & /*name*/, const ADMIN * /*admin*/) { return 0; }
+        int            Chg(const TARIFF_DATA & /*td*/, const ADMIN * /*admin*/) { return 0; }
 
-        void           GetTariffsData(std::list<TARIFF_DATA> * tdl) {}
+        void AddNotifierAdd(NOTIFIER_BASE<TARIFF_DATA> *) {}
+        void DelNotifierAdd(NOTIFIER_BASE<TARIFF_DATA> *) {}
+
+        void AddNotifierDel(NOTIFIER_BASE<TARIFF_DATA> *) {}
+        void DelNotifierDel(NOTIFIER_BASE<TARIFF_DATA> *) {}
+
+        void           GetTariffsData(std::list<TARIFF_DATA> * /*tdl*/) const {}
+
+        size_t         Count() const { return 0; }
 
         const std::string & GetStrError() const { return strError; }