commit | 973d992c8624383adf4d9d9a644dc0ec94df2f04 | [log] [tgz] |
---|---|---|
author | Bin Tan <bint@google.com> | Sun Mar 14 23:07:53 2021 -0700 |
committer | Bin Tan <bint@google.com> | Tue Mar 16 10:16:03 2021 -0700 |
tree | 3f3774dd799fde6345b7b0168d4337b6562580e2 | |
parent | 0a6f640299e0e243c43532823d35b5157fa6dae7 [diff] |
Mock the getRunningProcesses method in SystemStateInterface 1. The getRunningProcesses was not mocked in the carservice_test so that the system (native) method is called and throws SecurityException. Bug: 181671711 Test: atest CarServiceTest Change-Id: I3d11c9d194896047138bde5e109d18361abd947e
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.