#include <boost/test/unit_test.hpp>#include <boost/bind.hpp>#include "sdl_utils.hpp"#include "widgets/drop_target.hpp"
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 GETTEXT_DOMAIN "wesnoth-test" |
Definition at line 16 of file test_drop_target.cpp.
| typedef std::vector<gui::drop_target_ptr> target_store |
Definition at line 62 of file test_drop_target.cpp.
| 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_multiple_drop_groups | ) |
Definition at line 114 of file test_drop_target.cpp.
References create_drop_targets(), and gui2::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_create_drop_targets | ) |
Definition at line 74 of file test_drop_target.cpp.
References create_drop_targets(), and gui2::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().

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