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

Unified Diff: device/bluetooth/dbus/fake_bluetooth_adapter_client.h

Issue 2084463002: BlueZ + DBus implementations of create/remove service record functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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_adapter_client.h
diff --git a/device/bluetooth/dbus/fake_bluetooth_adapter_client.h b/device/bluetooth/dbus/fake_bluetooth_adapter_client.h
index 77b553f0fac06c14a900ab68412db983c44c1cbf..678a9e446f26fbc45babd4dff967af335f3ac588 100644
--- a/device/bluetooth/dbus/fake_bluetooth_adapter_client.h
+++ b/device/bluetooth/dbus/fake_bluetooth_adapter_client.h
@@ -60,6 +60,14 @@ class DEVICE_BLUETOOTH_EXPORT FakeBluetoothAdapterClient
const DiscoveryFilter& discovery_filter,
const base::Closure& callback,
const ErrorCallback& error_callback) override;
+ void CreateServiceRecord(const dbus::ObjectPath& object_path,
+ const bluez::BluetoothServiceRecordBlueZ& record,
+ const ServiceRecordCallback& callback,
+ const ErrorCallback& error_callback) override;
+ void RemoveServiceRecord(const dbus::ObjectPath& object_path,
+ uint32_t handle,
+ const base::Closure& callback,
+ const ErrorCallback& error_callback) override;
// Sets the current simulation timeout interval.
void SetSimulationIntervalMs(int interval_ms);
@@ -117,6 +125,12 @@ class DEVICE_BLUETOOTH_EXPORT FakeBluetoothAdapterClient
// Current timeout interval used when posting delayed tasks.
int simulation_interval_ms_;
+
+ // Last used handle value issued for a service record.
+ uint32_t last_handle_;
+
+ // Service records manually registered with this adapter by handle.
+ std::map<uint32_t, BluetoothServiceRecordBlueZ> records_;
};
} // namespace bluez
« no previous file with comments | « device/bluetooth/dbus/bluetooth_agent_service_provider.cc ('k') | device/bluetooth/dbus/fake_bluetooth_adapter_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698