commit | 7f731773c6520854171df90acbaa013e713d4a86 | [log] [tgz] |
---|---|---|
author | felipeal <felipeal@google.com> | Mon Apr 27 14:16:43 2020 -0700 |
committer | felipeal <felipeal@google.com> | Tue Apr 28 17:11:00 2020 -0700 |
tree | fecb68856ca53ee210e0fdcd75a8db917ab43e36 | |
parent | d8964ac0928b81af424cb8e4c10903bef66c7696 [diff] |
More improvements on android.car.test.utils package. - Added more helpers to mock static methods on AbstractExtendMockitoTestCase. - Refactored blocking UserLifeCycleListener into OneEventUserLifecycleListener. - Moved custom ArgumentMatchers to CarArgumentMatchers. - Moved common car-related mock calls to CarMockitoHelper. Bug: 149099817 Test: atest \ CarUserManagerHelperTest InitialUserSetterTest \ UserHelperTest CarPowerManagementServiceTest \ UserHalServiceTest VendorServiceControllerTest \ CarUserManagerUnitTest CarUserNoticeServiceTest CarUserServiceTest Change-Id: Ia2b9359d5b0a502d72e35eabbe8b2e487885e8d8
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.