commit | 1d07618de0d91ff6845438e7f30ed7718a8430f4 | [log] [tgz] |
---|---|---|
author | Keun young Park <keunyoung@google.com> | Thu May 21 09:40:59 2020 -0700 |
committer | Keun young Park <keunyoung@google.com> | Thu May 21 09:57:25 2020 -0700 |
tree | c1184e01b9b0deddcf2061889287bea3e325366c | |
parent | aeebd5c53fae8b0a69d3520c968e5c9279b26855 [diff] |
Add CarServiceUtils.finishAllHandlerTasks for test - As handler threads are shared among the tests for car serivce, pending handler task can affect the next test. - This call quarantees that all queued handler tasks are complete. - For CarServiceUnitTest, adding this is left for each test as most tests should not be affected by other handler tasks. - For CarServiceTest, add it to common MockedCarTestBase as there are so many handlers used. Bug: 154927360 Test: atest CarServiceTest CarServiceUnitTest Change-Id: Id5b6f3da80041227e4c839bb9dd27a268ad119da
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.