-class TEST_STORE_LOCAL : public TEST_STORE,
- private NONCOPYABLE {
-public:
- TEST_STORE_LOCAL()
- : connects(0),
- disconnects(0)
- {}
- int WriteUserConnect(const std::string & /*login*/, uint32_t /*ip*/) const { ++connects; return 0; }
-
- int WriteUserDisconnect(const std::string & /*login*/,
- const DIR_TRAFF & /*up*/,
- const DIR_TRAFF & /*down*/,
- const DIR_TRAFF & /*sessionUp*/,
- const DIR_TRAFF & /*sessionDown*/,
- double /*cash*/,
- double /*freeMb*/,
- const std::string & /*reason*/) const { ++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 {