PM: Add a shill provider skeleton.
This introduces an initial implementation of a shill provider. None of
the backend works, of course; for now, this includes the following:
* Three variables used for obtaining the connectivity status, current
connection type and the last time the connection has changed. This
should suffice for computing current policy-related decisions, such as
whether/when to update depending on the connection type. However, as
I'm not entirely sure how to track the last-changed time, it might
change as the implementation ramps up. The variables are currently
initialized to a deterministic default.
* Unit tests for the existing (very minimal) functionality.
BUG=None
TEST=Builds and passes unit tests.
Change-Id: Ib4fcefb6bcbed43cd3ba7615de5eaad996fb7fb3
Reviewed-on: https://chromium-review.googlesource.com/184491
Reviewed-by: Alex Deymo <deymo@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
6 files changed