Inheritance diagram for TestAuthDatabase:
Collaboration diagram for TestAuthDatabase:Public Member Functions | |
| TestAuthDatabase () | |
| const char * | getName () |
| void | runTests (IGameDef *gamedef) |
| void | runTestsForCurrentDB () |
| void | testRecallFail () |
| void | testCreate () |
| void | testRecall () |
| void | testChange () |
| void | testRecallChanged () |
| void | testChangePrivileges () |
| void | testRecallChangedPrivileges () |
| void | testListNames () |
| void | testDelete () |
Public Member Functions inherited from TestBase | |
| bool | testModule (IGameDef *gamedef) |
| std::string | getTestTempDirectory () |
| std::string | getTestTempFile () |
| void | runTest (const char *name, std::function< void()> &&test) |
Private Attributes | |
| AuthDatabaseProvider * | auth_provider |
Additional Inherited Members | |
Public Attributes inherited from TestBase | |
| u32 | num_tests_failed |
| u32 | num_tests_run |
|
inline |
|
inlinevirtual |
Implements TestBase.
|
virtual |
Implements TestBase.
References auth_provider, fs::DeleteSingleFileOrEmptyDirectory(), DIR_DELIM, TestBase::getTestTempDirectory(), rawstream, and runTestsForCurrentDB().
Here is the call graph for this function:| void TestAuthDatabase::runTestsForCurrentDB | ( | ) |
References TEST, testChange(), testChangePrivileges(), testCreate(), testDelete(), testListNames(), testRecall(), testRecallChanged(), testRecallChangedPrivileges(), and testRecallFail().
Referenced by runTests().
Here is the call graph for this function:
Here is the caller graph for this function:| void TestAuthDatabase::testChange | ( | ) |
References auth_provider, AuthDatabase::getAuth(), AuthEntry::last_login, AuthEntry::password, AuthDatabase::saveAuth(), and UASSERT.
Referenced by runTestsForCurrentDB().
Here is the call graph for this function:
Here is the caller graph for this function:| void TestAuthDatabase::testChangePrivileges | ( | ) |
References auth_provider, AuthDatabase::getAuth(), AuthEntry::privileges, AuthDatabase::saveAuth(), and UASSERT.
Referenced by runTestsForCurrentDB().
Here is the call graph for this function:
Here is the caller graph for this function:| void TestAuthDatabase::testCreate | ( | ) |
References auth_provider, AuthDatabase::createAuth(), AuthEntry::last_login, AuthEntry::name, AuthEntry::password, AuthEntry::privileges, and UASSERT.
Referenced by runTestsForCurrentDB().
Here is the call graph for this function:
Here is the caller graph for this function:| void TestAuthDatabase::testDelete | ( | ) |
References auth_provider, AuthDatabase::deleteAuth(), and UASSERT.
Referenced by runTestsForCurrentDB().
Here is the call graph for this function:
Here is the caller graph for this function:| void TestAuthDatabase::testListNames | ( | ) |
References auth_provider, AuthDatabase::createAuth(), AuthEntry::last_login, AuthDatabase::listNames(), AuthEntry::name, AuthEntry::password, AuthEntry::privileges, str_join(), and UASSERTEQ.
Referenced by runTestsForCurrentDB().
Here is the call graph for this function:
Here is the caller graph for this function:| void TestAuthDatabase::testRecall | ( | ) |
References auth_provider, AuthDatabase::getAuth(), AuthEntry::name, AuthEntry::password, AuthEntry::privileges, str_join(), UASSERT, and UASSERTEQ.
Referenced by runTestsForCurrentDB().
Here is the call graph for this function:
Here is the caller graph for this function:| void TestAuthDatabase::testRecallChanged | ( | ) |
References auth_provider, AuthDatabase::getAuth(), AuthEntry::last_login, AuthEntry::password, AuthEntry::privileges, str_join(), UASSERT, and UASSERTEQ.
Referenced by runTestsForCurrentDB().
Here is the call graph for this function:
Here is the caller graph for this function:| void TestAuthDatabase::testRecallChangedPrivileges | ( | ) |
References auth_provider, AuthDatabase::getAuth(), AuthEntry::privileges, str_join(), UASSERT, and UASSERTEQ.
Referenced by runTestsForCurrentDB().
Here is the call graph for this function:
Here is the caller graph for this function:| void TestAuthDatabase::testRecallFail | ( | ) |
References auth_provider, AuthDatabase::getAuth(), and UASSERT.
Referenced by runTestsForCurrentDB().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |