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

Unified Diff: device/bluetooth/public/interfaces/test/fake_bluetooth.mojom

Issue 2867713008: bluetooth: Implement known_service_uuids for Peripherals. (Closed)
Patch Set: rebase Created 3 years, 7 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
« no previous file with comments | « device/bluetooth/public/interfaces/BUILD.gn ('k') | device/bluetooth/test/fake_central.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/public/interfaces/test/fake_bluetooth.mojom
diff --git a/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom b/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom
index 536842e502487e29ec6d09eec3117272e81b94ce..a9d71faed3b86028292d428c6ecfc4b466a837ec 100644
--- a/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom
+++ b/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom
@@ -4,6 +4,8 @@
module bluetooth.mojom;
+import "device/bluetooth/public/interfaces/uuid.mojom";
+
// FakeBluetooth and its related interfaces allow clients to control the global
// Bluetooth State as well as simulate Bluetooth events including finding new
// devices, simulating GATT attributes and its descendants, and simulating
@@ -38,13 +40,15 @@ interface FakeBluetooth {
// See Bluetooth 4.2 Vol 3 Part C 2.2.2 "Roles when Operating over an
// LE Physical Transport".
interface FakeCentral {
- // Simulates a peripheral with |address| and |name| that has already
- // been connected to the system. If the peripheral existed already it
- // updates its name.
+ // Simulates a peripheral with |address|, |name| and |known_service_uuids|
+ // that has already been connected to the system. If the peripheral existed
+ // already it updates its name and known UUIDs.
//
// Platforms offer methods to retrieve devices that have already been
// connected to the system or weren't connected through the UA e.g. a user
// connected a peripheral through the system's settings. This method is
// intended to simulate peripherals that those methods would return.
- SimulatePreconnectedPeripheral(string address, string name) => ();
+ SimulatePreconnectedPeripheral(string address,
+ string name,
+ array<UUID> known_service_uuids) => ();
};
« no previous file with comments | « device/bluetooth/public/interfaces/BUILD.gn ('k') | device/bluetooth/test/fake_central.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698