Classes | |
class | fake_display_manager |
class | game_config_manager |
Functions | |
game_display & | get_fake_display (const int width, const int height) |
Gets a fake test display. More... | |
static bool | match_english (const language_def &def) |
const config & | get_test_config_ref () |
config | get_test_config () |
template<class T > | |
bool | one_of (const T &val, int va_number,...) |
Used to check if first parameter matches one of given values used with BOOST_CHECK_PREDICATE. More... | |
game_display & test_utils::get_fake_display | ( | const int | width, |
const int | height | ||
) |
Gets a fake test display.
The width and height parameter are ignored if either of them is less than zero.
width | The width of the display. |
height | The height of the dislay. |
Definition at line 83 of file fake_display.cpp.
References test_utils::fake_display_manager::get_display(), test_utils::fake_display_manager::get_manager(), CVideo::make_test_fake(), and display::video().
Referenced by BOOST_AUTO_TEST_CASE(), mp_connect_fixture::mp_connect_fixture(), and wesnoth_global_fixture::wesnoth_global_fixture().
config test_utils::get_test_config | ( | ) |
Definition at line 123 of file game_config_manager.cpp.
References test_utils::game_config_manager::get_config_static().
Referenced by BOOST_AUTO_TEST_CASE().
const config & test_utils::get_test_config_ref | ( | ) |
Definition at line 118 of file game_config_manager.cpp.
References test_utils::game_config_manager::get_config_static().
Referenced by config_cache_fixture::config_cache_fixture().
|
static |
Definition at line 38 of file game_config_manager.cpp.
References language_def::localename.
Referenced by test_utils::game_config_manager::game_config_manager().
bool test_utils::one_of | ( | const T & | val, |
int | va_number, | ||
... | |||
) |
Used to check if first parameter matches one of given values used with BOOST_CHECK_PREDICATE.
Definition at line 27 of file predicate.hpp.
References i.