summaryrefslogtreecommitdiffstats
path: root/tests/unit/zip_test.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-05-07 02:14:06 +0200
committerandroid-build-merger <android-build-merger@google.com>2019-05-07 02:14:06 +0200
commit0d24715223c13917d9399c8c08778eca4e62f886 (patch)
tree81cf24b00af207c2fdb5d329feb32ac9eca1737d /tests/unit/zip_test.cpp
parentMerge "Disable libbootloader_message for darwin" (diff)
parentMerge "Track libziparchive API change." (diff)
downloadandroid_bootable_recovery-0d24715223c13917d9399c8c08778eca4e62f886.tar
android_bootable_recovery-0d24715223c13917d9399c8c08778eca4e62f886.tar.gz
android_bootable_recovery-0d24715223c13917d9399c8c08778eca4e62f886.tar.bz2
android_bootable_recovery-0d24715223c13917d9399c8c08778eca4e62f886.tar.lz
android_bootable_recovery-0d24715223c13917d9399c8c08778eca4e62f886.tar.xz
android_bootable_recovery-0d24715223c13917d9399c8c08778eca4e62f886.tar.zst
android_bootable_recovery-0d24715223c13917d9399c8c08778eca4e62f886.zip
Diffstat (limited to 'tests/unit/zip_test.cpp')
-rw-r--r--tests/unit/zip_test.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/unit/zip_test.cpp b/tests/unit/zip_test.cpp
index dfe617ebe..0753d64e1 100644
--- a/tests/unit/zip_test.cpp
+++ b/tests/unit/zip_test.cpp
@@ -37,10 +37,9 @@ 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";
- ZipString binary_path(BINARY_PATH);
ZipEntry binary_entry;
// Make sure the package opens correctly and its entry can be read.
- ASSERT_EQ(0, FindEntry(handle, binary_path, &binary_entry));
+ ASSERT_EQ(0, FindEntry(handle, BINARY_PATH, &binary_entry));
TemporaryFile tmp_binary;
ASSERT_NE(-1, tmp_binary.fd);