From bc231942bac60afe5c3971633affd96432ec2307 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Wed, 15 Nov 2017 15:46:24 -0500 Subject: [PATCH] test/librbd: fixed gmock uninteresting function call warnings Signed-off-by: Jason Dillaman --- src/test/librbd/io/test_mock_ImageRequestWQ.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/test/librbd/io/test_mock_ImageRequestWQ.cc b/src/test/librbd/io/test_mock_ImageRequestWQ.cc index f58d7a603eb..47f2182b980 100644 --- a/src/test/librbd/io/test_mock_ImageRequestWQ.cc +++ b/src/test/librbd/io/test_mock_ImageRequestWQ.cc @@ -196,6 +196,12 @@ struct TestMockIoImageRequestWQ : public TestMockFixture { *on_finish = ctx; })); } + + void expect_was_throttled(MockImageRequest &mock_image_request, + bool throttled) { + EXPECT_CALL(mock_image_request, was_throttled()) + .WillOnce(Return(throttled)); + } }; TEST_F(TestMockIoImageRequestWQ, AcquireLockError) { @@ -221,6 +227,7 @@ TEST_F(TestMockIoImageRequestWQ, AcquireLockError) { librbd::exclusive_lock::MockPolicy mock_exclusive_lock_policy; expect_front(mock_image_request_wq, mock_image_request); + expect_was_throttled(*mock_image_request, false); expect_is_refresh_request(mock_image_ctx, false); expect_is_write_op(*mock_image_request, true); expect_dequeue(mock_image_request_wq, mock_image_request); @@ -258,6 +265,7 @@ TEST_F(TestMockIoImageRequestWQ, RefreshError) { mock_image_request_wq.aio_write(aio_comp, 0, 0, {}, 0); expect_front(mock_image_request_wq, mock_image_request); + expect_was_throttled(*mock_image_request, false); expect_is_refresh_request(mock_image_ctx, true); expect_is_write_op(*mock_image_request, true); expect_dequeue(mock_image_request_wq, mock_image_request); -- 2.39.5