summaryrefslogtreecommitdiffstats
path: root/tests/component/updater_test.cpp
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-05-17 10:06:39 +0200
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-05-17 10:06:39 +0200
commit126564f96251f3c8b06ac8a1f7ed63c783712c2b (patch)
tree2eb0429757e82efd5eca487a6504e0fa81a53a4d /tests/component/updater_test.cpp
parentMerge "minui: Fix breakage in graphics_adf." am: 54da112277 am: d66f05b82c am: 4cc6889da8 (diff)
parentMerge "updater: Update the mkfs.f2fs argument to match f2fs-tools 1.8.0." am: 494d97fe6b am: 843ca31c4c am: 9539cdb3c0 (diff)
downloadandroid_bootable_recovery-126564f96251f3c8b06ac8a1f7ed63c783712c2b.tar
android_bootable_recovery-126564f96251f3c8b06ac8a1f7ed63c783712c2b.tar.gz
android_bootable_recovery-126564f96251f3c8b06ac8a1f7ed63c783712c2b.tar.bz2
android_bootable_recovery-126564f96251f3c8b06ac8a1f7ed63c783712c2b.tar.lz
android_bootable_recovery-126564f96251f3c8b06ac8a1f7ed63c783712c2b.tar.xz
android_bootable_recovery-126564f96251f3c8b06ac8a1f7ed63c783712c2b.tar.zst
android_bootable_recovery-126564f96251f3c8b06ac8a1f7ed63c783712c2b.zip
Diffstat (limited to 'tests/component/updater_test.cpp')
-rw-r--r--tests/component/updater_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/component/updater_test.cpp b/tests/component/updater_test.cpp
index dc4b5d724..35e87fd56 100644
--- a/tests/component/updater_test.cpp
+++ b/tests/component/updater_test.cpp
@@ -570,7 +570,7 @@ TEST_F(UpdaterTest, block_image_update) {
ASSERT_EQ(0, fclose(zip_file_ptr));
MemMapping map;
- ASSERT_EQ(0, sysMapFile(zip_file.path, &map));
+ ASSERT_TRUE(map.MapFile(zip_file.path));
ZipArchiveHandle handle;
ASSERT_EQ(0, OpenArchiveFromMemory(map.addr, map.length, zip_file.path, &handle));
@@ -646,7 +646,7 @@ TEST_F(UpdaterTest, new_data_short_write) {
ASSERT_EQ(0, fclose(zip_file_ptr));
MemMapping map;
- ASSERT_EQ(0, sysMapFile(zip_file.path, &map));
+ ASSERT_TRUE(map.MapFile(zip_file.path));
ZipArchiveHandle handle;
ASSERT_EQ(0, OpenArchiveFromMemory(map.addr, map.length, zip_file.path, &handle));