• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2017 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.
4
5from autotest_lib.server import utils
6from autotest_lib.server.cros.bluetooth import advertisements_data
7
8
9AUTHOR = 'rjahagir'
10NAME = 'bluetooth_AdapterSuspendResume'
11PURPOSE = 'Test bluetooth adapter state with suspending and resuming DUT.'
12CRITERIA = 'Adapter should power on or off with correct parameters.'
13ATTRIBUTES = 'suite:bluetooth, suite:bluetooth_sanity'
14TIME = 'SHORT'
15TEST_CATEGORY = 'Functional'
16TEST_CLASS = 'bluetooth'
17TEST_TYPE = 'server'
18DEPENDENCIES = 'bluetooth'
19
20DOC = """
21This test case verifies that the Bluetooth adapter of the DUT can
22behave normally when subjected to suspending and resuming the DUT.
23
24This autotest include the following test cases:
25     self.test_case_adapter_on_SR()
26     self.test_case_adapter_off_SR()
27"""
28
29args_dict = utils.args_to_dict(args)
30
31def run(machine):
32    host = hosts.create_host(machine)
33    job.run_test('bluetooth_AdapterSuspendResume',
34                 host=host)
35
36parallel_simple(run, machines)
37