#include <boost/test/unit_test.hpp>
#include "config_cache.hpp"
#include "gui/auxiliary/iterator/walker.hpp"
#include "gui/widgets/label.hpp"
#include "gui/widgets/grid.hpp"
#include <typeinfo>
Go to the source code of this file.
Macros | |
#define | GETTEXT_DOMAIN "wesnoth-lib" |
Functions | |
static void | add_widget (gui2::grid &grid, std::unique_ptr< gui2::widget > widget, const std::string &id, const unsigned row, const unsigned column) |
template<class T > | |
static void | test_control (T &&control) |
static void | test_control () |
static void | test_grid () |
BOOST_AUTO_TEST_CASE (test_gui2_visitor) | |
#define GETTEXT_DOMAIN "wesnoth-lib" |
Definition at line 16 of file visitor.cpp.
|
static |
Definition at line 27 of file visitor.cpp.
References gui2::grid::HORIZONTAL_GROW_SEND_TO_CLIENT, gui2::grid::set_child(), and gui2::grid::VERTICAL_GROW_SEND_TO_CLIENT.
Referenced by test_grid().
BOOST_AUTO_TEST_CASE | ( | test_gui2_visitor | ) |
Definition at line 151 of file visitor.cpp.
References game_config::config_cache::add_define(), game_config::config_cache::clear_defines(), game_config::config_cache::instance(), test_control(), and test_grid().
|
static |
Definition at line 82 of file visitor.cpp.
References test_control().
|
static |
Definition at line 45 of file visitor.cpp.
References gui2::iteration::walker_base::child, gui2::iteration::walker_base::fail, gui2::iteration::walker_base::internal, gui2::iteration::walker_base::invalid, and gui2::iteration::walker_base::self.
Referenced by BOOST_AUTO_TEST_CASE(), test_control(), and test_grid().
|
static |
Definition at line 88 of file visitor.cpp.
References add_widget(), gui2::iteration::walker_base::child, gui2::grid::create_walker(), gui2::iteration::walker_base::fail, gui2::iteration::walker_base::invalid, test_control(), and gui2::iteration::walker_base::valid.
Referenced by BOOST_AUTO_TEST_CASE().