libsnapshot: add test for merge_size param
Add test to make sure that setting the protobuf successfully propogates the gflag argument to snapuserd_handler. Bug: 332255580 Test: th Change-Id: Ic7a008bee7dd3ca29faa0a5409f0513f1551bf37
This commit is contained in:
parent
1fbba3ed0d
commit
39fe6e1d38
1 changed files with 3 additions and 0 deletions
|
|
@ -2665,6 +2665,7 @@ TEST_F(SnapshotTest, FlagCheck) {
|
|||
status.set_o_direct(true);
|
||||
status.set_io_uring_enabled(true);
|
||||
status.set_userspace_snapshots(true);
|
||||
status.set_cow_op_merge_size(16);
|
||||
|
||||
sm->WriteSnapshotUpdateStatus(lock_.get(), status);
|
||||
// Ensure a connection to the second-stage daemon, but use the first-stage
|
||||
|
|
@ -2686,6 +2687,8 @@ TEST_F(SnapshotTest, FlagCheck) {
|
|||
snapuserd_argv.end());
|
||||
ASSERT_TRUE(std::find(snapuserd_argv.begin(), snapuserd_argv.end(), "-user_snapshot") !=
|
||||
snapuserd_argv.end());
|
||||
ASSERT_TRUE(std::find(snapuserd_argv.begin(), snapuserd_argv.end(), "-cow_op_merge_size=16") !=
|
||||
snapuserd_argv.end());
|
||||
}
|
||||
|
||||
class FlashAfterUpdateTest : public SnapshotUpdateTest,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue