Index: device/bluetooth/test/mock_bluetooth_gatt_characteristic.h |
diff --git a/device/bluetooth/test/mock_bluetooth_gatt_characteristic.h b/device/bluetooth/test/mock_bluetooth_gatt_characteristic.h |
index 7ffec2cab29477ac6005d3d7dc563ea5d2493715..d638bd5fca2b7412e9856156d501e7158d4b398f 100644 |
--- a/device/bluetooth/test/mock_bluetooth_gatt_characteristic.h |
+++ b/device/bluetooth/test/mock_bluetooth_gatt_characteristic.h |
@@ -49,6 +49,8 @@ class MockBluetoothGattCharacteristic |
MOCK_METHOD1(UpdateValue, bool(const std::vector<uint8_t>&)); |
MOCK_METHOD2(StartNotifySession, |
void(const NotifySessionCallback&, const ErrorCallback&)); |
+ MOCK_METHOD2(StopNotifySession, |
+ void(BluetoothGattNotifySession*, const base::Closure&)); |
MOCK_METHOD2(ReadRemoteCharacteristic, |
void(const ValueCallback&, const ErrorCallback&)); |
MOCK_METHOD3(WriteRemoteCharacteristic, |
@@ -56,6 +58,12 @@ class MockBluetoothGattCharacteristic |
const base::Closure&, |
const ErrorCallback&)); |
+ protected: |
+ MOCK_METHOD2(SubscribeToNotifications, |
+ void(const base::Closure&, const ErrorCallback&)); |
+ MOCK_METHOD2(UnsubscribeFromNotifications, |
+ void(const base::Closure&, const ErrorCallback&)); |
+ |
private: |
DISALLOW_COPY_AND_ASSIGN(MockBluetoothGattCharacteristic); |
}; |