DescriptionAdapter changes for implementing local GATT attributes and tests.
In this CL, we implement the changes to the Bluetooth adapter for using
all the code added in the previous CLs. This CL also adds the testing
framework needed for testing these changes along with some basic tests.
The major changes from the code on trunk are,
.) The adapter now owns any created services. It also owns the dbus
application provider. Ownership of all other providers is by the
main application service provider and the Adapter doesn't have anything
to do with them.
.) The test framework adds an intermediate BluetoothGattServerTest class
to take out common parts of testing local GATT attributes since there
is a lot of common boilerplate code.
.) The tests are basic right now but the framework verifies that many of
the different moving parts are working correctly.
What is missing is unit tests for the BluetoothGattApplicationProvider
class's implementation. These will be added later once I figure out a
good way to do so (we currently don't have any direct unit tests for
any of the DBus classes).
Part 3 of a 3 patch series:
https://crrev.com/1915803002 Bluetooth class changes
https://crrev.com/1914893002 DBus class changes
https://crrev.com/1919683002 Adapter changes + tests <<<
R=ortuno@chromium.org, scheib@chromium.org
BUG=601935
Committed: https://crrev.com/3fb9aa6d505dd9c1e225403c865a482a62df892d
Cr-Commit-Position: refs/heads/master@{#391346}
Patch Set 1 #Patch Set 2 : object paths fix #Patch Set 3 : merge (delegate leak fix) #Patch Set 4 : merge (magic values fix) #Patch Set 5 : merge #Patch Set 6 : #
Total comments: 2
Patch Set 7 : merge #Patch Set 8 : build fixes #Patch Set 9 : #Patch Set 10 : #
Total comments: 8
Patch Set 11 : #Patch Set 12 : #Dependent Patchsets: Messages
Total messages: 44 (18 generated)
|