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

Side by Side Diff: extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc

Issue 420663003: Extensions: Move bluetooth APIs to extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android, gn Created 6 years, 3 months 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 | Annotate | Revision Log
OLDNEW
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/api/bluetooth_low_energy/bluetooth_low_energ y_api.h"
7 #include "chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energ y_event_router.h"
8 #include "chrome/browser/extensions/extension_apitest.h" 6 #include "chrome/browser/extensions/extension_apitest.h"
9 #include "chrome/browser/extensions/extension_function_test_utils.h" 7 #include "chrome/browser/extensions/extension_function_test_utils.h"
10 #include "chrome/browser/extensions/extension_test_message_listener.h" 8 #include "chrome/browser/extensions/extension_test_message_listener.h"
11 #include "device/bluetooth/test/mock_bluetooth_adapter.h" 9 #include "device/bluetooth/test/mock_bluetooth_adapter.h"
12 #include "device/bluetooth/test/mock_bluetooth_device.h" 10 #include "device/bluetooth/test/mock_bluetooth_device.h"
13 #include "device/bluetooth/test/mock_bluetooth_gatt_characteristic.h" 11 #include "device/bluetooth/test/mock_bluetooth_gatt_characteristic.h"
14 #include "device/bluetooth/test/mock_bluetooth_gatt_connection.h" 12 #include "device/bluetooth/test/mock_bluetooth_gatt_connection.h"
15 #include "device/bluetooth/test/mock_bluetooth_gatt_descriptor.h" 13 #include "device/bluetooth/test/mock_bluetooth_gatt_descriptor.h"
16 #include "device/bluetooth/test/mock_bluetooth_gatt_notify_session.h" 14 #include "device/bluetooth/test/mock_bluetooth_gatt_notify_session.h"
17 #include "device/bluetooth/test/mock_bluetooth_gatt_service.h" 15 #include "device/bluetooth/test/mock_bluetooth_gatt_service.h"
16 #include "extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_api.h "
17 #include "extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event _router.h"
18 #include "testing/gmock/include/gmock/gmock.h" 18 #include "testing/gmock/include/gmock/gmock.h"
19 19
20 using device::BluetoothUUID; 20 using device::BluetoothUUID;
21 using device::BluetoothAdapter; 21 using device::BluetoothAdapter;
22 using device::BluetoothDevice; 22 using device::BluetoothDevice;
23 using device::BluetoothGattCharacteristic; 23 using device::BluetoothGattCharacteristic;
24 using device::BluetoothGattConnection; 24 using device::BluetoothGattConnection;
25 using device::BluetoothGattDescriptor; 25 using device::BluetoothGattDescriptor;
26 using device::BluetoothGattService; 26 using device::BluetoothGattService;
27 using device::BluetoothGattNotifySession; 27 using device::BluetoothGattNotifySession;
(...skipping 1246 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 event_router()->GattCharacteristicRemoved(mock_adapter_, chrc2_.get()); 1274 event_router()->GattCharacteristicRemoved(mock_adapter_, chrc2_.get());
1275 event_router()->GattCharacteristicRemoved(mock_adapter_, chrc1_.get()); 1275 event_router()->GattCharacteristicRemoved(mock_adapter_, chrc1_.get());
1276 event_router()->GattCharacteristicRemoved(mock_adapter_, chrc0_.get()); 1276 event_router()->GattCharacteristicRemoved(mock_adapter_, chrc0_.get());
1277 event_router()->GattServiceRemoved( 1277 event_router()->GattServiceRemoved(
1278 mock_adapter_, device0_.get(), service1_.get()); 1278 mock_adapter_, device0_.get(), service1_.get());
1279 event_router()->GattServiceRemoved( 1279 event_router()->GattServiceRemoved(
1280 mock_adapter_, device0_.get(), service0_.get()); 1280 mock_adapter_, device0_.get(), service0_.get());
1281 } 1281 }
1282 1282
1283 } // namespace 1283 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698