OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
6 #include "chrome/browser/extensions/extension_apitest.h" | 6 #include "chrome/browser/extensions/extension_apitest.h" |
7 #include "chrome/browser/extensions/extension_test_message_listener.h" | |
8 #include "device/bluetooth/test/mock_bluetooth_adapter.h" | 7 #include "device/bluetooth/test/mock_bluetooth_adapter.h" |
9 #include "device/bluetooth/test/mock_bluetooth_device.h" | 8 #include "device/bluetooth/test/mock_bluetooth_device.h" |
10 #include "device/bluetooth/test/mock_bluetooth_gatt_characteristic.h" | 9 #include "device/bluetooth/test/mock_bluetooth_gatt_characteristic.h" |
11 #include "device/bluetooth/test/mock_bluetooth_gatt_connection.h" | 10 #include "device/bluetooth/test/mock_bluetooth_gatt_connection.h" |
12 #include "device/bluetooth/test/mock_bluetooth_gatt_descriptor.h" | 11 #include "device/bluetooth/test/mock_bluetooth_gatt_descriptor.h" |
13 #include "device/bluetooth/test/mock_bluetooth_gatt_notify_session.h" | 12 #include "device/bluetooth/test/mock_bluetooth_gatt_notify_session.h" |
14 #include "device/bluetooth/test/mock_bluetooth_gatt_service.h" | 13 #include "device/bluetooth/test/mock_bluetooth_gatt_service.h" |
15 #include "extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_api.h
" | 14 #include "extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_api.h
" |
16 #include "extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event
_router.h" | 15 #include "extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event
_router.h" |
17 #include "extensions/common/test_util.h" | 16 #include "extensions/common/test_util.h" |
| 17 #include "extensions/test/extension_test_message_listener.h" |
18 #include "extensions/test/result_catcher.h" | 18 #include "extensions/test/result_catcher.h" |
19 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
20 | 20 |
21 using device::BluetoothUUID; | 21 using device::BluetoothUUID; |
22 using device::BluetoothAdapter; | 22 using device::BluetoothAdapter; |
23 using device::BluetoothDevice; | 23 using device::BluetoothDevice; |
24 using device::BluetoothGattCharacteristic; | 24 using device::BluetoothGattCharacteristic; |
25 using device::BluetoothGattConnection; | 25 using device::BluetoothGattConnection; |
26 using device::BluetoothGattDescriptor; | 26 using device::BluetoothGattDescriptor; |
27 using device::BluetoothGattService; | 27 using device::BluetoothGattService; |
(...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1269 event_router()->GattCharacteristicRemoved(mock_adapter_, chrc2_.get()); | 1269 event_router()->GattCharacteristicRemoved(mock_adapter_, chrc2_.get()); |
1270 event_router()->GattCharacteristicRemoved(mock_adapter_, chrc1_.get()); | 1270 event_router()->GattCharacteristicRemoved(mock_adapter_, chrc1_.get()); |
1271 event_router()->GattCharacteristicRemoved(mock_adapter_, chrc0_.get()); | 1271 event_router()->GattCharacteristicRemoved(mock_adapter_, chrc0_.get()); |
1272 event_router()->GattServiceRemoved( | 1272 event_router()->GattServiceRemoved( |
1273 mock_adapter_, device0_.get(), service1_.get()); | 1273 mock_adapter_, device0_.get(), service1_.get()); |
1274 event_router()->GattServiceRemoved( | 1274 event_router()->GattServiceRemoved( |
1275 mock_adapter_, device0_.get(), service0_.get()); | 1275 mock_adapter_, device0_.get(), service0_.get()); |
1276 } | 1276 } |
1277 | 1277 |
1278 } // namespace | 1278 } // namespace |
OLD | NEW |