Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / test / librados_test_stub / TestCluster.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3
4 #ifndef CEPH_TEST_CLUSTER_H
5 #define CEPH_TEST_CLUSTER_H
6
7 #include "test/librados_test_stub/TestWatchNotify.h"
8
9 class CephContext;
10
11 namespace librados {
12
13 class TestRadosClient;
14 class TestWatchNotify;
15
16 class TestCluster {
17 public:
18   virtual ~TestCluster() {
19   }
20
21   virtual TestRadosClient *create_rados_client(CephContext *cct) = 0;
22
23   TestWatchNotify *get_watch_notify() {
24     return &m_watch_notify;
25   }
26
27 protected:
28   TestWatchNotify m_watch_notify;
29
30 };
31
32 } // namespace librados
33
34 #endif // CEPH_TEST_CLUSTER_H