• 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_nearby_test'
7PURPOSE = 'Test basic Nearby share advertising requirements.'
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 with the specific format required
20for new Nearby sharing capabilities. Specifically, the format should be the
21following:
22
23Advertising data:
24    General discoverable flag
25    16 bit Google Service UUID
26
27Scan response data:
28    Service data for Google Service UUID
29"""
30
31def run(machine):
32    host = hosts.create_host(machine)
33    job.run_test('bluetooth_AdapterAdvHealth', host=host, num_iterations=1,
34                 test_name=NAME.split('.')[1], peer_required=False)
35
36parallel_simple(run, machines)
37