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 #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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 return base::Bind(&BluetoothTestBase::ConnectErrorCallback, | 98 return base::Bind(&BluetoothTestBase::ConnectErrorCallback, |
99 weak_factory_.GetWeakPtr()); | 99 weak_factory_.GetWeakPtr()); |
100 } | 100 } |
101 | 101 |
102 void BluetoothTestBase::ResetEventCounts() { | 102 void BluetoothTestBase::ResetEventCounts() { |
103 last_connect_error_code_ = BluetoothDevice::ERROR_UNKNOWN; | 103 last_connect_error_code_ = BluetoothDevice::ERROR_UNKNOWN; |
104 callback_count_ = 0; | 104 callback_count_ = 0; |
105 error_callback_count_ = 0; | 105 error_callback_count_ = 0; |
106 gatt_connection_attempts_ = 0; | 106 gatt_connection_attempts_ = 0; |
107 gatt_disconnection_attempts_ = 0; | 107 gatt_disconnection_attempts_ = 0; |
| 108 gatt_discovery_attempts_ = 0; |
108 } | 109 } |
109 | 110 |
110 } // namespace device | 111 } // namespace device |
OLD | NEW |