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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energ
y_api.h" | |
11 #include "chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energ
y_event_router.h" | |
12 #include "chrome/browser/extensions/extension_apitest.h" | 10 #include "chrome/browser/extensions/extension_apitest.h" |
13 #include "device/bluetooth/test/mock_bluetooth_adapter.h" | 11 #include "device/bluetooth/test/mock_bluetooth_adapter.h" |
14 #include "device/bluetooth/test/mock_bluetooth_device.h" | 12 #include "device/bluetooth/test/mock_bluetooth_device.h" |
15 #include "device/bluetooth/test/mock_bluetooth_gatt_characteristic.h" | 13 #include "device/bluetooth/test/mock_bluetooth_gatt_characteristic.h" |
16 #include "device/bluetooth/test/mock_bluetooth_gatt_connection.h" | 14 #include "device/bluetooth/test/mock_bluetooth_gatt_connection.h" |
17 #include "device/bluetooth/test/mock_bluetooth_gatt_descriptor.h" | 15 #include "device/bluetooth/test/mock_bluetooth_gatt_descriptor.h" |
18 #include "device/bluetooth/test/mock_bluetooth_gatt_notify_session.h" | 16 #include "device/bluetooth/test/mock_bluetooth_gatt_notify_session.h" |
19 #include "device/bluetooth/test/mock_bluetooth_gatt_service.h" | 17 #include "device/bluetooth/test/mock_bluetooth_gatt_service.h" |
| 18 #include "extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_api.h
" |
| 19 #include "extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event
_router.h" |
20 #include "extensions/common/test_util.h" | 20 #include "extensions/common/test_util.h" |
21 #include "extensions/test/extension_test_message_listener.h" | 21 #include "extensions/test/extension_test_message_listener.h" |
22 #include "extensions/test/result_catcher.h" | 22 #include "extensions/test/result_catcher.h" |
23 #include "testing/gmock/include/gmock/gmock.h" | 23 #include "testing/gmock/include/gmock/gmock.h" |
24 | 24 |
25 using device::BluetoothUUID; | 25 using device::BluetoothUUID; |
26 using device::BluetoothAdapter; | 26 using device::BluetoothAdapter; |
27 using device::BluetoothDevice; | 27 using device::BluetoothDevice; |
28 using device::BluetoothRemoteGattCharacteristic; | 28 using device::BluetoothRemoteGattCharacteristic; |
29 using device::BluetoothGattConnection; | 29 using device::BluetoothGattConnection; |
(...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1358 EXPECT_TRUE(listener.WaitUntilSatisfied()); | 1358 EXPECT_TRUE(listener.WaitUntilSatisfied()); |
1359 | 1359 |
1360 listener.Reply("go"); | 1360 listener.Reply("go"); |
1361 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); | 1361 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); |
1362 | 1362 |
1363 event_router()->GattServiceRemoved(mock_adapter_, device0_.get(), | 1363 event_router()->GattServiceRemoved(mock_adapter_, device0_.get(), |
1364 service0_.get()); | 1364 service0_.get()); |
1365 } | 1365 } |
1366 | 1366 |
1367 } // namespace | 1367 } // namespace |
OLD | NEW |