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

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

Issue 2858803003: bluetooth: Implement simulatePreconnectedPeripheral. (Closed)
Patch Set: Address moar feedback 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
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 826df33b68d5588e0cff8670e12fb4960864f641..536842e502487e29ec6d09eec3117272e81b94ce 100644
--- a/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom
+++ b/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom
@@ -38,4 +38,13 @@ 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.
+ //
+ // 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) => ();
dcheng 2017/05/05 06:18:48 Is there any structure to either of these fields?
ortuno 2017/05/08 01:08:13 They are MAC Address so "00:00:00:00:00:00".
dcheng 2017/05/09 04:20:07 Does this show up in other parts of the mojo inter
ortuno 2017/05/09 04:25:12 Besides Arc++, the only Bluetooth related Mojo int
};

Powered by Google App Engine
This is Rietveld 408576698