git.stg.codes
/
stg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
512f2e6
)
Add authorization in test users class
author
Maxim Mamontov
<faust.madf@gmail.com>
Wed, 14 Sep 2011 11:17:25 +0000
(14:17 +0300)
committer
Maxim Mamontov
<faust.madf@gmail.com>
Wed, 14 Sep 2011 11:17:25 +0000
(14:17 +0300)
tests/testusers.h
patch
|
blob
|
history
diff --git
a/tests/testusers.h
b/tests/testusers.h
index 780d0dd9483e771cef90761e7ea317ac62f7b04d..b207ccb6cea2e13578d4f85e2221965238c18287 100644
(file)
--- a/
tests/testusers.h
+++ b/
tests/testusers.h
@@
-21,6
+21,11
@@
class TEST_USERS : public USERS {
{ return 0; }
void Del(const std::string & /*login*/, const ADMIN * /*admin*/) {}
+ bool Authorize(const std::string &, uint32_t, uint32_t, const AUTH *)
+ { return false; }
+ bool Unauthorize(const std::string &, const AUTH *)
+ { return false; }
+
int ReadUsers() { return 0; }
virtual size_t Count() const { return 0; };