Manually format develop (#15003)
This commit is contained in:
parent
ee371c1295
commit
92385e30cd
30 changed files with 595 additions and 523 deletions
|
@ -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_;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue