1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
content / public / test / bluetooth_test_utils.h [blame]
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_PUBLIC_TEST_BLUETOOTH_TEST_UTILS_H_
#define CONTENT_PUBLIC_TEST_BLUETOOTH_TEST_UTILS_H_
#include "base/memory/ref_counted.h"
namespace device {
class BluetoothAdapter;
}
namespace content {
// Configure the BluetoothAdapter which will be returned by
// BluetoothAdapterFactoryWrapper::GetAdapter().
void SetBluetoothAdapter(scoped_refptr<device::BluetoothAdapter> adapter);
// Configure WebBluetoothServiceImpl to not clear its advertisement clients
// lists when the window loses focus or becomes hidden or occluded, to avoid
// flakiness in browser tests.
void IgnoreBluetoothVisibilityRequirementsForTesting();
} // namespace content
#endif // CONTENT_PUBLIC_TEST_BLUETOOTH_TEST_UTILS_H_