OSDN Git Service

Fix Robolectric Bluetooth tests
authorHansong Zhang <hsz@google.com>
Mon, 30 Oct 2017 23:38:16 +0000 (16:38 -0700)
committerHansong Zhang <hsz@google.com>
Mon, 30 Oct 2017 23:57:02 +0000 (16:57 -0700)
commit1c1bc25dfc1c68fb7c8955ac5767136272dd2aaf
tree860defd17161b280125178cd33968bc8c0370662
parent45183fc5a79f0cf21fb3fa7e35b916fd75821267
Fix Robolectric Bluetooth tests

The Bluetooth HID profile name BluetoothInputDevice is recently changed
to BluetoothHidHost, but it is not updated in the SDK for Robolectric
tests, and it causes problems with SettingsLib tests. Thus, we need to
replace the HID profile use case with PAN. This change will not
influence the test coverage.

Test: make RunSettingsLibRoboTests
Bug: 68213274
Change-Id: If30ef0e82252d8f7229815b80e403ae63ab10643
packages/SettingsLib/src/com/android/settingslib/bluetooth/PanProfile.java
packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/CachedBluetoothDeviceTest.java