From: Mykola Golub Date: Tue, 19 Jun 2018 13:22:15 +0000 (+0300) Subject: librbd: fix gmock warnings introduced after 9e5b87c X-Git-Tag: v14.0.1~1073^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f434c5c70bc3f51849d1439dcd8448022cb5e056;p=ceph.git librbd: fix gmock warnings introduced after 9e5b87c Signed-off-by: Mykola Golub --- diff --git a/src/test/librbd/deep_copy/test_mock_SnapshotCopyRequest.cc b/src/test/librbd/deep_copy/test_mock_SnapshotCopyRequest.cc index 600074c248a..07a3327f4f0 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) {