X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/ba6a9aa642d0960f3c429748f860918572206f92..1890cc7d2037b5ea90e67a63b24b377244565322:/tests/testadmin.h?ds=sidebyside diff --git a/tests/testadmin.h b/tests/testadmin.h index b6b871f5..f10df54e 100644 --- a/tests/testadmin.h +++ b/tests/testadmin.h @@ -5,19 +5,12 @@ class TEST_ADMIN : public ADMIN { public: - TEST_ADMIN() : priv(0xffFF) {} - - ADMIN & operator=(const ADMIN &) { return *this; } - ADMIN & operator=(const ADMIN_CONF &) { return *this; } - bool operator==(const ADMIN & /*rhs*/) const { return true; } - bool operator!=(const ADMIN & /*rhs*/) const { return false; } - bool operator<(const ADMIN & /*rhs*/) const { return true; } - bool operator<=(const ADMIN & /*rhs*/) const { return true; } + TEST_ADMIN() : priv(0xffFF), ip(0) {} const std::string & GetPassword() const { return password; } const std::string & GetLogin() const { return login; } PRIV const * GetPriv() const { return &priv; } - uint16_t GetPrivAsInt() const { return priv.ToInt(); } + uint32_t GetPrivAsInt() const { return priv.ToInt(); } const ADMIN_CONF & GetConf() const { return conf; } uint32_t GetIP() const { return ip; } std::string GetIPStr() const { return inet_ntostring(ip); }