-class TEST_STORE_LOCAL : public TEST_STORE {
-public:
- TEST_STORE_LOCAL()
- : connects(0),
- disconnects(0)
- {}
- int WriteUserConnect(const std::string & /*login*/, uint32_t /*ip*/) const override { ++connects; return 0; }
-
- int WriteUserDisconnect(const std::string & /*login*/,
- const STG::DirTraff & /*up*/,
- const STG::DirTraff & /*down*/,
- const STG::DirTraff & /*sessionUp*/,
- const STG::DirTraff & /*sessionDown*/,
- double /*cash*/,
- double /*freeMb*/,
- const std::string & /*reason*/) const override { ++disconnects; return 0; }
-
- size_t GetConnects() const { return connects; }
- size_t GetDisconnects() const { return disconnects; }
-
-private:
- mutable size_t connects;
- mutable size_t disconnects;
-};
-
-class TEST_SETTINGS_LOCAL : public TEST_SETTINGS {