The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Macros | Typedefs | Functions
test_drop_target.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "utils/functional.hpp"
#include "sdl/rect.hpp"
#include "sdl/utils.hpp"
#include "widgets/drop_target.hpp"
Include dependency graph for test_drop_target.cpp:

Go to the source code of this file.

Classes

class  test_drop_target
 Specialized testing class so unit test can call protected member functions to simulate drop operation. More...
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-test"
 

Typedefs

typedef std::vector
< gui::drop_target_ptr
target_store
 

Functions

 BOOST_AUTO_TEST_CASE (test_create_group)
 
static void create_drop_targets (const SDL_Rect &loc, gui::drop_group_manager_ptr group, target_store &targets, int &id_counter)
 
 BOOST_AUTO_TEST_CASE (test_create_drop_targets)
 
 BOOST_AUTO_TEST_CASE (check_memory_leaks)
 
 BOOST_AUTO_TEST_CASE (test_multiple_drop_groups)
 

Macro Definition Documentation

#define GETTEXT_DOMAIN   "wesnoth-test"

Definition at line 15 of file test_drop_target.cpp.

Typedef Documentation

typedef std::vector<gui::drop_target_ptr> target_store

Definition at line 62 of file test_drop_target.cpp.

Function Documentation

BOOST_AUTO_TEST_CASE ( test_create_group  )

Definition at line 45 of file test_drop_target.cpp.

References gui::drop_group_manager::get_group_id().

BOOST_AUTO_TEST_CASE ( test_create_drop_targets  )

Definition at line 74 of file test_drop_target.cpp.

References create_drop_targets(), and sdl::create_rect().

BOOST_AUTO_TEST_CASE ( check_memory_leaks  )

Definition at line 109 of file test_drop_target.cpp.

References test_drop_target::empty().

BOOST_AUTO_TEST_CASE ( test_multiple_drop_groups  )

Definition at line 114 of file test_drop_target.cpp.

References create_drop_targets(), and sdl::create_rect().

static void create_drop_targets ( const SDL_Rect &  loc,
gui::drop_group_manager_ptr  group,
target_store targets,
int id_counter 
)
static

Definition at line 64 of file test_drop_target.cpp.

Referenced by BOOST_AUTO_TEST_CASE().