• 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_flaky'
10TIME = 'SHORT'  # ~2 minutes on hatch
11MAX_RESULT_SIZE_KB = 128000
12TEST_CATEGORY = 'Functional'
13TEST_CLASS = 'bluetooth'
14TEST_TYPE = 'server'
15DEPENDENCIES = 'bluetooth'
16
17DOC = """
18Validate that we can register an advertisement with the specific format required
19for new Nearby sharing capabilities. Specifically, the format should be the
20following:
21
22Advertising data:
23    General discoverable flag
24    16 bit Google Service UUID
25
26Scan response data:
27    Service data for Google Service UUID
28"""
29
30def run(machine):
31    host = hosts.create_host(machine)
32    job.run_test('bluetooth_AdapterAdvHealth', host=host, num_iterations=1,
33                 test_name=NAME.split('.')[1], peer_required=False)
34
35parallel_simple(run, machines)
36