Chromium Code Reviews| 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 |
|
scheib
2017/04/08 00:59:50
Now that bluetooth/test has a few parts in it, let
ortuno
2017/04/10 01:47:49
We already go into a lot of detail about the diffe
scheib
2017/04/10 21:52:31
At this point I think there's enough test specific
ortuno
2017/04/12 05:49:06
Moved all the testing bits to test/README.md
|
| +// 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_ |