| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 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 |
| 5 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_BLUEZ_H_ |
| 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_BLUEZ_H_ |
| 7 |
| 8 #include "device/bluetooth/test/bluetooth_test.h" |
| 9 |
| 10 namespace bluez { |
| 11 class FakeBluetoothDeviceClient; |
| 12 } |
| 13 |
| 14 namespace device { |
| 15 |
| 16 // BlueZ implementation of BluetoothTestBase. |
| 17 class BluetoothTestBlueZ : public BluetoothTestBase { |
| 18 public: |
| 19 BluetoothTestBlueZ(); |
| 20 ~BluetoothTestBlueZ() override; |
| 21 |
| 22 // Test overrides: |
| 23 void SetUp() override; |
| 24 void TearDown() override; |
| 25 |
| 26 // BluetoothTestBase overrides: |
| 27 bool PlatformSupportsLowEnergy() override; |
| 28 void InitWithFakeAdapter() override; |
| 29 BluetoothDevice* DiscoverLowEnergyDevice(int device_ordinal) override; |
| 30 |
| 31 private: |
| 32 bluez::FakeBluetoothDeviceClient* fake_bluetooth_device_client_; |
| 33 }; |
| 34 |
| 35 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). |
| 36 using BluetoothTest = BluetoothTestBlueZ; |
| 37 |
| 38 } // namespace device |
| 39 |
| 40 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_BLUEZ_H_ |
| OLD | NEW |