commit | 253dffff35a599457e0afef51919bd94048f5282 | [log] [tgz] |
---|---|---|
author | Jim Kaye <jameskaye@google.com> | Wed Jan 29 09:45:22 2020 -0800 |
committer | Jim Kaye <jameskaye@google.com> | Fri Feb 14 10:28:44 2020 -0800 |
tree | bd5d10e526de35ec90636855afbed74e57b1fb4d | |
parent | f3eb56e9f750357288bdd6e2272b83f6e396db7f [diff] |
[Unit test] Shorten CarPowerManagementTest execution time IRL we poll every 2 seconds for changes in the power state. To speed up the testing, do this every millisecond. Also, some tests wait to verify that a transition did NOT occur. Reduce the time that we wait for that. This CL also fixes two issues that contributed to flakiness: - Ensures consistency in CarPowerManagementTest between the list of received power states and the semaphore that indicates that a new state has been received - Adds a null check to CarPowerManager Fixes: 130378693 Test: This updates CarPowerManagementTest Change-Id: I54a07dcf852707247c6bf2ba81b2c3418cf5815a
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.