]> git.stg.codes - stg.git/blob - tests/testusers.h
Added TEST_USERS
[stg.git] / tests / testusers.h
1 #ifndef __TEST_USERS_H__
2 #define __TEST_USERS_H__
3
4 class TEST_USERS : public USERS {
5     public:
6         TEST_USERS() {}
7
8         int  FindByName(const std::string & /*login*/, USER_PTR * /*user*/) { return -1; }
9
10         bool TariffInUse(const std::string & /*tariffName*/) const { return -1; }
11
12         void AddNotifierUserAdd(NOTIFIER_BASE<USER_PTR> * /*notifier*/) {}
13         void DelNotifierUserAdd(NOTIFIER_BASE<USER_PTR> * /*notifier*/) {}
14
15         void AddNotifierUserDel(NOTIFIER_BASE<USER_PTR> * /*notifier*/) {}
16         void DelNotifierUserDel(NOTIFIER_BASE<USER_PTR> * /*notifier*/) {}
17
18         int  Add(const std::string & /*login*/, const ADMIN * /*admin*/) { return 0; }
19         void Del(const std::string & /*login*/, const ADMIN * /*admin*/) {}
20
21         int  ReadUsers() { return 0; }
22         int  GetUserNum() const { return 0; }
23
24         int  FindByIPIdx(uint32_t /*ip*/, USER_PTR * /*user*/) const { return -1; }
25         bool IsIPInIndex(uint32_t /*ip*/) const { return false; }
26
27         int  OpenSearch() { return 0; }
28         int  SearchNext(int /*handle*/, USER_PTR * /*u*/) { return -1; }
29         int  CloseSearch(int /*handle*/) { return 0; }
30
31         int  Start() { return 0; }
32         int  Stop() { return 0; }
33
34     private:
35 };
36
37 #endif