Used to make distinct singleton for testing it because other tests will need original one to load data. More...
Public Member Functions | |
void | set_force_invalid_cache (bool force) |
Public Member Functions inherited from game_config::config_cache | |
const preproc_map & | get_preproc_map () const |
void | get_config (const std::string &path, config &cfg) |
Gets a config object from given path. More... | |
void | clear_defines () |
Clear stored defines map to default values. More... | |
void | add_define (const std::string &define) |
Add a entry to preproc defines map. More... | |
void | remove_define (const std::string &define) |
Remove a entry to preproc defines map. More... | |
void | set_use_cache (bool use) |
Enable/disable caching. More... | |
void | set_force_valid_cache (bool force) |
Enable/disable cache validation. More... | |
void | recheck_filetree_checksum () |
Force cache checksum validation. More... | |
bool | clean_cache () |
Deletes stale cache files not in use by the game. More... | |
bool | purge_cache () |
Deletes all cache files. More... | |
Static Public Member Functions | |
static test_config_cache & | instance () |
Static Public Member Functions inherited from game_config::config_cache | |
static config_cache & | instance () |
Get reference to the singleton object. More... | |
Private Member Functions | |
test_config_cache () | |
Additional Inherited Members | |
Protected Member Functions inherited from game_config::config_cache | |
config_cache () | |
void | set_force_invalid_cache (bool) |
Used to make distinct singleton for testing it because other tests will need original one to load data.
Definition at line 50 of file test_config_cache.cpp.
|
inlineprivate |
Definition at line 51 of file test_config_cache.cpp.
Referenced by instance().
|
static |
Definition at line 62 of file test_config_cache.cpp.
References cache_, and test_config_cache().
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 56 of file test_config_cache.cpp.
References game_config::config_cache::set_force_invalid_cache().