autotest: Add time syncing logic for ADB hosts

On ADB hosts, the date command always complains about failure but works
anyway with the right arguments.  Adapt WiFiClient to expect this
behavior and customize sync_host_times to make sense for both WiFiClient
and the router/server.  Do this by delegating down to an implementation
specific layer.

TEST=network_WiFi_Powersave exercises this code and passes.
BUG=chromium:297998

Change-Id: I49c8987efbbd3037a32de0e8ee01cf2957041e51
Reviewed-on: https://chromium-review.googlesource.com/170561
Reviewed-by: Christopher Wiley <wiley@chromium.org>
Commit-Queue: Christopher Wiley <wiley@chromium.org>
Tested-by: Christopher Wiley <wiley@chromium.org>
5 files changed