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

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

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_notify_session.cc
diff --git a/device/bluetooth/test/mock_bluetooth_gatt_notify_session.cc b/device/bluetooth/test/mock_bluetooth_gatt_notify_session.cc
index e4123f67741db1a75d06e85469e36288f1613452..4123e2d342dbaaca59093d62c1ff4ac8538de20e 100644
--- a/device/bluetooth/test/mock_bluetooth_gatt_notify_session.cc
+++ b/device/bluetooth/test/mock_bluetooth_gatt_notify_session.cc
@@ -11,9 +11,8 @@ using testing::Return;
namespace device {
MockBluetoothGattNotifySession::MockBluetoothGattNotifySession(
- const std::string& characteristic_identifier) {
- ON_CALL(*this, GetCharacteristicIdentifier())
- .WillByDefault(Return(characteristic_identifier));
+ base::WeakPtr<BluetoothRemoteGattCharacteristic> characteristic)
+ : BluetoothGattNotifySession(characteristic) {
ON_CALL(*this, IsActive()).WillByDefault(Return(true));
}

Powered by Google App Engine
This is Rietveld 408576698