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

Unified Diff: chromeos/dbus/fake_bluetooth_device_client.h

Issue 183853010: Bluetooth: notify user of incoming pairing requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fit nits, add unit tests dep Created 6 years, 10 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: chromeos/dbus/fake_bluetooth_device_client.h
diff --git a/chromeos/dbus/fake_bluetooth_device_client.h b/chromeos/dbus/fake_bluetooth_device_client.h
index b228a1163bfd2b0c7f893c433482211d21fef04f..e3eed05f7ba7c87d8b856b6e29debde225e6a475 100644
--- a/chromeos/dbus/fake_bluetooth_device_client.h
+++ b/chromeos/dbus/fake_bluetooth_device_client.h
@@ -76,6 +76,10 @@ class CHROMEOS_EXPORT FakeBluetoothDeviceClient
void BeginDiscoverySimulation(const dbus::ObjectPath& adapter_path);
void EndDiscoverySimulation(const dbus::ObjectPath& adapter_path);
+ // Simulates incoming pairing of devices for the given adapter.
+ void BeginIncomingPairingSimulation(const dbus::ObjectPath& adapter_path);
+ void EndIncomingPairingSimulation(const dbus::ObjectPath& adapter_path);
+
// Creates a device from the set we return for the given adapter.
void CreateDevice(const dbus::ObjectPath& adapter_path,
const dbus::ObjectPath& device_path);
@@ -161,6 +165,7 @@ class CHROMEOS_EXPORT FakeBluetoothDeviceClient
const std::string& property_name);
void DiscoverySimulationTimer();
+ void IncomingPairingSimulationTimer();
void CompleteSimulatedPairing(
const dbus::ObjectPath& object_path,
@@ -226,6 +231,7 @@ class CHROMEOS_EXPORT FakeBluetoothDeviceClient
int simulation_interval_ms_;
uint32_t discovery_simulation_step_;
+ uint32_t incoming_pairing_simulation_step_;
bool pairing_cancelled_;
};

Powered by Google App Engine
This is Rietveld 408576698