Chromium Code Reviews| Index: device/bluetooth/test/bluetooth_test_bluez.h |
| diff --git a/device/bluetooth/test/bluetooth_test_bluez.h b/device/bluetooth/test/bluetooth_test_bluez.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..abbeb3aa9b0d9ca6384e476af282af80dedc89ac |
| --- /dev/null |
| +++ b/device/bluetooth/test/bluetooth_test_bluez.h |
| @@ -0,0 +1,44 @@ |
| +// Copyright 2015 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_BLUETOOTH_TEST_BLUEZ_H_ |
| +#define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_BLUEZ_H_ |
| + |
| +#include "device/bluetooth/test/bluetooth_test.h" |
| + |
| +namespace bluez { |
| +class FakeBluetoothAdapterClient; |
|
scheib
2016/04/15 19:44:45
AdapterClient doesn't seem used yet.
rkc
2016/04/15 20:26:06
Done.
|
| +class FakeBluetoothDeviceClient; |
| +} |
| + |
| +namespace device { |
| + |
| +class BluetoothAdapterProfileBlueZ; |
|
scheib
2016/04/15 19:44:45
I'm unsure what this is used for.
rkc
2016/04/15 20:26:06
Isn't. I was experimenting and forgot to remove.
D
|
| + |
| +// BlueZ implementation of BluetoothTestBase. |
| +class BluetoothTestBlueZ : public BluetoothTestBase { |
| + public: |
| + BluetoothTestBlueZ(); |
| + ~BluetoothTestBlueZ() override; |
| + |
| + // Test overrides: |
| + void SetUp() override; |
| + void TearDown() override; |
| + |
| + // BluetoothTestBase overrides: |
| + bool PlatformSupportsLowEnergy() override; |
| + void InitWithDefaultAdapter() override; |
| + void InitWithFakeAdapter() override; |
| + BluetoothDevice* DiscoverLowEnergyDevice(int device_ordinal) override; |
| + |
| + private: |
| + bluez::FakeBluetoothDeviceClient* fake_bluetooth_device_client_; |
| +}; |
| + |
| +// Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). |
| +using BluetoothTest = BluetoothTestBlueZ; |
| + |
| +} // namespace device |
| + |
| +#endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_BLUEZ_H_ |