Chromium Code Reviews| Index: device/bluetooth/public/interfaces/test/fake_bluetooth.mojom |
| diff --git a/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom b/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom |
| index 3ac2e80111de624cae06223d242c9205ea1bf6c9..9fe85e9853230bd6a604c59d0309ebcb94563bfc 100644 |
| --- a/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom |
| +++ b/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom |
| @@ -9,6 +9,13 @@ module bluetooth.mojom; |
| // devices, simulating GATT attributes and its descendants, and simulating |
| // success and error responses. |
| +// Indicates the various states of LECentralObserverManager. |
| +enum LECentralObserverManagerState { |
| + ABSENT, |
| + POWERED_ON, |
| + POWERED_OFF, |
| +}; |
| + |
| // FakeBluetooth allows clients to control the global Bluetooth state. |
| interface FakeBluetooth { |
| // Set it to indicate whether the platform supports BLE. For example, Windows |
| @@ -16,4 +23,21 @@ interface FakeBluetooth { |
| // 10 is a platform that does support LE, even if there is no Bluetooth radio |
| // available. |
| SetLESupported(bool available) => (); |
| + |
| + // Initializes a fake LECentralObserverManager with |state| as the initial |
| + // state. |
| + SimulateLECentralObserverManager(LECentralObserverManagerState state) |
| + => (FakeLECentralObserverManager fake_manager); |
| +}; |
| + |
| +// FakeLECentralObserverManager allows clients to simulate events that a device |
|
scheib
2017/04/29 02:07:52
This name is... hard. I don't have a better name y
ortuno
2017/05/01 06:09:04
Currently we have an Adapter class that exposes al
scheib
2017/05/01 18:16:59
Splitting SGTM
ortuno
2017/05/02 01:14:10
I agree on most points. I think Splitting Central/
|
| +// in the Central/Observer role would receive as well as monitor the operations |
| +// performed by the device in the Central/Observer role. |
| +// |
| +// An LECentralObserverManger would allow its clients to perform the operations |
| +// and receive events for two roles defined by the Bluetooth Spec: Observer and |
| +// Central. |
| +// See Bluetooth 4.2 Vol 3 Part C 2.2.2 "Roles when Operation over |
| +// an LE Physical Transport". |
| +interface FakeLECentralObserverManager { |
| }; |