Classes | Defines | Typedefs | Functions

tests/gui/test_drop_target.cpp File Reference

#include <boost/test/unit_test.hpp>
#include <boost/bind.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...

Defines

#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)

Define Documentation

#define GETTEXT_DOMAIN   "wesnoth-test"

Definition at line 16 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().

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( test_multiple_drop_groups   ) 

Definition at line 114 of file test_drop_target.cpp.

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

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( check_memory_leaks   ) 

Definition at line 109 of file test_drop_target.cpp.

References test_drop_target::empty().

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( test_create_drop_targets   ) 

Definition at line 74 of file test_drop_target.cpp.

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

Here is the call graph for this function:

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().

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:10:32 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs