commit | 5109c66a306fbb5e71dc76de7b36bf01cec38ab9 | [log] [tgz] |
---|---|---|
author | felipeal <felipeal@google.com> | Mon Mar 30 10:44:43 2020 -0700 |
committer | felipeal <felipeal@google.com> | Mon Mar 30 11:50:04 2020 -0700 |
tree | 05a6dcecd06dee050b80f5856d7dde95d8753e0f | |
parent | 95e9e1f81ff59ab08e323b46a551218aaefeda90 [diff] |
Improvements on VendorServiceControllerTest and CarUserNoticeServiceTest. - Don't use MockitoJUnitRunner when calling session.initMocks(). - Use doReturn()/lambda when mocking static methods. - Don't set non-trivial behavior on @Before method. - Don't set redundant expectations (like methods that return false). - Minor style issues. Test: atest VendorServiceControllerTest CarUserNoticeServiceTest Bug: 144732381 Bug: 152233130 Change-Id: Ia872751c00d810f1f3421c597da669a5e63b40e6
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.