The Battle for Wesnoth  1.13.11+dev
Classes | Functions
test_utils Namespace Reference


class  fake_display_manager
class  game_config_manager


game_displayget_fake_display (const int width, const int height)
 Gets a fake test display. More...
static bool match_english (const language_def &def)
const configget_test_config_ref ()
config get_test_config ()

Function Documentation

◆ get_fake_display()

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.

widthThe width of the display.
heightThe height of the display.
The display.

Definition at line 77 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(), gui2::dialogs::unit_test_mp_server_list(), and wesnoth_global_fixture::wesnoth_global_fixture().

◆ get_test_config()

config test_utils::get_test_config ( )

◆ get_test_config_ref()

const config & test_utils::get_test_config_ref ( )

◆ match_english()

static bool test_utils::match_english ( const language_def def)