libpolicy: Add checks for consumer devices in autoupdate policies

Make policies that affect autoupdate behavior check if the device is a
consumer device or an enterprise device. Consumer devices should not
be able to have those settings set. The following changes were made:
* Add IsEnterprisedEnrolled function to device policy.
* Add unit tests to check that policies return false when used in
consumer devices

BUG=chromium:871164
TEST=cros_workon_make libbrillo --test

Change-Id: I48fb72ac730e2285431a9548872c68124833a677
Reviewed-on: https://chromium-review.googlesource.com/1164561
Commit-Ready: Adolfo Higueros <adokar@google.com>
Tested-by: Adolfo Higueros <adokar@google.com>
Reviewed-by: Dan Erat <derat@chromium.org>
5 files changed