Refactor libfastboot
This change creates a nice and clean API for issuing
fastboot commands without using the fastboot tool itself.
Test: fastboot tool itself (now using libfastboot2)
on sailfish, walleye, and other devices.
Test: flash bootloader bootloader.img
Test: flash radio radio.img
Test: -w update img.zip
Test: Manually getvar and reboot commands.
Bug: 111126621
Change-Id: I0022536b204ce0c5ad8329367fd522fa3c57877d
diff --git a/fastboot/fastboot_test.cpp b/fastboot/fastboot_test.cpp
index 1681427..43201fa 100644
--- a/fastboot/fastboot_test.cpp
+++ b/fastboot/fastboot_test.cpp
@@ -14,12 +14,12 @@
* limitations under the License.
*/
-#include "fastboot.h"
+#include "engine.h"
#include <gtest/gtest.h>
TEST(FastBoot, ParseOsPatchLevel) {
- FastBoot fb;
+ FastBootTool fb;
boot_img_hdr_v1 hdr;
hdr = {};
@@ -34,7 +34,7 @@
}
TEST(FastBoot, ParseOsVersion) {
- FastBoot fb;
+ FastBootTool fb;
boot_img_hdr_v1 hdr;
hdr = {};