commit | 39119ad8ecd00a9c19fb173c78cb4a8d22a4540a | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Mon Oct 10 22:52:18 2016 -0700 |
committer | Tao Bao <tbao@google.com> | Wed Oct 12 23:29:59 2016 -0700 |
tree | b7c6d625baefc3521fe46c794d8d82fe99535229 | |
parent | 19bb05dfc7a148dc4fc4ce744e5cfd013949497a [diff] |
edify: Some clean-ups to libedify. - Remove dead declarations in expr.h: SetError(), GetError(), ClearError(). - Remove the declaration of Build() out of expr.h. - Use std::unordered_map to implement RegisterFunction() and FindFunction(); kill FinishRegistration(). - Add a testcase for calling unknown functions. Test: mmma bootable/recovery; recovery_component_test passes. Change-Id: I9af6825ae677f92b22d716a4a5682f58522af03b
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