diff --git a/src/test/rbd_mirror/mock/MockJournaler.h b/src/test/rbd_mirror/mock/MockJournaler.h index 5f08c12d82e..03bb6be41ad 100644 --- a/src/test/rbd_mirror/mock/MockJournaler.h +++ b/src/test/rbd_mirror/mock/MockJournaler.h @@ -76,6 +76,9 @@ struct MockJournaler { MOCK_METHOD2(update_client, void(const bufferlist&, Context *on_safe)); MOCK_METHOD3(get_tag, void(uint64_t, cls::journal::Tag *, Context *)); + + MOCK_METHOD2(get_cached_client, int(const std::string &, + cls::journal::Client *)); }; struct MockJournalerProxy { @@ -126,6 +129,11 @@ struct MockJournalerProxy { void get_tag(uint64_t tag_tid, cls::journal::Tag *tag, Context *on_finish) { MockJournaler::get_instance().get_tag(tag_tid, tag, on_finish); } + + int get_cached_client(const std::string &client_id, + cls::journal::Client *client) { + return MockJournaler::get_instance().get_cached_client(client_id, client); + } }; std::ostream &operator<<(std::ostream &os, const MockJournalerProxy &);