The Battle for Wesnoth  1.19.5+dev
Macros | Functions
iterator.cpp File Reference
#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>
Include dependency graph for iterator.cpp:

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)
 

Macro Definition Documentation

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 16 of file iterator.cpp.

Function Documentation

◆ add_widget()

static void add_widget ( gui2::grid grid,
std::unique_ptr< gui2::widget widget,
const std::string &  id,
const unsigned  row,
const unsigned  column 
)
static

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( test_gui2_iterator  )

◆ bottom_up_t_t_t_result()

static std::string bottom_up_t_t_t_result ( )
static

Definition at line 75 of file iterator.cpp.

Referenced by test_grid().

◆ test_control() [1/2]

static void test_control ( )
static

Definition at line 169 of file iterator.cpp.

References test_control().

◆ test_control() [2/2]

template<class T >
static void test_control ( T &&  control)
static

Definition at line 125 of file iterator.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), test_control(), and test_grid().

◆ test_grid()

static void test_grid ( )
static

◆ top_down_t_t_t_result()

static std::string top_down_t_t_t_result ( )
static

Definition at line 42 of file iterator.cpp.

Referenced by test_grid().