#include <boost/test/unit_test.hpp>
#include "utils/functional.hpp"
#include "sdl/rect.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... | |
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) | |
#define GETTEXT_DOMAIN "wesnoth-test" |
Definition at line 15 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_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 |
Definition at line 64 of file test_drop_target.cpp.
Referenced by BOOST_AUTO_TEST_CASE().