android13/external/autotest/client/site_tests/policy_DeviceBootOnAcEnabled/policy_DeviceBootOnAcEnable...

22 lines
681 B
Python

# Copyright 2019 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from autotest_lib.client.cros.enterprise import enterprise_policy_base
class policy_DeviceBootOnAcEnabled(
enterprise_policy_base.EnterprisePolicyTest):
"""Test for setting the DeviceBootOnAcEnabled policy."""
version = 1
_POLICY = 'DeviceBootOnAcEnabled'
def run_once(self, case):
"""
Entry point of this test.
@param case: True, False, or None for the value of the policy.
"""
self.setup_case(device_policies={self._POLICY: case}, enroll=True)