Updated testContextMock() how it checks the bluetooth_connected string. Bug: 72317067 Test: Unit test updated: make ROBOTEST_FILTER=BluetoothDetailsHeaderControllerTest \ RunSettingsRoboTests Manual: two headsets and switching the active device Change-Id: I3db178d71543e4dfa437544350c58241860ae703
Running Settings Robolectric tests
The full suite
$ croot
$ make RunSettingsRoboTests
Running a single test class
$ croot
$ make RunSettingsRoboTests ROBOTEST_FILTER=<ClassName>
For example:
make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
You can also use partial class name in ROBOTEST_FILTER. If the partial class name matches multiple file names, all of them will be executed.