void expect_cache_run(MockParentImageCache& mparent_image_cache, bool ret_val) {
auto& expect = EXPECT_CALL(*(mparent_image_cache.get_cache_client()), run());
- expect.WillOnce((Invoke([ret_val]() {
+ expect.WillOnce((Invoke([]() {
})));
}
void expect_cache_close(MockParentImageCache& mparent_image_cache, int ret_val) {
auto& expect = EXPECT_CALL(*(mparent_image_cache.get_cache_client()), close());
- expect.WillOnce((Invoke([ret_val]() {
+ expect.WillOnce((Invoke([]() {
})));
}
void expect_cache_stop(MockParentImageCache& mparent_image_cache, int ret_val) {
auto& expect = EXPECT_CALL(*(mparent_image_cache.get_cache_client()), stop());
- expect.WillOnce((Invoke([ret_val]() {
+ expect.WillOnce((Invoke([]() {
})));
}
auto& expect = EXPECT_CALL((*(mparent_image_cache.get_image_ctx()->io_object_dispatcher)),
register_object_dispatch(_));
- expect.WillOnce(WithArg<0>(Invoke([ret_val, &mparent_image_cache]
+ expect.WillOnce(WithArg<0>(Invoke([&mparent_image_cache]
(io::ObjectDispatchInterface* object_dispatch) {
ASSERT_EQ(object_dispatch, &mparent_image_cache);
})));
EXPECT_CALL(mock_get_info_request, send())
.WillOnce(
- Invoke([this, &mock_image_ctx, &mock_get_info_request, mirror_image,
+ Invoke([&mock_image_ctx, &mock_get_info_request, mirror_image,
promotion_state, r]() {
if (r == 0) {
*mock_get_info_request.mirror_image = mirror_image;
MockImageStateUpdateRequest& mock_request, int r) {
EXPECT_CALL(mock_request, send())
.WillOnce(
- Invoke([this, &mock_image_ctx, &mock_request, r]() {
+ Invoke([&mock_image_ctx, &mock_request, r]() {
mock_image_ctx.op_work_queue->queue(mock_request.on_finish, r);
}));
}
MockImageRemoveRequest& mock_request, int r) {
EXPECT_CALL(mock_request, send())
.WillOnce(
- Invoke([this, &mock_image_ctx, &mock_request, r]() {
+ Invoke([&mock_image_ctx, &mock_request, r]() {
mock_image_ctx.op_work_queue->queue(mock_request.on_finish, r);
}));
}