Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / test / librados_test_stub / LibradosTestStub.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 LIBRADOS_TEST_STUB_H
5 #define LIBRADOS_TEST_STUB_H
6
7 #include <boost/shared_ptr.hpp>
8
9 namespace librados {
10
11 class IoCtx;
12 class MockTestMemIoCtxImpl;
13 class TestCluster;
14
15 MockTestMemIoCtxImpl &get_mock_io_ctx(IoCtx &ioctx);
16
17 } // namespace librados
18
19 namespace librados_test_stub {
20
21 typedef boost::shared_ptr<librados::TestCluster> TestClusterRef;
22
23 void set_cluster(TestClusterRef cluster);
24 TestClusterRef get_cluster();
25
26 } // namespace librados_test_stub
27
28
29 #endif // LIBRADOS_TEST_STUB_H