Index: device/bluetooth/test/mock_bluetooth_device.cc |
diff --git a/device/bluetooth/test/mock_bluetooth_device.cc b/device/bluetooth/test/mock_bluetooth_device.cc |
index 9315ff545117ca28eed98621618057aa87d7a008..6a3e25bbff00b7d397db8b74b9ffd0c7860fcde2 100644 |
--- a/device/bluetooth/test/mock_bluetooth_device.cc |
+++ b/device/bluetooth/test/mock_bluetooth_device.cc |
@@ -88,4 +88,15 @@ BluetoothRemoteGattService* MockBluetoothDevice::GetMockService( |
return nullptr; |
} |
+void MockBluetoothDevice::PushPendingCallback(const base::Closure& callback) { |
+ pending_callbacks_.push(callback); |
+} |
+ |
+void MockBluetoothDevice::RunPendingCallbacks() { |
+ while (!pending_callbacks_.empty()) { |
+ pending_callbacks_.front().Run(); |
+ pending_callbacks_.pop(); |
+ } |
+} |
+ |
} // namespace device |