From c006617c788051a44066732884b878e81e7e70d0 Mon Sep 17 00:00:00 2001 From: Kelvin Zhang Date: Wed, 4 Aug 2021 11:44:11 -0400 Subject: [PATCH] Add mock interface for EmitXorBlocks Test: th Change-Id: I8b9ccd5a0c16c45f79849c778b3d17cb1a635749 --- fs_mgr/libsnapshot/include/libsnapshot/mock_snapshot_writer.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs_mgr/libsnapshot/include/libsnapshot/mock_snapshot_writer.h b/fs_mgr/libsnapshot/include/libsnapshot/mock_snapshot_writer.h index 0457986c0..3655c01d0 100644 --- a/fs_mgr/libsnapshot/include/libsnapshot/mock_snapshot_writer.h +++ b/fs_mgr/libsnapshot/include/libsnapshot/mock_snapshot_writer.h @@ -36,6 +36,8 @@ class MockSnapshotWriter : public ISnapshotWriter { MOCK_METHOD(bool, EmitCopy, (uint64_t, uint64_t), (override)); MOCK_METHOD(bool, EmitRawBlocks, (uint64_t, const void*, size_t), (override)); + MOCK_METHOD(bool, EmitXorBlocks, (uint32_t, const void*, size_t, uint32_t, uint16_t), + (override)); MOCK_METHOD(bool, EmitZeroBlocks, (uint64_t, uint64_t), (override)); MOCK_METHOD(bool, EmitLabel, (uint64_t), (override)); MOCK_METHOD(bool, EmitSequenceData, (size_t, const uint32_t*), (override));