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

Unified Diff: content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc

Issue 2051333004: Implement BluetoothGattNotifySession::Stop on Android, 2nd attempt (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make the rest of the methods in BluetoothGattNotifySession virtual Created 4 years, 5 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: content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
diff --git a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
index 1c7714cdf817f2ce1c8b1f0127b851ad48d2306a..cf3c95ff99e3fdaf48b2a71d5ef55635d834e359 100644
--- a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
+++ b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
@@ -904,7 +904,7 @@ LayoutTestBluetoothAdapterProvider::GetHeartRateService(
.WillByDefault(RunCallbackWithResult<0 /* success_callback */>(
[adapter, measurement_ptr]() {
std::unique_ptr<NiceMockBluetoothGattNotifySession> notify_session(
- GetBaseGATTNotifySession(measurement_ptr->GetIdentifier()));
+ GetBaseGATTNotifySession(measurement_ptr->GetWeakPtr()));
std::vector<uint8_t> rate(1 /* size */);
rate[0] = 60;
@@ -1015,9 +1015,9 @@ LayoutTestBluetoothAdapterProvider::GetErrorCharacteristic(
// static
std::unique_ptr<NiceMockBluetoothGattNotifySession>
LayoutTestBluetoothAdapterProvider::GetBaseGATTNotifySession(
- const std::string& characteristic_identifier) {
+ base::WeakPtr<device::BluetoothRemoteGattCharacteristic> characteristic) {
std::unique_ptr<NiceMockBluetoothGattNotifySession> session(
- new NiceMockBluetoothGattNotifySession(characteristic_identifier));
+ new NiceMockBluetoothGattNotifySession(characteristic));
ON_CALL(*session, Stop(_))
.WillByDefault(testing::DoAll(

Powered by Google App Engine
This is Rietveld 408576698