android_system_core/fs_mgr/libsnapshot
Yifan Hong 51bfe08d84 libsnapshot_fuzzer: Add tests
Add tests for the fuzzer itself. The test ensures that the
initial corpus is a good run on SnapshotManager (in the sense
that not only it doesn't crash, but also it executes as expected).

Also changed fuzz_utils so that impl functions return the
invocation result too, so that the test can check its values.

Test: run it
Bug: 154633114

Change-Id: I31ab7830f8c20a0575aaadabd038632d10f33962
2020-05-06 17:10:34 -07:00
..
android/snapshot libsnapshot_fuzzer: add new test directive to switch slot 2020-05-06 17:10:34 -07:00
corpus libsnapshot_fuzzer: add initial corpus 2020-05-06 17:10:34 -07:00
include/libsnapshot libsnapshot: fix incorrect assumption of cow images 2020-05-05 18:01:15 -07:00
include_test/libsnapshot SnapshotManager::Return -> Return 2020-01-17 14:43:27 -08:00
update_engine libsnapshot_fuzzer: Add ZERO to operation types 2020-05-06 17:10:34 -07:00
Android.bp libsnapshot_fuzzer: Add tests 2020-05-06 17:10:34 -07:00
device_info.cpp libsnapshot: Restrict when snapshots can be deleted. 2020-02-05 17:16:17 -08:00
device_info.h libsnapshot: Add a helper for handling data wipes in recovery. 2019-11-10 23:07:11 -08:00
dm_snapshot_internals.h pragma once for header file 2019-10-28 16:38:35 +00:00
fuzz.sh libsnapshot_fuzzer: add initial corpus 2020-05-06 17:10:34 -07:00
fuzz_utils.cpp libsnapshot_fuzzer: use protobuf 2020-04-30 23:05:36 -07:00
fuzz_utils.h libsnapshot_fuzzer: Add tests 2020-05-06 17:10:34 -07:00
OWNERS Add balsini@ as libsnapshot owner 2020-01-09 10:11:45 +00:00
partition_cow_creator.cpp Handle zero snapshot size appropriately. 2020-05-01 18:46:44 +00:00
partition_cow_creator.h PartitionCowCreator accounts for extra extents 2019-12-02 12:49:38 -08:00
partition_cow_creator_test.cpp Add tests for zero snapshot size. 2020-05-01 16:22:27 -07:00
power_test.cpp libsnapshot: Add a simple script and gtest to simulate power failures during snapshot-merge. 2020-04-14 23:32:38 -07:00
PowerTest.md libsnapshot: Add a simple script and gtest to simulate power failures during snapshot-merge. 2020-04-14 23:32:38 -07:00
return.cpp libsnapshot: delete WaitForMerge. 2020-03-03 13:19:49 -08:00
run_power_test.sh libsnapshot: Add a simple script and gtest to simulate power failures during snapshot-merge. 2020-04-14 23:32:38 -07:00
snapshot.cpp libsnapshot: fix incorrect assumption of cow images 2020-05-05 18:01:15 -07:00
snapshot_fuzz.cpp libsnapshot_fuzzer: Add tests 2020-05-06 17:10:34 -07:00
snapshot_fuzz_utils.cpp libsnapshot_fuzzer: Attempt to cleanup env before and after 2020-05-06 17:10:34 -07:00
snapshot_fuzz_utils.h libsnapshot_fuzzer: add new test directive to switch slot 2020-05-06 17:10:34 -07:00
snapshot_metadata_updater.cpp libsnapshot: Add snapshot metadata updater. 2019-09-17 12:55:23 -07:00
snapshot_metadata_updater.h libsnapshot: Add snapshot metadata updater. 2019-09-17 12:55:23 -07:00
snapshot_metadata_updater_test.cpp Skip snapshot tests for non-Virtual A/B devices 2020-01-30 16:23:27 +00:00
snapshot_stats.cpp libsnapshot: SnapshotMergeStats::Start/Finish 2020-03-04 11:17:17 -08:00
snapshot_stub.cpp fastboot: Fix snapshot-update merge behavior. 2020-05-02 16:02:07 -07:00
snapshot_test.cpp fastboot: Fix snapshot-update merge behavior. 2020-05-02 16:02:07 -07:00
snapshotctl.cpp libsnapshot: delete InitiateMergeAndWait. 2020-03-09 16:14:30 -07:00
test_helpers.cpp snapshot_test: Fix overflow in statvfs arithmetics 2020-04-30 21:02:26 +01:00
utility.cpp Add OptimizeSourceCopyOperation 2020-03-11 12:10:32 -07:00
utility.h Add OptimizeSourceCopyOperation 2020-03-11 12:10:32 -07:00
VtsLibsnapshotTest.xml libsnapshot: Add VTS10 VtsLibsnapshotTest 2020-04-03 12:04:32 -07:00