commit | 8b23811d2ac5c056ff49f2ab4fca3447a9fdca42 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Fri Aug 26 14:54:29 2016 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Fri Aug 26 14:54:29 2016 -0700 |
tree | b2d9b2cab10667fdd08f2de84db84dc86845477a | |
parent | b3ddc0a4bf4334fa114d2b1716675d29a7024c1f [diff] |
Fix clang-tidy warnings in bootable/recovery. * Use const reference type for read-only parameters. Bug: 30407689 * Use faster overloaded string find function. Bug: 30411878 * Add parentheses around macro parameters. Bug: 28705665 Test: build with WITH_TIDY=1 Change-Id: I4e8e5748bfa4ae89871f1fb5fa4624d372530d75
mm -j && m ramdisk-nodeps && m recoveryimage-nodeps # To boot into the new recovery image # without flashing the recovery partition: adb reboot bootloader fastboot boot $ANDROID_PRODUCT_OUT/recovery.img
# After setting up environment and lunch. mmma -j bootable/recovery # Running the tests on device. adb root adb sync data # 32-bit device adb shell /data/nativetest/recovery_unit_test/recovery_unit_test adb shell /data/nativetest/recovery_component_test/recovery_component_test # Or 64-bit device adb shell /data/nativetest64/recovery_unit_test/recovery_unit_test adb shell /data/nativetest64/recovery_component_test/recovery_component_test