OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 #ifndef DEVICE_BLUETOOTH_TEST_FAKE_BLUETOOTH_H_ |
| 5 #define DEVICE_BLUETOOTH_TEST_FAKE_BLUETOOTH_H_ |
| 6 |
| 7 #include "device/bluetooth/bluetooth_export.h" |
| 8 #include "device/bluetooth/public/interfaces/test/fake_bluetooth.mojom.h" |
| 9 #include "mojo/public/cpp/bindings/binding.h" |
| 10 |
| 11 namespace bluetooth { |
| 12 |
| 13 // Implementation of FakeBluetooth in |
| 14 // src/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom. |
| 15 // Implemented on top of the C++ device/bluetooth API. |
| 16 class DEVICE_BLUETOOTH_EXPORT FakeBluetooth : public mojom::FakeBluetooth { |
| 17 public: |
| 18 FakeBluetooth(); |
| 19 ~FakeBluetooth() override; |
| 20 |
| 21 static void Create(mojom::FakeBluetoothRequest request); |
| 22 |
| 23 void SetLEAvailability(bool available, |
| 24 const SetLEAvailabilityCallback& callback) override; |
| 25 }; |
| 26 |
| 27 } // namespace bluetooth |
| 28 |
| 29 #endif // DEVICE_BLUETOOTH_TEST_FAKE_BLUETOOTH_H_ |
OLD | NEW |