[Core] Options to constrain Speculative Hold: SPECULATIVE_HOLD_ONE_KEY and SPECULATIVE_HOLD_FLOW_TERM. (#26099)

This commit is contained in:
Pascal Getreuer
2026-05-22 22:50:52 +01:00
committed by GitHub
parent 4b19065f7b
commit 9d47119457
13 changed files with 525 additions and 12 deletions
@@ -33,6 +33,10 @@ class KeyboardReportMatcher : public testing::MatcherInterface<report_keyboard_t
report_keyboard_t m_report;
};
inline testing::Matcher<report_keyboard_t&> KeyboardReport(const std::vector<uint8_t>& keys) {
return testing::MakeMatcher(new KeyboardReportMatcher(keys));
}
template <typename... Ts>
inline testing::Matcher<report_keyboard_t&> KeyboardReport(Ts... keys) {
return testing::MakeMatcher(new KeyboardReportMatcher({static_cast<uint8_t>(keys)...}));