Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: device/bluetooth/test/bluetooth_test_bluez.h

Issue 1884033002: Implement BluetoothTestBlueZ and enable some LE tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « device/bluetooth/dbus/fake_bluetooth_device_client.cc ('k') | device/bluetooth/test/bluetooth_test_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698