commit | ea4f6acb58f1a22e30b2f59d8f07287cd9d04e3a | [log] [tgz] |
---|---|---|
author | Zhomart Mukhamejanov <zhomart@google.com> | Mon Nov 25 17:09:45 2019 -0800 |
committer | Zhomart Mukhamejanov <zhomart@google.com> | Wed Dec 11 16:38:08 2019 -0800 |
tree | 7a17e6120b9327ffedb4d4bd54c6f27f520d55f6 | |
parent | 3cb76a9f60d8cb409e63ee2d6c0d9af9d7346e01 [diff] |
[RESTRICT AUTOMERGE] Add tests and add AutoValue. - Add BugStorageUtilsTest - Migrate MetaBugReport pojo to AutoValue. This removed 40 lines of extra code. It is useful for testing and debugging, it automatically creates equals(), toString(), hash() methods. - Add completeDelete - destructively deletes the bugreport from db. - Add expire bugreport - set status to expired and delete zip file. Test: atest packages/services/Car/tests/BugReportApp/tests Test: manually on a hawk bench Bug: 144523228 Change-Id: Ice23b105a71ed2021d28943d31e26ec5c839f637 (cherry picked from commit 08d0edea03bd94a9abcb79f947824b452a8b946a)
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.