summaryrefslogtreecommitdiffstats
path: root/tests/component/updater_test.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-05-03 01:49:33 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-05-03 01:49:33 +0200
commitb3eeb817ab2a5dd76cbe12053b37e853a3fce682 (patch)
tree0def611534805248315a96999f402fb6d6d241b9 /tests/component/updater_test.cpp
parentMerge "recovery: Change install_package() to take std::string." am: ba365180d3 (diff)
parentMerge "Move sysMapFile and sysReleaseMap into MemMapping class." (diff)
downloadandroid_bootable_recovery-b3eeb817ab2a5dd76cbe12053b37e853a3fce682.tar
android_bootable_recovery-b3eeb817ab2a5dd76cbe12053b37e853a3fce682.tar.gz
android_bootable_recovery-b3eeb817ab2a5dd76cbe12053b37e853a3fce682.tar.bz2
android_bootable_recovery-b3eeb817ab2a5dd76cbe12053b37e853a3fce682.tar.lz
android_bootable_recovery-b3eeb817ab2a5dd76cbe12053b37e853a3fce682.tar.xz
android_bootable_recovery-b3eeb817ab2a5dd76cbe12053b37e853a3fce682.tar.zst
android_bootable_recovery-b3eeb817ab2a5dd76cbe12053b37e853a3fce682.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));