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 FakeBluetoothAdapterClient; | |
|
scheib
2016/04/15 19:44:45
AdapterClient doesn't seem used yet.
rkc
2016/04/15 20:26:06
Done.
| |
| 12 class FakeBluetoothDeviceClient; | |
| 13 } | |
| 14 | |
| 15 namespace device { | |
| 16 | |
| 17 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
| |
| 18 | |
| 19 // BlueZ implementation of BluetoothTestBase. | |
| 20 class BluetoothTestBlueZ : public BluetoothTestBase { | |
| 21 public: | |
| 22 BluetoothTestBlueZ(); | |
| 23 ~BluetoothTestBlueZ() override; | |
| 24 | |
| 25 // Test overrides: | |
| 26 void SetUp() override; | |
| 27 void TearDown() override; | |
| 28 | |
| 29 // BluetoothTestBase overrides: | |
| 30 bool PlatformSupportsLowEnergy() override; | |
| 31 void InitWithDefaultAdapter() override; | |
| 32 void InitWithFakeAdapter() override; | |
| 33 BluetoothDevice* DiscoverLowEnergyDevice(int device_ordinal) override; | |
| 34 | |
| 35 private: | |
| 36 bluez::FakeBluetoothDeviceClient* fake_bluetooth_device_client_; | |
| 37 }; | |
| 38 | |
| 39 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). | |
| 40 using BluetoothTest = BluetoothTestBlueZ; | |
| 41 | |
| 42 } // namespace device | |
| 43 | |
| 44 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_BLUEZ_H_ | |
| OLD | NEW |