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

Unified Diff: device/bluetooth/dbus/fake_bluetooth_device_client.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/dbus/fake_bluetooth_device_client.h
diff --git a/device/bluetooth/dbus/fake_bluetooth_device_client.h b/device/bluetooth/dbus/fake_bluetooth_device_client.h
index d6618a0862a519dc25541f6ecb6016c739baee0f..7479bd75a3ff112793ef92d698ab21093a926acc 100644
--- a/device/bluetooth/dbus/fake_bluetooth_device_client.h
+++ b/device/bluetooth/dbus/fake_bluetooth_device_client.h
@@ -147,6 +147,17 @@ class DEVICE_BLUETOOTH_EXPORT FakeBluetoothDeviceClient
uint16_t transmit_power,
uint16_t max_transmit_power);
+ // Test specific functions:
+ // Remove all test devices from this client.
+ void RemoveAllDevices();
+
+ // Create a test Bluetooth LE device with the given properties.
+ void CreateTestDevice(const dbus::ObjectPath& adapter_path,
+ const std::string name,
+ const std::string alias,
+ const std::string device_address,
+ const std::vector<std::string>& service_uuids);
+
void set_delay_start_discovery(bool value) { delay_start_discovery_ = value; }
static const char kTestPinCode[];
« no previous file with comments | « device/bluetooth/bluetooth_adapter_unittest.cc ('k') | device/bluetooth/dbus/fake_bluetooth_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698