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..0d59d239b10f4a1b05c9d9b712f25eec3006df4c |
| --- /dev/null |
| +++ b/device/bluetooth/test/bluetooth_test_bluez.h |
| @@ -0,0 +1,41 @@ |
| +// 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 FakeBluetoothDeviceClient; |
| +} |
| + |
| +namespace device { |
| + |
| +// 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; |
|
scheib
2016/04/15 21:20:40
Remove 'InitWithDefaultAdapter' since it isn't imp
rkc
2016/04/15 21:24:53
Done.
|
| + 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_ |