• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2019 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4from autotest_lib.client.cros.enterprise import enterprise_policy_base
5
6
7class policy_DeviceBootOnAcEnabled(
8        enterprise_policy_base.EnterprisePolicyTest):
9    """Test for setting the DeviceBootOnAcEnabled policy."""
10    version = 1
11    _POLICY = 'DeviceBootOnAcEnabled'
12
13
14    def run_once(self, case):
15        """
16        Entry point of this test.
17
18        @param case: True, False, or None for the value of the policy.
19
20        """
21        self.setup_case(device_policies={self._POLICY: case}, enroll=True)
22