// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_FACTORY_H_ #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_FACTORY_H_ #include "base/functional/callback.h" #include "base/gtest_prod_util.h" #include "base/memory/scoped_refptr.h" #include "base/memory/weak_ptr.h" #include "build/build_config.h" #include "device/bluetooth/bluetooth_adapter.h" #include "device/bluetooth/bluetooth_export.h" #if BUILDFLAG(IS_CHROMEOS) #include "mojo/public/cpp/bindings/pending_remote.h" #include "services/data_decoder/public/mojom/ble_scan_parser.mojom-forward.h" #endif // BUILDFLAG(IS_CHROMEOS) namespace device { // A factory class for building a Bluetooth adapter on platforms where Bluetooth // is available. // // Testing: Clients that want to specify their own return values for // BluetoothAdapterFactory's functions need to call InitValuesForTesting(). // If this function has been called, the Factory will return the specified // test values instead of the default values. // // Only IsLowEnergySupported uses ValuesForTesting. // TODO(crbug.com/40083385): Use ValuesForTesting for all functions. class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterFactory { … }; } // namespace device #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_FACTORY_H_