OSDN Git Service

Create unit test framework for audio_a2dp_hw
authorPavlin Radoslavov <pavlin@google.com>
Wed, 5 Apr 2017 23:18:26 +0000 (16:18 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Sat, 8 Apr 2017 00:03:32 +0000 (17:03 -0700)
commitbdd34d216ae65e3d5e57457bb31a8e0b9ff3c31a
tree7bab2d60ccb0042ad05c47674d839bf6b4ce4504
parent9f8c8f7ed6510ca14b0e6d34ad260b6345f91a51
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)
19 files changed:
audio_a2dp_hw/Android.bp
audio_a2dp_hw/include/audio_a2dp_hw.h [moved from audio_a2dp_hw/audio_a2dp_hw.h with 76% similarity]
audio_a2dp_hw/src/audio_a2dp_hw.cc [moved from audio_a2dp_hw/audio_a2dp_hw.cc with 98% similarity]
audio_a2dp_hw/src/audio_a2dp_hw_utils.cc [moved from audio_a2dp_hw/audio_a2dp_hw_utils.cc with 100% similarity]
audio_a2dp_hw/test/audio_a2dp_hw_test.cc [new file with mode: 0644]
btif/Android.bp
btif/BUILD.gn
btif/include/btif_a2dp_control.h
btif/src/btif_a2dp.cc
btif/src/btif_a2dp_control.cc
btif/src/btif_a2dp_source.cc
btif/src/btif_av.cc
main/Android.bp
stack/BUILD.gn
stack/include/a2dp_codec_api.h
test/run_unit_tests.sh
udrv/Android.bp
udrv/BUILD.gn
udrv/ulinux/uipc.cc