diff options
| author | QMK Bot <hello@qmk.fm> | 2022-02-12 10:29:31 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-12 18:29:31 +0000 |
| commit | 63646e8906e062d1c1de3925cba70c4e3426a855 (patch) | |
| tree | 4e91648b77b838e1125cf86331d7e84bde6d07a9 /tests/test_common/keyboard_report_util.cpp | |
| parent | afcdd7079c774dec2aa4b7f2d08adf8b7310919b (diff) | |
Format code according to conventions (#16322)
Diffstat (limited to 'tests/test_common/keyboard_report_util.cpp')
| -rw-r--r-- | tests/test_common/keyboard_report_util.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/test_common/keyboard_report_util.cpp b/tests/test_common/keyboard_report_util.cpp index e148c76beb..7908e64f7f 100644 --- a/tests/test_common/keyboard_report_util.cpp +++ b/tests/test_common/keyboard_report_util.cpp | |||
| @@ -36,7 +36,7 @@ std::vector<uint8_t> get_keys(const report_keyboard_t& report) { | |||
| 36 | std::sort(result.begin(), result.end()); | 36 | std::sort(result.begin(), result.end()); |
| 37 | return result; | 37 | return result; |
| 38 | } | 38 | } |
| 39 | } // namespace | 39 | } // namespace |
| 40 | 40 | ||
| 41 | bool operator==(const report_keyboard_t& lhs, const report_keyboard_t& rhs) { | 41 | bool operator==(const report_keyboard_t& lhs, const report_keyboard_t& rhs) { |
| 42 | auto lhskeys = get_keys(lhs); | 42 | auto lhskeys = get_keys(lhs); |
| @@ -72,8 +72,14 @@ KeyboardReportMatcher::KeyboardReportMatcher(const std::vector<uint8_t>& keys) { | |||
| 72 | } | 72 | } |
| 73 | } | 73 | } |
| 74 | 74 | ||
| 75 | bool KeyboardReportMatcher::MatchAndExplain(report_keyboard_t& report, MatchResultListener* listener) const { return m_report == report; } | 75 | bool KeyboardReportMatcher::MatchAndExplain(report_keyboard_t& report, MatchResultListener* listener) const { |
| 76 | return m_report == report; | ||
| 77 | } | ||
| 76 | 78 | ||
| 77 | void KeyboardReportMatcher::DescribeTo(::std::ostream* os) const { *os << "is equal to " << m_report; } | 79 | void KeyboardReportMatcher::DescribeTo(::std::ostream* os) const { |
| 80 | *os << "is equal to " << m_report; | ||
| 81 | } | ||
| 78 | 82 | ||
| 79 | void KeyboardReportMatcher::DescribeNegationTo(::std::ostream* os) const { *os << "is not equal to " << m_report; } | 83 | void KeyboardReportMatcher::DescribeNegationTo(::std::ostream* os) const { |
| 84 | *os << "is not equal to " << m_report; | ||
| 85 | } | ||
