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

Unified Diff: device/bluetooth/test/mock_bluetooth_device.cc

Issue 1341103004: Handle change of BLE address after pairing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ***ADDED BY MISTAKE, OMMIT *** Created 5 years, 3 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/test/mock_bluetooth_device.cc
diff --git a/device/bluetooth/test/mock_bluetooth_device.cc b/device/bluetooth/test/mock_bluetooth_device.cc
index 3fbfaadad745a1b4b0ffd9dd5078889e59c2d281..fb38b7ee4e675a655e4646f69f85345b9749ef45 100644
--- a/device/bluetooth/test/mock_bluetooth_device.cc
+++ b/device/bluetooth/test/mock_bluetooth_device.cc
@@ -60,6 +60,22 @@ MockBluetoothDevice::MockBluetoothDevice(MockBluetoothAdapter* adapter,
MockBluetoothDevice::~MockBluetoothDevice() {}
+scoped_ptr<device::BluetoothGattConnection>
+MockBluetoothDevice::CreateGattConnection(
+ const GattConnectionCallback& callback,
+ const ConnectErrorCallback& error_callback) {
+ return scoped_ptr<device::BluetoothGattConnection>(
+ CreateGattConnectionRaw(callback, error_callback))
+ .Pass();
+}
+
+scoped_ptr<device::BluetoothGattConnection>
+MockBluetoothDevice::CreateGattConnectionImpl() {
+ return scoped_ptr<device::BluetoothGattConnection>(
+ CreateGattConnectionImplRaw())
+ .Pass();
+}
+
void MockBluetoothDevice::AddMockService(
scoped_ptr<MockBluetoothGattService> mock_service) {
mock_services_.push_back(mock_service.Pass());
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_device.h ('k') | device/bluetooth/test/mock_bluetooth_gatt_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698