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 <firstname.lastname@example.org>
Tested-by: Kirtika Ruchandani <email@example.com>
Reviewed-by: Kirtika Ruchandani <firstname.lastname@example.org>
7 files changed