c444732540d5245b6219293e96d29f325daa7839 |
|
06-Mar-2017 |
Tianjie Xu <xunchang@google.com> |
Remove malloc in edify functions And switch them to std::vector & std::unique_ptr Bug: 32117870 Test: recovery tests passed on sailfish Change-Id: I5a45951c4bdf895be311d6d760e52e7a1b0798c3
/bootable/recovery/tests/component/edify_test.cpp
|
aced5d9e4e438ba478ce54f9217166b8ab7cc24f |
|
12-Oct-2016 |
Tianjie Xu <xunchang@google.com> |
Change StringValue to use std::string Changing the field of 'Value' in edify to std::string from char*. Meanwhile cleaning up the users of 'Value' and switching them to cpp style. Test: compontent tests passed. Bug: 31713288 Change-Id: Iec5a7d601b1e4ca40935bf1c70d325dafecec235
/bootable/recovery/tests/component/edify_test.cpp
|
39119ad8ecd00a9c19fb173c78cb4a8d22a4540a |
|
11-Oct-2016 |
Tao Bao <tbao@google.com> |
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
/bootable/recovery/tests/component/edify_test.cpp
|
59dcb9cbea8fb70ab933fd10d35582b08cd13f37 |
|
04-Oct-2016 |
Tao Bao <tbao@google.com> |
edify: Move State.script and State.errmsg to std::string. This way we kill a few strdup() and free() calls. Test: 1. recovery_component_test still passes; 2. Applying an update with the new updater works; 3. The error code in a script with abort("E310: xyz") is recorded into last_install correctly. Change-Id: Ibda4da5937346e058a0d7cc81764d6f02920010a
/bootable/recovery/tests/component/edify_test.cpp
|
d770d2e7afd8a909156447c2b79d8739228279d7 |
|
04-Oct-2016 |
Tao Bao <tbao@google.com> |
edify: Move the testcases to gtest. Now they live in tests/component/edify_test.cpp. Also rename edify/main.cpp to edify/edify_parser.cpp. It becomes a host-side debugging tool that validates the input edify script. However, it supports edify builtin functions only and doesn't recognize the ones defined via updater. Test: recovery_component_test passes on device. Change-Id: Ib94a787bf15098a9cc078d256b6a6dc96ff12b2e
/bootable/recovery/tests/component/edify_test.cpp
|