commit | a50892aafafee3d32151bd59338676651f6d8902 | [log] [tgz] |
---|---|---|
author | Jim Kaye <jameskaye@google.com> | Wed Apr 29 10:26:28 2020 -0700 |
committer | Jim Kaye <jameskaye@google.com> | Thu Apr 30 14:56:04 2020 -0700 |
tree | 60cf6b9e3350cda31ac6af26b885cdbea22551f6 | |
parent | 0ea76d7ce666efcd598408bf27086cd408de39e1 [diff] |
De-flake and clean up CarPowerManagementServiceTest Two of the tests are flakey, this seems related to test setup behavior specific to these two tests. After recent refactoring, it is not needed to set a power-state listener. Removing that eliminates the uniqueness of the flakey tests. This CL also removes some unnecessary method parameters and clarifies some logic. Fixes: 154927360 Test: 'atest CarPowerManagementServiceTest' on emulator Change-Id: I85a84e4714ec0c294456d49c61da5a3a4d565977
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.