power: Add wrapper class for wake up alarms API on Chrome OS

Desktop / Chromium - Abhishek Bhardwaj [chromium.org] - 23 February 2019 09:23 EST

This change adds a class that makes the wake up alarm D-Bus API on Chrome OS easy to use by clients. The D-Bus API was merged in aec92f8bb5b58c4d654522d8550d53e3e24a8345.

BUG=chromium:913318 TEST=Unit tests and end-to-end alarms via ARC++ applications.

Change-Id: I045af2c6ffbf93b3d44ac09ca217159fcdae18fe Reviewed-on: https://chromium-review.googlesource.com/c/1372848 Commit-Queue: Abhishek Bhardwaj

66f6323ff88a power: Add wrapper class for wake up alarms API on Chrome OS
chromeos/dbus/BUILD.gn | 3 +
chromeos/dbus/fake_power_manager_client.cc | 7 +
chromeos/dbus/native_timer.cc | 239 +++++++++++++++++++++++++++++
chromeos/dbus/native_timer.h | 102 ++++++++++++
chromeos/dbus/native_timer_unittest.cc | 109 +++++++++++++
5 files changed, 460 insertions(+)

Upstream: git.chromium.org


  • Share