]> git.stg.codes - stg.git/blobdiff - tests/testauth.h
Finalize transition to Boost.UnitTest.
[stg.git] / tests / testauth.h
index f82f4981721b1a36c329fb8a3b3ad46ef6eef883..f24d2effca25a4b84f61345af447a76381705823 100644 (file)
@@ -1,34 +1,32 @@
-#ifndef __TEST_AUTH_H__
-#define __TEST_AUTH_H__
+#pragma once
 
 #include "stg/auth.h"
 
-class TEST_AUTH : public STG::Auth {
+class TestAuth : public STG::Auth
+{
     public:
-        TEST_AUTH() {}
+        TestAuth() {}
 
-        void SetUsers(STG::Users * /*u*/) override {}
-        void SetTariffs(STG::Tariffs * /*t*/) override {}
-        void SetAdmins(STG::Admins * /*a*/) override {}
-        void SetTraffcounter(STG::TraffCounter * /*tc*/) override {}
-        void SetStore(STG::Store * /*st*/) override {}
-        void SetStgSettings(const STG::Settings * /*s*/) override {}
-        void SetSettings(const STG::ModuleSettings & /*s*/) override {}
+        void SetUsers(STG::Users* /*u*/) override {}
+        void SetTariffs(STG::Tariffs* /*t*/) override {}
+        void SetAdmins(STG::Admins* /*a*/) override {}
+        void SetTraffcounter(STG::TraffCounter* /*tc*/) override {}
+        void SetStore(STG::Store* /*st*/) override {}
+        void SetStgSettings(const STG::Settings* /*s*/) override {}
+        void SetSettings(const STG::ModuleSettings& /*s*/) override {}
         int ParseSettings() override { return 0; }
 
         int Start() override { return 0; }
         int Stop() override { return 0; }
         int Reload(const STG::ModuleSettings&) override { return 0; }
         bool IsRunning() override { return true; }
-        const std::string & GetStrError() const override { return strError; }
+        const std::string& GetStrError() const override { return m_errorStr; }
         std::string GetVersion() const override { return ""; }
         uint16_t GetStartPosition() const override { return 0; }
         uint16_t GetStopPosition() const override { return 0; }
 
-        int SendMessage(const STG::Message & /*msg*/, uint32_t /*ip*/) const override { return 0; }
+        int SendMessage(const STG::Message& /*msg*/, uint32_t /*ip*/) const override { return 0; }
 
     private:
-        std::string strError;
+        std::string m_errorStr;
 };
-
-#endif