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

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

Issue 2499913002: bluetooth: android: Implement RetrieveGattConnectedDevicesWithFilter
Patch Set: rebase Created 4 years 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
« no previous file with comments | « device/bluetooth/test/bluetooth_test.h ('k') | device/bluetooth/test/bluetooth_test_android.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 ++expected_error_callback_calls_; 359 ++expected_error_callback_calls_;
360 return base::Bind( 360 return base::Bind(
361 &BluetoothTestBase::ReentrantStartNotifySessionErrorCallback, 361 &BluetoothTestBase::ReentrantStartNotifySessionErrorCallback,
362 weak_factory_.GetWeakPtr(), expected, characteristic, error_in_reentrant); 362 weak_factory_.GetWeakPtr(), expected, characteristic, error_in_reentrant);
363 } 363 }
364 364
365 void BluetoothTestBase::ResetEventCounts() { 365 void BluetoothTestBase::ResetEventCounts() {
366 last_connect_error_code_ = BluetoothDevice::ERROR_UNKNOWN; 366 last_connect_error_code_ = BluetoothDevice::ERROR_UNKNOWN;
367 callback_count_ = 0; 367 callback_count_ = 0;
368 error_callback_count_ = 0; 368 error_callback_count_ = 0;
369 manager_get_connected_devices_attempts_ = 0;
369 gatt_connection_attempts_ = 0; 370 gatt_connection_attempts_ = 0;
370 gatt_disconnection_attempts_ = 0; 371 gatt_disconnection_attempts_ = 0;
371 gatt_discovery_attempts_ = 0; 372 gatt_discovery_attempts_ = 0;
372 gatt_notify_characteristic_attempts_ = 0; 373 gatt_notify_characteristic_attempts_ = 0;
373 gatt_read_characteristic_attempts_ = 0; 374 gatt_read_characteristic_attempts_ = 0;
374 gatt_write_characteristic_attempts_ = 0; 375 gatt_write_characteristic_attempts_ = 0;
375 gatt_read_descriptor_attempts_ = 0; 376 gatt_read_descriptor_attempts_ = 0;
376 gatt_write_descriptor_attempts_ = 0; 377 gatt_write_descriptor_attempts_ = 0;
377 } 378 }
378 379
379 void BluetoothTestBase::RemoveTimedOutDevices() { 380 void BluetoothTestBase::RemoveTimedOutDevices() {
380 adapter_->RemoveTimedOutDevices(); 381 adapter_->RemoveTimedOutDevices();
381 } 382 }
382 383
383 } // namespace device 384 } // namespace device
OLDNEW
« no previous file with comments | « device/bluetooth/test/bluetooth_test.h ('k') | device/bluetooth/test/bluetooth_test_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698