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

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

Issue 2394683007: Reland "components/arc: implement multi advertising" (Closed)
Patch Set: Created 4 years, 2 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_le_advertising_manager_client.h
diff --git a/device/bluetooth/dbus/fake_bluetooth_le_advertising_manager_client.h b/device/bluetooth/dbus/fake_bluetooth_le_advertising_manager_client.h
index bd7826f42d263846c40053f98a994e369ade7f8f..ee5431160f54964ba8fe31b70cf994611f2ffc4a 100644
--- a/device/bluetooth/dbus/fake_bluetooth_le_advertising_manager_client.h
+++ b/device/bluetooth/dbus/fake_bluetooth_le_advertising_manager_client.h
@@ -61,6 +61,10 @@ class DEVICE_BLUETOOTH_EXPORT FakeBluetoothLEAdvertisingManagerClient
FakeBluetoothLEAdvertisementServiceProvider* GetAdvertisementServiceProvider(
const std::string& uuid);
+ int currently_registered() { return currently_registered_.size(); }
+
+ enum : size_t { kMaxBluezAdvertisements = 5 };
+
private:
// Map of a D-Bus object path to the FakeBluetoothAdvertisementServiceProvider
// registered for it; maintained by RegisterAdvertisementServiceProvider() and
@@ -71,9 +75,8 @@ class DEVICE_BLUETOOTH_EXPORT FakeBluetoothLEAdvertisingManagerClient
ServiceProviderMap;
ServiceProviderMap service_provider_map_;
- // Holds the currently registered advertisement. If there is no advertisement
- // registered, this path is empty.
- dbus::ObjectPath currently_registered_;
+ // Holds currently registered advertisements.
+ std::vector<dbus::ObjectPath> currently_registered_;
DISALLOW_COPY_AND_ASSIGN(FakeBluetoothLEAdvertisingManagerClient);
};

Powered by Google App Engine
This is Rietveld 408576698