EX-Display
EX-Display
Loading...
Searching...
No Matches
test_DebounceHoldInput.cpp File Reference
#include "test/mocks/MockButtonInput.h"
#include "test/mocks/MockCallback.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
Include dependency graph for test_DebounceHoldInput.cpp:

Classes

class  DebounceHoldInputTests
 Test harness for inputs utilising debounce and hold options. More...
 

Functions

 TEST_F (DebounceHoldInputTests, TestSingleInputAction)
 Test case for a single press with no time advance.
 
 TEST_F (DebounceHoldInputTests, TestDebouncedAction)
 Test case for a press that should be debounced.
 
 TEST_F (DebounceHoldInputTests, TestHoldAction)
 Test case for a button hold.
 
 TEST_F (DebounceHoldInputTests, TestBouncyInput)
 Test to validate debounce correctly ignores bouncy inputs.
 

Function Documentation

◆ TEST_F() [1/4]

TEST_F ( DebounceHoldInputTests  ,
TestBouncyInput   
)

Test to validate debounce correctly ignores bouncy inputs.

Here is the call graph for this function:

◆ TEST_F() [2/4]

TEST_F ( DebounceHoldInputTests  ,
TestDebouncedAction   
)

Test case for a press that should be debounced.

Here is the call graph for this function:

◆ TEST_F() [3/4]

TEST_F ( DebounceHoldInputTests  ,
TestHoldAction   
)

Test case for a button hold.

Here is the call graph for this function:

◆ TEST_F() [4/4]

TEST_F ( DebounceHoldInputTests  ,
TestSingleInputAction   
)

Test case for a single press with no time advance.