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

Classes

class  game_config_manager
 

Functions

void set_test_resolution (const int width, const int height)
 Sets the dummy display resolution for use by the tests. More...
 
const configget_test_config_ref ()
 
config get_test_config ()
 

Function Documentation

◆ get_test_config()

config test_utils::get_test_config ( )

◆ get_test_config_ref()

const config & test_utils::get_test_config_ref ( )

◆ set_test_resolution()

void test_utils::set_test_resolution ( const int  width,
const int  height 
)

Sets the dummy display resolution for use by the tests.

The width and height parameter are ignored if either of them is less than zero.

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

Definition at line 41 of file fake_display.cpp.

References video::set_resolution().

Referenced by BOOST_AUTO_TEST_CASE(), and wesnoth_global_fixture::wesnoth_global_fixture().