|
Implement create attribute API functions for BTLE.
This CL implements the createService, createCharacteristic and
createDescriptor functions for the bluetoothLowEnergy API and adds basic
tests for it.
Currently this CL does not set up a delegate for receiving events
from the remote central device, which is fine though since the
register function has not been implemented yet.
Note: We're implementing Chrome OS specific tests to be able to test the
complete stack. Using the platform independent tests did not work very well
since we'd not be able to successfully call any of the ::Create(...) calls.
Since this API will only ever be available on Chrome OS and Linux, this
should be fine.
R=ortuno@chromium.org, scheib@chromium.org
BUG= 606217
Committed: https://crrev.com/5916b89a5e4e0a055bdc773d1cb8552a96828144
Cr-Commit-Position: refs/heads/master@{#391456}
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+333 lines, -32 lines) |
Patch |
|
M |
chrome/browser/extensions/api/bluetooth_low_energy/OWNERS
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc
|
View
|
1
2
3
4
5
6
7
|
8 chunks |
+73 lines, -13 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest_chromeos.cc
|
View
|
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h
|
View
|
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc
|
View
|
|
2 chunks |
+28 lines, -0 lines |
0 comments
|
Download
|
|
A + |
chrome/test/data/extensions/api_test/bluetooth_low_energy/create_characteristic/manifest.json
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A |
chrome/test/data/extensions/api_test/bluetooth_low_energy/create_characteristic/runtest.js
|
View
|
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
|
A + |
chrome/test/data/extensions/api_test/bluetooth_low_energy/create_descriptor/manifest.json
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A |
chrome/test/data/extensions/api_test/bluetooth_low_energy/create_descriptor/runtest.js
|
View
|
|
1 chunk |
+50 lines, -0 lines |
0 comments
|
Download
|
|
A + |
chrome/test/data/extensions/api_test/bluetooth_low_energy/create_service/manifest.json
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A |
chrome/test/data/extensions/api_test/bluetooth_low_energy/create_service/runtest.js
|
View
|
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
|
M |
device/bluetooth/bluetooth_adapter.h
|
View
|
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
|
M |
device/bluetooth/bluetooth_adapter_android.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
device/bluetooth/bluetooth_adapter_android.cc
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
device/bluetooth/bluetooth_adapter_mac.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
device/bluetooth/bluetooth_adapter_mac.mm
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
device/bluetooth/bluetooth_adapter_unittest.cc
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
device/bluetooth/bluetooth_adapter_win.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
device/bluetooth/bluetooth_adapter_win.cc
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
device/bluetooth/bluetooth_local_gatt_service.h
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
device/bluetooth/bluez/bluetooth_adapter_bluez.h
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
device/bluetooth/bluez/bluetooth_adapter_bluez.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
|
M |
device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.h
|
View
|
1
2
3
4
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
|
M |
device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+10 lines, -2 lines |
0 comments
|
Download
|
|
M |
device/bluetooth/dbus/bluetooth_gatt_application_service_provider.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+7 lines, -6 lines |
0 comments
|
Download
|
|
M |
device/bluetooth/test/bluetooth_test.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
device/bluetooth/test/mock_bluetooth_adapter.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Depends on Patchset:
Total messages: 37 (16 generated)
|