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

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

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
« no previous file with comments | « device/bluetooth/test/bluetooth_test.cc ('k') | device/bluetooth/test/mock_bluetooth_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/test/mock_bluetooth_device.h
diff --git a/device/bluetooth/test/mock_bluetooth_device.h b/device/bluetooth/test/mock_bluetooth_device.h
index fed356d63656a1123762b525dd809a379b34557b..54a3f033a8752fc8fb7a8196ce57de0def0236f4 100644
--- a/device/bluetooth/test/mock_bluetooth_device.h
+++ b/device/bluetooth/test/mock_bluetooth_device.h
@@ -11,6 +11,7 @@
#include "base/strings/string16.h"
#include "device/bluetooth/bluetooth_device.h"
#include "device/bluetooth/bluetooth_uuid.h"
+#include "device/bluetooth/test/mock_bluetooth_gatt_connection.h"
#include "device/bluetooth/test/mock_bluetooth_gatt_service.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -78,15 +79,23 @@ class MockBluetoothDevice : public BluetoothDevice {
void(const BluetoothUUID& uuid,
const ConnectToServiceCallback& callback,
const ConnectToServiceErrorCallback& error_callback));
- MOCK_METHOD2(CreateGattConnection,
- void(const GattConnectionCallback& callback,
- const ConnectErrorCallback& error_callback));
+ MOCK_METHOD2(CreateGattConnectionRaw,
+ device::MockBluetoothGattConnection*(
+ const GattConnectionCallback& callback,
+ const ConnectErrorCallback& error_callback));
MOCK_CONST_METHOD0(GetGattServices, std::vector<BluetoothGattService*>());
MOCK_CONST_METHOD1(GetGattService, BluetoothGattService*(const std::string&));
- MOCK_METHOD0(CreateGattConnectionImpl, void());
+ MOCK_METHOD0(CreateGattConnectionImplRaw,
+ device::MockBluetoothGattConnection*());
MOCK_METHOD0(DisconnectGatt, void());
+ scoped_ptr<device::BluetoothGattConnection> CreateGattConnection(
+ const GattConnectionCallback& callback,
+ const ConnectErrorCallback& error_callback);
+
+ scoped_ptr<device::BluetoothGattConnection> CreateGattConnectionImpl();
+
// BluetoothDevice manages the lifetime of its BluetoothGATTServices.
// This method takes ownership of the MockBluetoothGATTServices. This is only
// for convenience as far as testing is concerned, and it's possible to write
« no previous file with comments | « device/bluetooth/test/bluetooth_test.cc ('k') | device/bluetooth/test/mock_bluetooth_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698