blob: f5ecf111e9b7fb5c9b95d87d78e00aa3c8c520cc [file] [log] [blame]
# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Validate that we can register an advertisement with the specific format
# required for new Nearby sharing capabilities. Specifically, the format should
# be the following:
#
# Advertising data:
# General discoverable flag
# 128 bit Google Service UUID
#
# Scan response data:
# Service data for Google Service UUID
#
# Purpose: Test basic Nearby share advertising requirements.
# Deprecated variables:
# TIME = 'SHORT' # ~2 minutes on hatch
# TEST_CATEGORY = 'Functional'
NAME = 'bluetooth_AdapterAdvHealth.adv_nearby_test.floss'
METADATA = {
'contacts': ['chromeos-bt-team@google.com'],
# ChromeOS > Platform > Connectivity > Bluetooth
'bug_component': 'b:167317',
'criteria': 'Adapter should advertise with correct parameters.',
'hw_agnostic': False,
'requirements': ['bt-gen-0001-v01'],
}
ATTRIBUTES = 'suite:bluetooth_floss'
MAX_RESULT_SIZE_KB = 128000
TEST_TYPE = 'server'
DEPENDENCIES = 'bluetooth_state:NORMAL'
def run(machine):
host = hosts.create_host(machine)
job.run_test('bluetooth_AdapterAdvHealth', host=host, num_iterations=1,
tag='.'.join(NAME.split('.')[1:]),
test_name=NAME.split('.')[1], peer_required=False, floss=True)
parallel_simple(run, machines)