| Index: device/bluetooth/test/fake_bluetooth.h
|
| diff --git a/device/bluetooth/test/fake_bluetooth.h b/device/bluetooth/test/fake_bluetooth.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..654d6097c7de7176f2d4ecabac4004b7b908006d
|
| --- /dev/null
|
| +++ b/device/bluetooth/test/fake_bluetooth.h
|
| @@ -0,0 +1,29 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +#ifndef DEVICE_BLUETOOTH_TEST_FAKE_BLUETOOTH_H_
|
| +#define DEVICE_BLUETOOTH_TEST_FAKE_BLUETOOTH_H_
|
| +
|
| +#include "base/compiler_specific.h"
|
| +#include "device/bluetooth/public/interfaces/test/fake_bluetooth.mojom.h"
|
| +#include "mojo/public/cpp/bindings/binding.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.
|
| +class FakeBluetooth : NON_EXPORTED_BASE(public mojom::FakeBluetooth) {
|
| + public:
|
| + FakeBluetooth();
|
| + ~FakeBluetooth() override;
|
| +
|
| + static void Create(mojom::FakeBluetoothRequest request);
|
| +
|
| + void SetLEAvailability(bool available,
|
| + const SetLEAvailabilityCallback& callback) override;
|
| +};
|
| +
|
| +} // namespace bluetooth
|
| +
|
| +#endif // DEVICE_BLUETOOTH_TEST_FAKE_BLUETOOTH_H_
|
|
|