1# Copyright (c) 2013 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 5AUTHOR = 'keybuk@chromium.org' 6NAME = 'bluetooth_Sanity_DefaultState' 7ATTRIBUTES = "suite:bluetooth, suite:bluetooth_sanity" 8SUITE = 'bluetooth,bluetooth_sanity' 9TIME = 'SHORT' 10TEST_CLASS = 'bluetooth' 11TEST_TYPE = 'Server' 12DEPENDENCIES = 'bluetooth,wificell' 13 14DOC = """ 15Verify that the device's Bluetooth adapter has the correct default state when 16reset to powered off, powered on, and powered back off again. 17 18This is a useful sanity check to ensure that the device state is what we 19expect, and that the device state returns to the initial state after a power 20cycle. 21 22This is also a security check that our devices are not discoverable unless we 23specifically set them to be. 24""" 25 26def run(machine): 27 device_host = hosts.create_host(machine) 28 job.run_test('bluetooth_Sanity_DefaultState', 29 device_host=device_host, 30 tester_host=None, 31 interactive=False) 32 33 34parallel_simple(run, machines) 35