#include <boost/test/unit_test.hpp>
#include "config.hpp"
#include "config_cache.hpp"
#include "gui/auxiliary/iterator/iterator.hpp"
#include "gui/widgets/label.hpp"
#include "gui/widgets/grid.hpp"
#include <sstream>
#include <typeinfo>
Go to the source code of this file.
Macros | |
#define | GETTEXT_DOMAIN "wesnoth-lib" |
Functions | |
static std::string | top_down_t_t_t_result () |
static std::string | bottom_up_t_t_t_result () |
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_iterator) | |
#define GETTEXT_DOMAIN "wesnoth-lib" |
Definition at line 16 of file iterator.cpp.
|
static |
Definition at line 107 of file iterator.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_iterator | ) |
Definition at line 264 of file iterator.cpp.
References game_config::config_cache::add_define(), game_config::config_cache::clear_defines(), lg::debug(), game_config::config_cache::instance(), lg::set_log_domain_severity(), test_control(), test_grid(), lg::timestamps(), and lg::warn().
|
static |
Definition at line 75 of file iterator.cpp.
Referenced by test_grid().
|
static |
Definition at line 169 of file iterator.cpp.
References test_control().
|
static |
Definition at line 125 of file iterator.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), test_control(), and test_grid().
|
static |
Definition at line 176 of file iterator.cpp.
References add_widget(), bottom_up_t_t_t_result(), g, gui2::widget::set_id(), test_control(), and top_down_t_t_t_result().
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 42 of file iterator.cpp.
Referenced by test_grid().