]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: add missing shut_down mock method 8125/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 15 Mar 2016 14:10:41 +0000 (10:10 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 15 Mar 2016 14:11:53 +0000 (10:11 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/librbd/test_mock_Journal.cc

index d9b1938b60cdae2ddbbe91ccc3580134e1e07910..7c64611dc2846c0fc131786703330d00ddc8c380 100644 (file)
@@ -86,6 +86,7 @@ struct MockJournaler {
   MOCK_METHOD3(get_metadata, void(uint8_t *order, uint8_t *splay_width,
                                   int64_t *pool_id));
   MOCK_METHOD1(init, void(Context*));
+  MOCK_METHOD0(shut_down, void());
   MOCK_METHOD1(flush_commit_position, void(Context*));
 
   MOCK_METHOD2(get_cached_client, int(const std::string&, cls::journal::Client*));
@@ -144,6 +145,9 @@ struct MockJournalerProxy {
   void init(Context *on_finish) {
     MockJournaler::get_instance().init(on_finish);
   }
+  void shut_down() {
+    MockJournaler::get_instance().shut_down();
+  }
 
   int get_cached_client(const std::string& client_id,
                         cls::journal::Client* client) {