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