The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
test_config_cache Class Reference

Used to make distinct singleton for testing it because other tests will need original one to load data. More...

Inheritance diagram for test_config_cache:
Inheritance graph

Public Member Functions

void set_force_invalid_cache (bool force)
 
- Public Member Functions inherited from game_config::config_cache
 config_cache (const config_cache &)=delete
 
config_cacheoperator= (const config_cache &)=delete
 
const preproc_mapget_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_cacheinstance ()
 
- Static Public Member Functions inherited from game_config::config_cache
static config_cacheinstance ()
 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)
 

Detailed Description

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.

Constructor & Destructor Documentation

test_config_cache::test_config_cache ( )
inlineprivate

Definition at line 51 of file test_config_cache.cpp.

Referenced by instance().

Member Function Documentation

test_config_cache & test_config_cache::instance ( )
static

Definition at line 62 of file test_config_cache.cpp.

References test_config_cache().

Referenced by BOOST_AUTO_TEST_CASE().

void test_config_cache::set_force_invalid_cache ( bool  force)
inline

The documentation for this class was generated from the following file: