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