|
chrome.bluetoothLowEnergy: Implement getService and getServices.
This patch implements the getService and getServices functions of the
bluetoothLowEnergy API. The key changes introduced are:
* BluetoothLowEnergyEventRouter, which tracks Observer events from the
device/bluetooth API, maintains a mapping from instance IDs to the necessary
metadata to look up a GATT object from the adapter, and handles basic logic
such as conversion between device::BluetoothGatt* and
extensions::api::bluetooth_low_energy::* objects and sending of API events.
* Implementation of getService and getServices functions.
* In browser unit tests for the above functions.
BUG= 265663
TEST=browser_tests --gtest_filter=BluetoothLowEnergyApiTest.*, device_unittests
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266484
Total comments: 10
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1202 lines, -60 lines) |
Patch |
 |
M |
chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.h
|
View
|
1
2
3
4
|
12 chunks |
+97 lines, -33 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+174 lines, -17 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc
|
View
|
|
1 chunk |
+159 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h
|
View
|
1
2
3
4
|
1 chunk |
+170 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+369 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/browser_context_keyed_service_factories.cc
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser_extensions.gypi
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests.gypi
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/api/bluetooth_low_energy.idl
|
View
|
1
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
A + |
chrome/test/data/extensions/api_test/bluetooth_low_energy/get_service/manifest.json
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
chrome/test/data/extensions/api_test/bluetooth_low_energy/get_service/runtest.js
|
View
|
1
|
1 chunk |
+59 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
chrome/test/data/extensions/api_test/bluetooth_low_energy/get_services/manifest.json
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
chrome/test/data/extensions/api_test/bluetooth_low_energy/get_services/runtest.js
|
View
|
1
|
1 chunk |
+54 lines, -0 lines |
0 comments
|
Download
|
 |
M |
device/bluetooth/bluetooth.gyp
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
device/bluetooth/bluetooth_device.h
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
device/bluetooth/bluetooth_gatt_service.h
|
View
|
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
device/bluetooth/bluetooth_remote_gatt_service_chromeos.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
device/bluetooth/bluetooth_remote_gatt_service_chromeos.cc
|
View
|
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
device/bluetooth/test/mock_bluetooth_device.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
A |
device/bluetooth/test/mock_bluetooth_gatt_service.h
|
View
|
1
|
1 chunk |
+52 lines, -0 lines |
0 comments
|
Download
|
 |
A |
device/bluetooth/test/mock_bluetooth_gatt_service.cc
|
View
|
1
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
Total messages: 27 (0 generated)
|