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>
Fri, 7 Apr 2017 21:55:51 +0000 (21:55 +0000)
commit304ceeb5202060a9c625a55369cbf28d72f5e2d9
tree87dbb59494298b102498856ff3bfe1206c4fd1fb
parent16899e9d1ef49aedba8435ff3a5e4476f036427a
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
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