910e62b5创建于 1月15日历史提交
// 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/scoped_refptr.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_