]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
unittest: fixup the mock method of open
authorDongsheng Yang <dongsheng.yang@easystack.cn>
Wed, 18 Jan 2017 12:28:44 +0000 (20:28 +0800)
committerDongsheng Yang <dongsheng.yang@easystack.cn>
Thu, 23 Feb 2017 03:11:00 +0000 (11:11 +0800)
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
src/test/librbd/mock/MockImageState.h

index ca583d1e7f73136ce0277a58c349192ec3599044..afea67af8778f11a6545c8835d75afeeb2b288e5 100644 (file)
@@ -14,7 +14,7 @@ struct MockImageState {
   MOCK_CONST_METHOD0(is_refresh_required, bool());
   MOCK_METHOD1(refresh, void(Context*));
 
-  MOCK_METHOD1(open, void(Context*));
+  MOCK_METHOD2(open, void(bool, Context*));
 
   MOCK_METHOD0(close, int());
   MOCK_METHOD1(close, void(Context*));