OSDN Git Service

test_vendor_lib: Initial commit
authorDennis Cheng <dennischeng@google.com>
Tue, 16 Jun 2015 19:44:55 +0000 (12:44 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Mon, 3 Aug 2015 17:53:30 +0000 (17:53 +0000)
commitf3b1820e1676261886a6537e1f6abac6a35ed6d4
tree54e0c9874a564da0b07357274a5d8e2bd907c542
parentc6760d82357f46943406c579f5b1c291a20afdeb
test_vendor_lib: Initial commit

Basic vendor library for a test Bluetooth controller. Currently consists
of mostly stub functions and objects and can only handle the reset
command (by immediately responding with a command complete event).
Implemented through a global EventDispatcher object which waits for data
from the HCI and directly returns the appropriate response.

Eventually, the dispatcher will manage a fake controller object that
will provide callbacks to be executed whenever events are processed by
the dispatcher. Unit tests are still in progress and will be in the next
upload.

Bug: 21586676
Change-Id: I1c6746f8b0f1732b89a1da13facecdd49b5ac1b6
18 files changed:
vendor_libs/BUILD.gn
vendor_libs/test_vendor_lib/Android.mk [new file with mode: 0644]
vendor_libs/test_vendor_lib/BUILD.gn [new file with mode: 0644]
vendor_libs/test_vendor_lib/include/bredr_controller.h [new file with mode: 0644]
vendor_libs/test_vendor_lib/include/command_packet.h [new file with mode: 0644]
vendor_libs/test_vendor_lib/include/event_packet.h [new file with mode: 0644]
vendor_libs/test_vendor_lib/include/hci_handler.h [new file with mode: 0644]
vendor_libs/test_vendor_lib/include/hci_transport.h [new file with mode: 0644]
vendor_libs/test_vendor_lib/include/packet.h [new file with mode: 0644]
vendor_libs/test_vendor_lib/include/packet_stream.h [new file with mode: 0644]
vendor_libs/test_vendor_lib/src/bredr_controller.cc [new file with mode: 0644]
vendor_libs/test_vendor_lib/src/bt_vendor.cc [new file with mode: 0644]
vendor_libs/test_vendor_lib/src/command_packet.cc [new file with mode: 0644]
vendor_libs/test_vendor_lib/src/event_packet.cc [new file with mode: 0644]
vendor_libs/test_vendor_lib/src/hci_handler.cc [new file with mode: 0644]
vendor_libs/test_vendor_lib/src/hci_transport.cc [new file with mode: 0644]
vendor_libs/test_vendor_lib/src/packet.cc [new file with mode: 0644]
vendor_libs/test_vendor_lib/src/packet_stream.cc [new file with mode: 0644]