summaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorKelvin Zhang <zhangkelvin@google.com>2020-09-16 20:06:12 +0200
committerKelvin Zhang <zhangkelvin@google.com>2020-09-16 20:21:37 +0200
commit4f81130039f6a312eba2027b3594a2be282f6b3a (patch)
tree8a910b26d07884180bcef5f5f48781ae642cf99e /tests/unit
parentMerge "Merge Android R" (diff)
downloadandroid_bootable_recovery-4f81130039f6a312eba2027b3594a2be282f6b3a.tar
android_bootable_recovery-4f81130039f6a312eba2027b3594a2be282f6b3a.tar.gz
android_bootable_recovery-4f81130039f6a312eba2027b3594a2be282f6b3a.tar.bz2
android_bootable_recovery-4f81130039f6a312eba2027b3594a2be282f6b3a.tar.lz
android_bootable_recovery-4f81130039f6a312eba2027b3594a2be282f6b3a.tar.xz
android_bootable_recovery-4f81130039f6a312eba2027b3594a2be282f6b3a.tar.zst
android_bootable_recovery-4f81130039f6a312eba2027b3594a2be282f6b3a.zip
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/install_test.cpp2
-rw-r--r--tests/unit/package_test.cpp2
-rw-r--r--tests/unit/zip_test.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/install_test.cpp b/tests/unit/install_test.cpp
index fc7c2bf2f..c3415479d 100644
--- a/tests/unit/install_test.cpp
+++ b/tests/unit/install_test.cpp
@@ -190,7 +190,7 @@ static void VerifyAbUpdateCommands(const std::string& serialno, bool success = t
ZipArchiveHandle zip;
ASSERT_EQ(0, OpenArchive(temp_file.path, &zip));
- ZipEntry payload_entry;
+ ZipEntry64 payload_entry;
ASSERT_EQ(0, FindEntry(zip, "payload.bin", &payload_entry));
std::map<std::string, std::string> metadata;
diff --git a/tests/unit/package_test.cpp b/tests/unit/package_test.cpp
index 5e31f7fa5..164a93d57 100644
--- a/tests/unit/package_test.cpp
+++ b/tests/unit/package_test.cpp
@@ -106,7 +106,7 @@ TEST_F(PackageTest, GetZipArchiveHandle_extract_entry) {
// Check that we can extract one zip entry.
std::string_view entry_name = "dir1/file3.txt";
- ZipEntry entry;
+ ZipEntry64 entry;
ASSERT_EQ(0, FindEntry(zip, entry_name, &entry));
std::vector<uint8_t> extracted(entry_name.size());
diff --git a/tests/unit/zip_test.cpp b/tests/unit/zip_test.cpp
index ec9585c79..e065bb859 100644
--- a/tests/unit/zip_test.cpp
+++ b/tests/unit/zip_test.cpp
@@ -37,7 +37,7 @@ TEST(ZipTest, OpenFromMemory) {
ASSERT_EQ(0, OpenArchiveFromMemory(map.addr, map.length, zip_path.c_str(), &handle));
static constexpr const char* BINARY_PATH = "META-INF/com/google/android/update-binary";
- ZipEntry binary_entry;
+ ZipEntry64 binary_entry;
// Make sure the package opens correctly and its entry can be read.
ASSERT_EQ(0, FindEntry(handle, BINARY_PATH, &binary_entry));