shill: refactor WakeOnWiFi
A future CL will refactor WiFi to take WakeOnWiFi as a dependency
rather than instantiating it during the constructor, so that we
can avoid making SimpleAlarmTimers when there is no message loop
in tests. Since MockWakeOnWiFi inherits from the real WakeOnWiFi,
it would still instantiate SimpleAlarmTimers on construction.
This means we should factor out the public interface and have
both implementations inherit from that instead.
Commit-Ready: Kirtika Ruchandani <email@example.com>
Tested-by: Kirtika Ruchandani <firstname.lastname@example.org>
Reviewed-by: Kirtika Ruchandani <email@example.com>
7 files changed