diff options
author | QMK Bot <hello@qmk.fm> | 2021-11-17 12:28:38 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-18 07:28:38 +1100 |
commit | 2c5d66987da4c7d5857cab8b09c4f852b4d8e4d9 (patch) | |
tree | 3ddc4f2cc572c632a0027d31d6e3e86af03591bc /quantum/debounce/tests/debounce_test_common.h | |
parent | b06740c933c63a8f82e0a7112f9eeab9bd93687a (diff) |
Format code according to conventions (#15193)
Diffstat (limited to 'quantum/debounce/tests/debounce_test_common.h')
-rw-r--r-- | quantum/debounce/tests/debounce_test_common.h | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/quantum/debounce/tests/debounce_test_common.h b/quantum/debounce/tests/debounce_test_common.h index d87e310594..b7becb3782 100644 --- a/quantum/debounce/tests/debounce_test_common.h +++ b/quantum/debounce/tests/debounce_test_common.h @@ -31,36 +31,34 @@ enum Direction { }; class MatrixTestEvent { -public: + public: MatrixTestEvent(int row, int col, Direction direction); - const int row_; - const int col_; + const int row_; + const int col_; const Direction direction_; }; class DebounceTestEvent { -public: + public: // 0, {{0, 1, DOWN}}, {{0, 1, DOWN}}) - DebounceTestEvent(fast_timer_t time, - std::initializer_list<MatrixTestEvent> inputs, - std::initializer_list<MatrixTestEvent> outputs); + DebounceTestEvent(fast_timer_t time, std::initializer_list<MatrixTestEvent> inputs, std::initializer_list<MatrixTestEvent> outputs); - const fast_timer_t time_; + const fast_timer_t time_; const std::list<MatrixTestEvent> inputs_; const std::list<MatrixTestEvent> outputs_; }; class DebounceTest : public ::testing::Test { -protected: + protected: void addEvents(std::initializer_list<DebounceTestEvent> events); void runEvents(); fast_timer_t time_offset_ = 7777; - bool time_jumps_ = false; + bool time_jumps_ = false; -private: - static bool directionValue(Direction direction); + private: + static bool directionValue(Direction direction); static std::string directionLabel(Direction direction); void runEventsInternal(); @@ -78,6 +76,6 @@ private: matrix_row_t cooked_matrix_[MATRIX_ROWS]; matrix_row_t output_matrix_[MATRIX_ROWS]; - int extra_iterations_; + int extra_iterations_; bool auto_advance_time_; }; |