You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### Problem
Only the higher-level `System::Layer` timer operations had tests;
the utility classes in `system/SystemTimer.h` had no unit tests,
and a recent refactor (project-chip#12628) introduced a bug that a proper unit
test would have caught.
Fixesproject-chip#12729 Add unit tests for SystemTimer.h
#### Change overview
What's in this PR
- Add tests covering `TimerData`, `TimeList`, and `TimerPool`.
- Changed these helpers to take a `Timestamp` rather than a `Timeout`.
- Fixed `TimerList::Remove(Node*)` to allow an empty list or null
argument (matching its description).
#### Testing
Quis custodiet ipsos custodes?
#### Problem
Only the higher-level `System::Layer` timer operations had tests;
the utility classes in `system/SystemTimer.h` had no unit tests,
and a recent refactor (#12628) introduced a bug that a proper unit
test would have caught.
Fixes#12729 Add unit tests for SystemTimer.h
#### Change overview
What's in this PR
- Add tests covering `TimerData`, `TimeList`, and `TimerPool`.
- Changed these helpers to take a `Timestamp` rather than a `Timeout`.
- Fixed `TimerList::Remove(Node*)` to allow an empty list or null
argument (matching its description).
#### Testing
Quis custodiet ipsos custodes?
Problem
Recent refactoring exposed new classes that aren't unit tested (and in fact contained at least one trivial bug #12723).
Proposed Solution
Add unit tests.
The text was updated successfully, but these errors were encountered: