cfd6525c3d30e0efec789b5ddbf25dd24e37cc15 |
|
28-Apr-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
LE advertise data parsing refactor * merge BTM_CheckAdvData and BTM_CheckEirData into GetFieldByType * check wether AD data is properly formatted when the packet is received. Some controllers were returning malformed data that resulted in stack crashes for BT5 packets. * add tests to verify the helpers work as expected Test: added net_test_stack_ad_parser Bug: 37671082 Change-Id: I49e43d7cf7d0a8ace1ee45d9b14b2b8440096b05 (cherry picked from commit 103b2c44d3db6172a2dc9319e215eeece504316e)
/system/bt/test/run_unit_tests.sh
|
bdd34d216ae65e3d5e57457bb31a8e0b9ff3c31a |
|
06-Apr-2017 |
Pavlin Radoslavov <pavlin@google.com> |
Create unit test framework for audio_a2dp_hw Create unit test framework for audio_a2dp_hw and implement a unit test for function audio_a2dp_hw_stream_compute_buffer_size() Also: * Remove obsolete check for mixer unit size inside out_get_buffer_size() * Reorganize the file structure inside directory audio_a2dp_hw/ : - Moved the source code files *.cc to audio_a2dp_hw/src/ - Moved the header file(s) *.h to audio_a2dp_hw/include/ - The unit test file(s) are stored in audio_a2dp_hw/test/ Bug: 35849921 Test: This is the unit test. Code compilation and unit test succeed Change-Id: I3dcc508cb6799462b7103cb2ee452b4399843899 (cherry picked from commit 304ceeb5202060a9c625a55369cbf28d72f5e2d9)
/system/bt/test/run_unit_tests.sh
|
2ec87467b3185fb60e76f243e6b4ea05149a06c1 |
|
15-Dec-2016 |
Jack He <siyuanh@google.com> |
Add unit tests and refactor LE legacy pairing key distribution methods * Add unit test for confirm (c1), p1, and p2 * Refactor the code to reduce number of methods * Refactor c1's code to make it testable Bug: 32413756 Test: Code compilation, Unit Test, PTS SM Tests Change-Id: I5cc876b7dd2b21a0780ac9a5236420223df6cddb
/system/bt/test/run_unit_tests.sh
|
e47b769e71fa88f207db747e62974662e43aa07c |
|
28-Sep-2016 |
Jakub Pawlowski <jpawlowski@google.com> |
Make Bluetooth LE multi-advertising testable This patch turns the code that manages LE multi-advertising into the BleAdvertisingManager class. All HCI calls made by this code were abstracted into BleAdvertiserHciInterface. Thanks to those changes, we can mock BleAdvertiserHciInterface and test the advertising manager. The BleAdvertisingManagerTest, still has some dependencies on other code from the "stack" module. These have to be implemented on top of the test file. In the future, this dependencies should be replaced by mockable classes. Test: Tests covering the change are added in this patch. Bug: 30622771 Change-Id: I4a363678815c235ee01255f462db2a671ef89610
/system/bt/test/run_unit_tests.sh
|
7e5862624f7e2618b9999e79533520a8984a396c |
|
29-Aug-2016 |
Pavlin Radoslavov <pavlin@google.com> |
Added A2DP codec-related APIs Those APIs can be used to check various codec-related characterictics, and minimize the codec-specific knowledge in the rest of the code. The added APIs are: - A2D_GetCodecType() - A2D_IsCodecSupported() - A2D_UsesRtpHeader() - A2D_IsVendorCodecSupported() - A2D_VendorCodecGetVendorId() - A2D_VendorCodecGetCodecId() - A2D_VendorUsesRtpHeader() Also: - Added unit tests for the new API calls - Removed redundant definition of BTA_AV_CODEC_TYPE_IDX - Removed unused A2D_MEDIA_CT_* codec type defines Bug: 30958229 Change-Id: Id9ab01fd93b0b0a9b55a0af9bfb482310ae0ade4
/system/bt/test/run_unit_tests.sh
|
e5c78954fb37f7e9a1d66387ebdb3848f04b1082 |
|
10-Aug-2016 |
Jakub Pawlowski <jpawlowski@google.com> |
Make it possible to post closures to BTA message queue Currently, every task executed on bta thread needs a separate event id, structure holding its parameters, API method, and method that will be executed in bta thread, which must accept generic tBTA_DM_MSG. Because of that we end up with lots of boilerplate code, and possibility to misinterpret bytes in tBTA_DM_MSG struct. After this patch, we can post closures onto bta thread. Thanks to it we don't need a struct to hold parameters, and the executed method can have a meaningful parameters. First experiments showed over 50% reduction in code size when rewriting advertising code to new style, not to mention much better readability. Bug: 30622771 Change-Id: I400839b920c04c67c893899969d07a02d9c1b2e6
/system/bt/test/run_unit_tests.sh
|
fa717c0b47bb1fed04da295eaa580a92bc08c622 |
|
07-Dec-2015 |
Ajay Panicker <apanicke@google.com> |
net_test_bluetooth: RFCOMM test refactor Properly implement RFCOMM tests into net_test_rfcomm using GUnit. Contains all the RFCOMM tests and the base class that the tests use. This test currently requires the DUT to be paired with an HFP capable device. Bug: 25793348 Change-Id: I683db7c5f2779373b2e343c7ad21268e4969d014
/system/bt/test/run_unit_tests.sh
|
e11cc0b0f9c5b21ecdf3d574333d100ce918a3a0 |
|
22-Jan-2016 |
Andre Eisenbach <eisenbach@google.com> |
Make BTIF a static library; add unit test framework Moving BTIF to a static library allows it to be loaded for unit tests. The framework has been put in place to add unit tests to 'net_test_btif'. Change-Id: Ie7e0984e90f11f6e3df5c0f34c77cc976627f1d2
/system/bt/test/run_unit_tests.sh
|
092cf9ec93d16416d2bfbee3bd55a4aec91705a4 |
|
11-Nov-2015 |
Scott James Remnant <keybuk@google.com> |
test: Add bluetoothtbd_test and net_test_bluetooth to runner Change-Id: Iee7365cc366793d3f88cd8b9a6be454c5b853863
/system/bt/test/run_unit_tests.sh
|
0f61cf7cbee737f4239ad6a277e425cd2dd8901a |
|
19-Nov-2015 |
Scott James Remnant <keybuk@google.com> |
Clean up run_unit_tests wordiness Preserve word boundaries of command-line arguments, e.g. when the script is called with "foo bar" an argument (including quotes) don't break it up into "foo" "bar" before passing to adb shell, etc. Fixed a few other style issues while in there, and removed the sole bashism so the script can just use an ordinary shell. Change-Id: I7f9b2ea08cd7fa35b692d8f7c49006bde6e562eb
/system/bt/test/run_unit_tests.sh
|
a05d9361b618b051170505b0fab5874264178215 |
|
19-Nov-2015 |
Scott James Remnant <keybuk@google.com> |
Add iterations option to run_unit_tests e.g. ./run_unit_tests.sh -i 100 net_test_osi.EagerReaderTest.test_large_data_multibyte Tests are reported as failed if they fail in one or more of the iterations, and will report a count of failures. Useful for smoking out flakey tests. Change-Id: Ibb1c1d4c3023d59782945b8f6d9bde06bfe8c589
/system/bt/test/run_unit_tests.sh
|
707fc0c225bb8240b0ca42fa3a2f0ec1f035be46 |
|
19-Nov-2015 |
Scott James Remnant <keybuk@google.com> |
Clean up run_unit_tests a little Since run_tests() is only ever called once, and now has much more complex arguments, it makes sense for it just to be the mainline of the script. Change-Id: I64cef03212e76b0058f80e0d9450ed6cf607b9ed
/system/bt/test/run_unit_tests.sh
|
6babef04564490d0843504f7abe9f5217570f5ef |
|
18-Nov-2015 |
Scott James Remnant <keybuk@google.com> |
Pass unknown run_unit_tests long arguments to tests e.g. ./run_unit_tests.sh --v=2 ./run_unit_tests.sh --gtest_filter=*Advertise* Change-Id: I63e7549d850a15107ca56333868cc8ccd3eeb893
/system/bt/test/run_unit_tests.sh
|
753c074b449596f80224dec367816366fbd9bfe9 |
|
18-Nov-2015 |
Scott James Remnant <keybuk@google.com> |
Add test filter option to run_unit_tests e.g. ./run_unit_test.sh net_test_hci.HciLayerTest.* Useful since this script wraps the hard part of pushing the binary to the device and then shell to running it. This also allows multiple individual tests to be run, since the filter is per-target rather than global. Change-Id: I74a6511ab226fb55054cbb840bb47815e0fdc97e
/system/bt/test/run_unit_tests.sh
|
0ff191abbfa3d23d4e8a81cb674509580873bdc2 |
|
18-Nov-2015 |
Scott James Remnant <keybuk@google.com> |
Give run_unit_tests an exit code So you can tell whether tests failed by checking $? Change-Id: I0eb55c49946a4183206bd68cd3c0b1bdc69f6bb0
/system/bt/test/run_unit_tests.sh
|
03e8be8b11c4e277a7c4600847a49a4b152b40a7 |
|
18-Nov-2015 |
Scott James Remnant <keybuk@google.com> |
Add -s <specific device> to run_unit_tests For the developer with more than one Android or Brillo device plugged into their workstation at once. Change-Id: Ice273564f2debdc0708ce473be6119ff2ae33f39
/system/bt/test/run_unit_tests.sh
|
7ab59096c26fe1175258f4cf40674736884ceeb0 |
|
10-Nov-2015 |
Andre Eisenbach <eisenbach@google.com> |
Indicate failed tests in run_unit_tests.sh Previously "run_unit_tests.sh --all" did not indicate to the user if a unit test other than the last one failed. Change-Id: I9b64e4280612cd9af18acc17f245b8760bea793f
/system/bt/test/run_unit_tests.sh
|
2234929d21efedb2cb38190fa8162da90be94886 |
|
05-Nov-2014 |
Zach Johnson <zachoverflow@google.com> |
Add a simple classic peer
/system/bt/test/run_unit_tests.sh
|
f73a207f52d32aff9842a0c83fbd513dd9ebfa16 |
|
25-Dec-2014 |
Zach Johnson <zachoverflow@google.com> |
Add bash script for running unit tests This script helps simplify pushing and running bluedroid unit tests. You can run all of the known ones, or provide names of selected unit test executables you wish to run.
/system/bt/test/run_unit_tests.sh
|