crosvm/x86_64
Daniel Verkamp 4d834ea759 devices: cmos: add unit tests
Add a function pointer to Cmos::new() to retrieve the time so we can
test against fixed times in the tests.

BUG=None
TEST=cargo test -p devices cmos

Change-Id: I0ed73b8742c0fe85fa13541b6fef1b534d81c088
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3795010
Reviewed-by: Noah Gold <nkgold@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Tested-by: Daniel Verkamp <dverkamp@chromium.org>
2022-08-03 19:26:51 +00:00
..
src devices: cmos: add unit tests 2022-08-03 19:26:51 +00:00
Cargo.toml devices: cmos: add unit tests 2022-08-03 19:26:51 +00:00