KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_tool_dispatcher.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <tool/tool_dispatcher.h>
#include <tool/tool_manager.h>
#include <tool/tool_interactive.h>
#include <tool/action_menu.h>
#include <wx/display.h>
#include <wx/evtloop.h>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (LeadingEdgeAlwaysRuns)
 Tests for TOOL_DISPATCHER::ShouldDropAutoRepeat, the pure decision that discards backlogged OS key auto-repeat events delivered after a hotkey was released (issue 24540).
 
 BOOST_AUTO_TEST_CASE (HeldKeyRepeatsRun)
 
 BOOST_AUTO_TEST_CASE (StaleRepeatAfterReleaseDropped)
 
 BOOST_AUTO_TEST_CASE (SecondDeliberateTapRuns)
 
 BOOST_AUTO_TEST_CASE (DifferentKeyIsNewBurst)
 
 BOOST_AUTO_TEST_CASE (RightClickOpensMenuWhileEventLoopYields)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/6]

BOOST_AUTO_TEST_CASE ( DifferentKeyIsNewBurst )

Definition at line 90 of file test_tool_dispatcher.cpp.

References TOOL_DISPATCHER::ShouldDropAutoRepeat().

◆ BOOST_AUTO_TEST_CASE() [2/6]

BOOST_AUTO_TEST_CASE ( HeldKeyRepeatsRun )

Definition at line 53 of file test_tool_dispatcher.cpp.

References TOOL_DISPATCHER::ShouldDropAutoRepeat().

◆ BOOST_AUTO_TEST_CASE() [3/6]

BOOST_AUTO_TEST_CASE ( LeadingEdgeAlwaysRuns )

Tests for TOOL_DISPATCHER::ShouldDropAutoRepeat, the pure decision that discards backlogged OS key auto-repeat events delivered after a hotkey was released (issue 24540).

Definition at line 39 of file test_tool_dispatcher.cpp.

References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), and TOOL_DISPATCHER::ShouldDropAutoRepeat().

◆ BOOST_AUTO_TEST_CASE() [4/6]

◆ BOOST_AUTO_TEST_CASE() [5/6]

BOOST_AUTO_TEST_CASE ( SecondDeliberateTapRuns )

◆ BOOST_AUTO_TEST_CASE() [6/6]

BOOST_AUTO_TEST_CASE ( StaleRepeatAfterReleaseDropped )

Definition at line 64 of file test_tool_dispatcher.cpp.

References TOOL_DISPATCHER::ShouldDropAutoRepeat().