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

Side by Side Diff: device/bluetooth/test/bluetooth_test.cc

Issue 1712593002: bluetooth: android: Confirm the notify session after the descriptor has been written. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Vincent's comments Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "device/bluetooth/test/bluetooth_test.h" 5 #include "device/bluetooth/test/bluetooth_test.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "device/bluetooth/bluetooth_adapter.h" 10 #include "device/bluetooth/bluetooth_adapter.h"
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 void BluetoothTestBase::ResetEventCounts() { 224 void BluetoothTestBase::ResetEventCounts() {
225 last_connect_error_code_ = BluetoothDevice::ERROR_UNKNOWN; 225 last_connect_error_code_ = BluetoothDevice::ERROR_UNKNOWN;
226 callback_count_ = 0; 226 callback_count_ = 0;
227 error_callback_count_ = 0; 227 error_callback_count_ = 0;
228 gatt_connection_attempts_ = 0; 228 gatt_connection_attempts_ = 0;
229 gatt_disconnection_attempts_ = 0; 229 gatt_disconnection_attempts_ = 0;
230 gatt_discovery_attempts_ = 0; 230 gatt_discovery_attempts_ = 0;
231 gatt_notify_characteristic_attempts_ = 0; 231 gatt_notify_characteristic_attempts_ = 0;
232 gatt_read_characteristic_attempts_ = 0; 232 gatt_read_characteristic_attempts_ = 0;
233 gatt_write_characteristic_attempts_ = 0; 233 gatt_write_characteristic_attempts_ = 0;
234 gatt_read_descriptor_attempts_ = 0;
234 gatt_write_descriptor_attempts_ = 0; 235 gatt_write_descriptor_attempts_ = 0;
235 } 236 }
236 237
237 } // namespace device 238 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698