A subscription is created and destroyed based on the lifecycle events. Fetching the summary is done asynchronously to prevent blocking the UI thread. Test: make RunSettingsRoboTests Test: manually flip flags, confirm tile has dynamic summary Bug: 264812018 Change-Id: Ib1149ec6907b6a70226c36d37431023aaf6ad557
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.