OSDN Git Service

Add AVRCP unit tests and switch to using mockable interfaces
authorAjay Panicker <apanicke@google.com>
Fri, 21 Oct 2016 19:07:39 +0000 (12:07 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Wed, 26 Oct 2016 17:47:14 +0000 (17:47 +0000)
commitd996f17ea97b2c592338bcfbc93056d0224da1cd
treed29280fe85f5c1661a17773beeb27e1a4e481520
parent5f552c51746950d38eb07d2bb7e61b030d91794d
Add AVRCP unit tests and switch to using mockable interfaces

Add a mockable interface for MediaController in order to add unit
tests for AddressedMediaPlayer.

Bug: 32416674
Test: Tested manually
Change-Id: I081c37915fc15e58f3de37c3a16e03747503860c
src/com/android/bluetooth/avrcp/AddressedMediaPlayer.java
src/com/android/bluetooth/avrcp/Avrcp.java
src/com/android/bluetooth/avrcp/AvrcpHelperClasses.java
src/com/android/bluetooth/avrcp/BrowsedMediaPlayer.java
src/com/android/bluetooth/avrcp/mockable/MediaController.java [new file with mode: 0644]
tests/Android.mk
tests/AndroidManifest.xml
tests/src/com/android/bluetooth/tests/avrcp/AddressedMediaPlayerTest.java [new file with mode: 0644]
tests/src/com/android/bluetooth/tests/gatt/GattServiceTest.java [moved from tests/src/com/android/bluetooth/gatt/GattServiceTest.java with 100% similarity]