commit | c7bb92bd068e1acd6b5cc05044f08e06c3734c14 | [log] [tgz] |
---|---|---|
author | Keun young Park <keunyoung@google.com> | Tue Jan 21 17:48:02 2020 -0800 |
committer | Keun young Park <keunyoung@google.com> | Wed Jan 22 14:51:38 2020 -0800 |
tree | bcfc64b6cb86e680664e045f2e570f3f34f5ba75 | |
parent | a4a4bb6f7323cf3d15aa38b5b31ee10d50eab0da [diff] |
Fix flaky VendorServiceControllerTest - Add confirmation that all posted events to main thread are completed before assertion. - Add proper synchronization for members updated in main while assertion happens in test thread - With fixes, the tests should be no longer flaky. Bug: 147520321 Test: atest com.android.car.pm.VendorServiceControllerTest Change-Id: If8b5909daf3e88e5398df85f7b4ecd39e0dee4c1
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.