Chromium Code Reviews| 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 InitWithDefaultAdapter() override; | |
|
scheib
2016/04/15 21:20:40
Remove 'InitWithDefaultAdapter' since it isn't imp
rkc
2016/04/15 21:24:53
Done.
| |
| 29 void InitWithFakeAdapter() override; | |
| 30 BluetoothDevice* DiscoverLowEnergyDevice(int device_ordinal) override; | |
| 31 | |
| 32 private: | |
| 33 bluez::FakeBluetoothDeviceClient* fake_bluetooth_device_client_; | |
| 34 }; | |
| 35 | |
| 36 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). | |
| 37 using BluetoothTest = BluetoothTestBlueZ; | |
| 38 | |
| 39 } // namespace device | |
| 40 | |
| 41 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_BLUEZ_H_ | |
| OLD | NEW |