X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Ftest%2Flibrados_test_stub%2FTestCluster.h;fp=src%2Fceph%2Fsrc%2Ftest%2Flibrados_test_stub%2FTestCluster.h;h=a931f4b8fc0ffb6f9149471fb265b398a8d5e65c;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/test/librados_test_stub/TestCluster.h b/src/ceph/src/test/librados_test_stub/TestCluster.h new file mode 100644 index 0000000..a931f4b --- /dev/null +++ b/src/ceph/src/test/librados_test_stub/TestCluster.h @@ -0,0 +1,34 @@ +// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- +// vim: ts=8 sw=2 smarttab + +#ifndef CEPH_TEST_CLUSTER_H +#define CEPH_TEST_CLUSTER_H + +#include "test/librados_test_stub/TestWatchNotify.h" + +class CephContext; + +namespace librados { + +class TestRadosClient; +class TestWatchNotify; + +class TestCluster { +public: + virtual ~TestCluster() { + } + + virtual TestRadosClient *create_rados_client(CephContext *cct) = 0; + + TestWatchNotify *get_watch_notify() { + return &m_watch_notify; + } + +protected: + TestWatchNotify m_watch_notify; + +}; + +} // namespace librados + +#endif // CEPH_TEST_CLUSTER_H