From: Mykola Golub Date: Tue, 19 Jun 2018 13:22:15 +0000 (+0300) Subject: librbd: fix gmock warnings introduced after 9e5b87c X-Git-Tag: v13.2.1~59^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a2508740649a0615fab92d93bc51a2401503fc0e;p=ceph.git librbd: fix gmock warnings introduced after 9e5b87c Signed-off-by: Mykola Golub (cherry picked from commit f434c5c70bc3f51849d1439dcd8448022cb5e056) --- diff --git a/src/test/librbd/deep_copy/test_mock_SnapshotCopyRequest.cc b/src/test/librbd/deep_copy/test_mock_SnapshotCopyRequest.cc index 4c4f42ad06d0..f774ac0a432b 100644 --- a/src/test/librbd/deep_copy/test_mock_SnapshotCopyRequest.cc +++ b/src/test/librbd/deep_copy/test_mock_SnapshotCopyRequest.cc @@ -138,6 +138,10 @@ public: .WillRepeatedly(WithArg<0>(Invoke([&mock_image_ctx](uint64_t features) { return (mock_image_ctx.features & features) != 0; }))); + EXPECT_CALL(mock_image_ctx, test_features(_)) + .WillRepeatedly(WithArg<0>(Invoke([&mock_image_ctx](uint64_t features) { + return (mock_image_ctx.features & features) != 0; + }))); } void expect_start_op(librbd::MockExclusiveLock &mock_exclusive_lock) {