OSDN Git Service

Add unit tests and refactor LE legacy pairing key distribution methods
authorJack He <siyuanh@google.com>
Thu, 15 Dec 2016 10:48:33 +0000 (02:48 -0800)
committerJack He <siyuanh@google.com>
Fri, 16 Dec 2016 18:49:52 +0000 (10:49 -0800)
commit2ec87467b3185fb60e76f243e6b4ea05149a06c1
tree34898f1e0532b48784ab0f3e5073b92484237b9c
parente1fbea969594b78e404a5aa49aff608a7ed81ee6
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
stack/Android.mk
stack/smp/smp_keys.cc
stack/smp/smp_utils.cc
stack/test/stack_smp_test.cc [new file with mode: 0644]
test/run_unit_tests.sh