summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorxunchang <xunchang@google.com>2019-03-18 00:45:12 +0100
committerxunchang <xunchang@google.com>2019-03-19 19:11:58 +0100
commitea2912f187cec8d426cfc2ca715b9a503355fa37 (patch)
tree4298ddcf0b5ce74a15a43699adbcc2d27bfb9084 /tests
parentMerge "Implement FilePackage class" (diff)
downloadandroid_bootable_recovery-ea2912f187cec8d426cfc2ca715b9a503355fa37.tar
android_bootable_recovery-ea2912f187cec8d426cfc2ca715b9a503355fa37.tar.gz
android_bootable_recovery-ea2912f187cec8d426cfc2ca715b9a503355fa37.tar.bz2
android_bootable_recovery-ea2912f187cec8d426cfc2ca715b9a503355fa37.tar.lz
android_bootable_recovery-ea2912f187cec8d426cfc2ca715b9a503355fa37.tar.xz
android_bootable_recovery-ea2912f187cec8d426cfc2ca715b9a503355fa37.tar.zst
android_bootable_recovery-ea2912f187cec8d426cfc2ca715b9a503355fa37.zip
Diffstat (limited to 'tests')
-rw-r--r--tests/component/sideload_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/component/sideload_test.cpp b/tests/component/sideload_test.cpp
index d5e074c63..8d290dbcd 100644
--- a/tests/component/sideload_test.cpp
+++ b/tests/component/sideload_test.cpp
@@ -53,9 +53,9 @@ TEST(SideloadTest, run_fuse_sideload) {
provider_vtab vtab;
vtab.close = [](void) {};
vtab.read_block = [&blocks](uint32_t block, uint8_t* buffer, uint32_t fetch_size) {
- if (block >= 4) return -1;
+ if (block >= 4) return false;
blocks[block].copy(reinterpret_cast<char*>(buffer), fetch_size);
- return 0;
+ return true;
};
TemporaryDir mount_point;