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

Unified 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 side-by-side diff with in-line comments
Download patch
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..a6805d0b98d60ac34108ae15cf2678c5f7615603
--- /dev/null
+++ b/device/bluetooth/test/bluetooth_test_bluez.h
@@ -0,0 +1,40 @@
+// 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 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_
« 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