| OLD | NEW |
| 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 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_H_ | 5 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_H_ |
| 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_H_ | 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 BluetoothRemoteGattCharacteristic* characteristic); | 364 BluetoothRemoteGattCharacteristic* characteristic); |
| 365 base::Callback<void(BluetoothGattService::GattErrorCode)> | 365 base::Callback<void(BluetoothGattService::GattErrorCode)> |
| 366 GetReentrantStartNotifySessionErrorCallback( | 366 GetReentrantStartNotifySessionErrorCallback( |
| 367 Call expected, | 367 Call expected, |
| 368 BluetoothRemoteGattCharacteristic* characteristic, | 368 BluetoothRemoteGattCharacteristic* characteristic, |
| 369 bool error_in_reentrant); | 369 bool error_in_reentrant); |
| 370 | 370 |
| 371 // Reset all event count members to 0. | 371 // Reset all event count members to 0. |
| 372 void ResetEventCounts(); | 372 void ResetEventCounts(); |
| 373 | 373 |
| 374 void RemoveTimedOutDevices(); |
| 375 |
| 374 // A Message loop is required by some implementations that will PostTasks and | 376 // A Message loop is required by some implementations that will PostTasks and |
| 375 // by base::RunLoop().RunUntilIdle() use in this fixture. | 377 // by base::RunLoop().RunUntilIdle() use in this fixture. |
| 376 base::MessageLoop message_loop_; | 378 base::MessageLoop message_loop_; |
| 377 | 379 |
| 378 scoped_refptr<BluetoothAdapter> adapter_; | 380 scoped_refptr<BluetoothAdapter> adapter_; |
| 379 ScopedVector<BluetoothDiscoverySession> discovery_sessions_; | 381 ScopedVector<BluetoothDiscoverySession> discovery_sessions_; |
| 380 ScopedVector<BluetoothGattConnection> gatt_connections_; | 382 ScopedVector<BluetoothGattConnection> gatt_connections_; |
| 381 enum BluetoothDevice::ConnectErrorCode last_connect_error_code_ = | 383 enum BluetoothDevice::ConnectErrorCode last_connect_error_code_ = |
| 382 BluetoothDevice::ERROR_UNKNOWN; | 384 BluetoothDevice::ERROR_UNKNOWN; |
| 383 ScopedVector<BluetoothGattNotifySession> notify_sessions_; | 385 ScopedVector<BluetoothGattNotifySession> notify_sessions_; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 404 int actual_error_callback_calls_ = 0; | 406 int actual_error_callback_calls_ = 0; |
| 405 bool unexpected_success_callback_ = false; | 407 bool unexpected_success_callback_ = false; |
| 406 bool unexpected_error_callback_ = false; | 408 bool unexpected_error_callback_ = false; |
| 407 | 409 |
| 408 base::WeakPtrFactory<BluetoothTestBase> weak_factory_; | 410 base::WeakPtrFactory<BluetoothTestBase> weak_factory_; |
| 409 }; | 411 }; |
| 410 | 412 |
| 411 } // namespace device | 413 } // namespace device |
| 412 | 414 |
| 413 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_H_ | 415 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_H_ |
| OLD | NEW |