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

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

Issue 2051333004: Implement BluetoothGattNotifySession::Stop on Android, 2nd attempt (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address new review comments Created 4 years, 4 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_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..021cc599bdc42861c9ccad9f5ca812fafb0f673e 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,16 @@ class MockBluetoothGattCharacteristic
const base::Closure&,
const ErrorCallback&));
+ protected:
+ MOCK_METHOD3(SubscribeToNotifications,
+ void(BluetoothRemoteGattDescriptor*,
+ const base::Closure&,
+ const ErrorCallback&));
+ MOCK_METHOD3(UnsubscribeFromNotifications,
+ void(BluetoothRemoteGattDescriptor*,
+ const base::Closure&,
+ const ErrorCallback&));
+
private:
DISALLOW_COPY_AND_ASSIGN(MockBluetoothGattCharacteristic);
};
« no previous file with comments | « device/bluetooth/test/bluetooth_test_android.cc ('k') | device/bluetooth/test/mock_bluetooth_gatt_notify_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698