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

Unified Diff: chromeos/dbus/fake_bluetooth_device_client.h

Issue 206443009: chromeos/dbus: Add fake D-Bus clients for GATT client-mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased & Changed code to create LE device on simulation step 1 and update RSSI on following steps. Created 6 years, 9 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: chromeos/dbus/fake_bluetooth_device_client.h
diff --git a/chromeos/dbus/fake_bluetooth_device_client.h b/chromeos/dbus/fake_bluetooth_device_client.h
index c1699becec4a42cd95be1f6ac37773b2fe2429a3..827fdcb94cc3ec4b2aae46685c84edf161da6122 100644
--- a/chromeos/dbus/fake_bluetooth_device_client.h
+++ b/chromeos/dbus/fake_bluetooth_device_client.h
@@ -159,6 +159,11 @@ class CHROMEOS_EXPORT FakeBluetoothDeviceClient
static const char kJustWorksAddress[];
static const uint32 kJustWorksClass;
+ static const char kLowEnergyPath[];
+ static const char kLowEnergyName[];
+ static const char kLowEnergyAddress[];
+ static const uint32 kLowEnergyClass;
+
private:
// Property callback passed when we create Properties* structures.
void OnPropertyChanged(const dbus::ObjectPath& object_path,
@@ -187,6 +192,10 @@ class CHROMEOS_EXPORT FakeBluetoothDeviceClient
const dbus::ObjectPath& object_path,
Properties* properties);
+ // Updates the RSSI property of fake device with object path |object_path|
+ // to |rssi|, if the fake device exists.
+ void UpdateDeviceRSSI(const dbus::ObjectPath& object_path, int16 rssi);
+
void PinCodeCallback(
const dbus::ObjectPath& object_path,
const base::Closure& callback,

Powered by Google App Engine
This is Rietveld 408576698