|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <vector>#include <tool/action_manager.h>#include <tool/selection.h>#include <tool/selection_conditions.h>#include <tool/tool_action.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (UserBoundDetection_DefaultUntouched) | |
| BOOST_AUTO_TEST_CASE (UserBoundDetection_CustomValue) | |
| BOOST_AUTO_TEST_CASE (UserBoundDetection_IdentityRebindIsIndistinguishable) | |
| BOOST_AUTO_TEST_CASE (UserBoundDetection_AltSlotIndependent) | |
| BOOST_AUTO_TEST_CASE (UserBoundDetection_SharedDefaultCollisionPreserved) | |
| BOOST_AUTO_TEST_CASE (Promotion_UserBoundFrameActionWins) | |
| BOOST_AUTO_TEST_CASE (Promotion_OtherFrameLeavesOrderUnchanged) | |
| BOOST_AUTO_TEST_CASE (Promotion_DefaultBindingLeavesOrderUnchanged) | |
| BOOST_AUTO_TEST_CASE (HotkeyCondition_FallsBackToEnableWhenUnset) | |
| BOOST_AUTO_TEST_CASE (HotkeyCondition_DivergesFromEnableWhenSet) | |
| BOOST_AUTO_TEST_CASE | ( | HotkeyCondition_DivergesFromEnableWhenSet | ) |
Definition at line 171 of file test_action_manager.cpp.
References empty(), ACTION_CONDITIONS::Enable(), ACTION_CONDITIONS::enableCondition, ACTION_CONDITIONS::GetHotkeyCondition(), ACTION_CONDITIONS::HotkeyEnable(), and SELECTION_CONDITIONS::NotEmpty().
| BOOST_AUTO_TEST_CASE | ( | HotkeyCondition_FallsBackToEnableWhenUnset | ) |
Definition at line 158 of file test_action_manager.cpp.
References empty(), ACTION_CONDITIONS::Enable(), ACTION_CONDITIONS::enableCondition, ACTION_CONDITIONS::GetHotkeyCondition(), and SELECTION_CONDITIONS::NotEmpty().
| BOOST_AUTO_TEST_CASE | ( | Promotion_DefaultBindingLeavesOrderUnchanged | ) |
Definition at line 138 of file test_action_manager.cpp.
References AS_GLOBAL, BOOST_CHECK_EQUAL(), FRAME_PCB_EDITOR, and ACTION_MANAGER::PromoteUserBoundFrameAction().
| BOOST_AUTO_TEST_CASE | ( | Promotion_OtherFrameLeavesOrderUnchanged | ) |
Definition at line 116 of file test_action_manager.cpp.
References AS_GLOBAL, BOOST_CHECK_EQUAL(), FRAME_SCH, ACTION_MANAGER::PromoteUserBoundFrameAction(), and TOOL_ACTION::SetHotKey().
| BOOST_AUTO_TEST_CASE | ( | Promotion_UserBoundFrameActionWins | ) |
Definition at line 93 of file test_action_manager.cpp.
References AS_GLOBAL, BOOST_CHECK_EQUAL(), FRAME_PCB_EDITOR, ACTION_MANAGER::PromoteUserBoundFrameAction(), and TOOL_ACTION::SetHotKey().
| BOOST_AUTO_TEST_CASE | ( | UserBoundDetection_AltSlotIndependent | ) |
Definition at line 62 of file test_action_manager.cpp.
References AS_GLOBAL, TOOL_ACTION::IsHotKeyUserBound(), and TOOL_ACTION::SetHotKey().
| BOOST_AUTO_TEST_CASE | ( | UserBoundDetection_CustomValue | ) |
Definition at line 39 of file test_action_manager.cpp.
References AS_GLOBAL, TOOL_ACTION::IsHotKeyUserBound(), and TOOL_ACTION::SetHotKey().
| BOOST_AUTO_TEST_CASE | ( | UserBoundDetection_DefaultUntouched | ) |
Definition at line 31 of file test_action_manager.cpp.
References AS_GLOBAL, BOOST_AUTO_TEST_CASE(), and TOOL_ACTION::IsHotKeyUserBound().
| BOOST_AUTO_TEST_CASE | ( | UserBoundDetection_IdentityRebindIsIndistinguishable | ) |
Definition at line 50 of file test_action_manager.cpp.
References AS_GLOBAL, TOOL_ACTION::IsHotKeyUserBound(), and TOOL_ACTION::SetHotKey().
| BOOST_AUTO_TEST_CASE | ( | UserBoundDetection_SharedDefaultCollisionPreserved | ) |
Definition at line 73 of file test_action_manager.cpp.
References AS_GLOBAL, and TOOL_ACTION::IsHotKeyUserBound().