Classes | Defines | Typedefs | Functions

tests/test_config_cache.cpp File Reference

#include <boost/test/unit_test.hpp>
#include "config_cache.hpp"
#include "config.hpp"
#include "game_config.hpp"
#include "language.hpp"
#include "version.hpp"
#include "tests/utils/game_config_manager.hpp"
#include <boost/bind.hpp>
Include dependency graph for test_config_cache.cpp:

Go to the source code of this file.

Classes

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

Defines

#define GETTEXT_DOMAIN   "wesnoth-test"

Typedefs

typedef
game_config::scoped_preproc_define_internal
< test_config_cache
test_scoped_define
 Used to redirect defines settings to test cache.

Functions

static preproc_map setup_test_preproc_map ()
 BOOST_AUTO_TEST_CASE (test_preproc_defines)
 BOOST_AUTO_TEST_CASE (test_config_cache_defaults)
const std::string test_data_path ("data/test/test/_main.cfg")
static config setup_test_config ()
 BOOST_AUTO_TEST_CASE (test_load_config)
 BOOST_AUTO_TEST_CASE (test_non_clean_config_loading)
 BOOST_AUTO_TEST_CASE (test_macrosubstitution)
 BOOST_AUTO_TEST_CASE (test_transaction)
 BOOST_AUTO_TEST_CASE (test_define_loading)
 BOOST_AUTO_TEST_CASE (test_lead_spaces_loading)

Define Documentation

#define GETTEXT_DOMAIN   "wesnoth-test"

Definition at line 18 of file test_config_cache.cpp.

Referenced by BOOST_AUTO_TEST_CASE().


Typedef Documentation

Used to redirect defines settings to test cache.

Definition at line 74 of file test_config_cache.cpp.


Function Documentation

BOOST_AUTO_TEST_CASE ( test_preproc_defines   ) 
BOOST_AUTO_TEST_CASE ( test_lead_spaces_loading   ) 

Definition at line 291 of file test_config_cache.cpp.

References config::add_child(), gui2::cache, and config::clear().

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( test_macrosubstitution   ) 

Definition at line 196 of file test_config_cache.cpp.

References config::add_child(), gui2::cache, config::clear(), setup_test_config(), and test_data_path().

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( test_transaction   ) 

Definition at line 221 of file test_config_cache.cpp.

References config::add_child(), gui2::cache, config::clear(), game_config::config_cache_transaction::lock(), setup_test_config(), and test_data_path().

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( test_define_loading   ) 

Definition at line 254 of file test_config_cache.cpp.

References config::add_child(), gui2::cache, config::clear(), game_config::config_cache_transaction::lock(), setup_test_config(), and test_data_path().

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( test_non_clean_config_loading   ) 

Definition at line 174 of file test_config_cache.cpp.

References config::add_child(), gui2::cache, setup_test_config(), and test_data_path().

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( test_load_config   ) 

Definition at line 154 of file test_config_cache.cpp.

References config::add_child(), gui2::cache, config::child(), config::clear(), GETTEXT_DOMAIN, setup_test_config(), and test_data_path().

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( test_config_cache_defaults   ) 

Definition at line 127 of file test_config_cache.cpp.

References gui2::cache, game_config::config_cache::get_preproc_map(), test_config_cache::instance(), and setup_test_preproc_map().

Here is the call graph for this function:

static config setup_test_config (  )  [static]

Definition at line 142 of file test_config_cache.cpp.

References config::add_child().

Referenced by BOOST_AUTO_TEST_CASE().

Here is the call graph for this function:

Here is the caller graph for this function:

static preproc_map setup_test_preproc_map (  )  [static]

Definition at line 32 of file test_config_cache.cpp.

References game_config::small_gui, and game_config::wesnoth_version.

Referenced by BOOST_AUTO_TEST_CASE().

Here is the caller graph for this function:

const std::string test_data_path ( "data/test/test/_main.cfg"   ) 

Referenced by BOOST_AUTO_TEST_CASE().

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:10:38 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs