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

TEST=cros_workon_make libbrillo --test

Change-Id: I48fb72ac730e2285431a9548872c68124833a677
Commit-Ready: Adolfo Higueros <>
Tested-by: Adolfo Higueros <>
Reviewed-by: Dan Erat <>
5 files changed