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

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

Issue 2737343003: bluetooth: Add FakeBluetooth interface (Closed)
Patch Set: Add all the READMEs! Created 3 years, 8 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
new file mode 100644
index 0000000000000000000000000000000000000000..dc3802c9e68aa7ae25349d10d51c1e3aa5515f29
--- /dev/null
+++ b/device/bluetooth/public/interfaces/test/fake_bluetooth.mojom
@@ -0,0 +1,21 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module bluetooth.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
+// success and error responses.
+
+// FakeBluetooth allows clients to control the global Bluetooth state.
+interface FakeBluetooth {
+ // Set it to indicate whether a Bluetooth radio (capable of BLE) is available
+ // on the user's system. Not to be confused with Bluetooth support. For
+ // example, Windows 7 is a platform that doesn't support BLE so LE
+ // Availability would be irrelevant. Windows 10 on the other hand does support
+ // Low Energy so LE Availability depends on whether or not a Bluetooth Radio
+ // is present on the machine.
+ SetLEAvailability(bool available) => ();
+};

Powered by Google App Engine
This is Rietveld 408576698