crosvm/sys_util
Miriam Zimmerman d3144f7a52 Add FakeClock and FakeTimerFd for use in tests.
Together, these allow tests to create a FakeTimerFd that they can
trigger at a particular point in the test code, without having to rely
on sleep()s or other racy methods.

BUG=None
TEST=Unit tests for FakeTimerFd + dependent CL.

Change-Id: I14381272a6d75bebcdedb0a329a017a2131a3482
Reviewed-on: https://chromium-review.googlesource.com/1413830
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Miriam Zimmerman <mutexlox@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: David Tolnay <dtolnay@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
2019-01-24 00:51:49 -08:00
..
poll_token_derive build: Restore ability to compile data_model and sys_util in isolation 2019-01-18 00:46:02 -08:00
src Add FakeClock and FakeTimerFd for use in tests. 2019-01-24 00:51:49 -08:00
Cargo.toml build: Restore ability to compile data_model and sys_util in isolation 2019-01-18 00:46:02 -08:00