• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 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 = 'chromeos-bluetooth'
6NAME = 'bluetooth_AdapterAdvHealth.adv_broadcast_test'
7PURPOSE = 'Test broadcast advertising capabilities.'
8CRITERIA = 'Adapter should advertise with correct parameters.'
9ATTRIBUTES = 'suite:bluetooth, suite:bluetooth_standalone'
10TIME = 'SHORT'  # ~2 minutes on hatch
11MAX_RESULT_SIZE_KB = 128000
12TEST_CATEGORY = 'Functional'
13TEST_CLASS = 'bluetooth'
14TEST_TYPE = 'server'
15DEPENDENCIES = 'bluetooth'
16PY_VERSION = 3
17
18DOC = """
19Validate that we can register an advertisement that uses the 'broadcast' mode,
20which may configure alternate advertising intervals, and uses a random
21address.
22"""
23
24def run(machine):
25    host = hosts.create_host(machine)
26    job.run_test('bluetooth_AdapterAdvHealth', host=host, num_iterations=1,
27                 test_name=NAME.split('.')[1], peer_required=False)
28
29parallel_simple(run, machines)
30