| Index: device/bluetooth/test/fake_bluetooth.h
|
| diff --git a/device/bluetooth/test/fake_bluetooth.h b/device/bluetooth/test/fake_bluetooth.h
|
| index 83e4bb480998e6f845f764f9b1f5ca48d71db461..7006071bbed48e7269d398d7579da568f5f15c59 100644
|
| --- a/device/bluetooth/test/fake_bluetooth.h
|
| +++ b/device/bluetooth/test/fake_bluetooth.h
|
| @@ -7,13 +7,14 @@
|
| #include "base/compiler_specific.h"
|
| #include "device/bluetooth/bluetooth_adapter_factory.h"
|
| #include "device/bluetooth/public/interfaces/test/fake_bluetooth.mojom.h"
|
| -#include "mojo/public/cpp/bindings/binding.h"
|
| +#include "device/bluetooth/test/fake_central.h"
|
|
|
| namespace bluetooth {
|
|
|
| // Implementation of FakeBluetooth in
|
| // src/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom.
|
| -// Implemented on top of the C++ device/bluetooth API.
|
| +// Implemented on top of the C++ device/bluetooth API, mainly
|
| +// device/bluetooth/bluetooth_adapter_factory.h.
|
| class FakeBluetooth : NON_EXPORTED_BASE(public mojom::FakeBluetooth) {
|
| public:
|
| FakeBluetooth();
|
| @@ -23,10 +24,13 @@ class FakeBluetooth : NON_EXPORTED_BASE(public mojom::FakeBluetooth) {
|
|
|
| void SetLESupported(bool available,
|
| const SetLESupportedCallback& callback) override;
|
| + void SimulateCentral(mojom::CentralState state,
|
| + const SimulateCentralCallback& callback) override;
|
|
|
| private:
|
| std::unique_ptr<device::BluetoothAdapterFactory::GlobalValuesForTesting>
|
| global_factory_values_;
|
| + scoped_refptr<FakeCentral> fake_central_;
|
| };
|
|
|
| } // namespace bluetooth
|
|
|